{ "__inputs": [ { "name": "DB_VICTORIAMETRICS", "label": "VictoriaMetrics", "description": "Select the VictoriaMetrics datasource", "type": "datasource", "pluginId": "victoriametrics-metrics-datasource" }, { "name": "DB_PROMETHEUS", "label": "Prometheus", "description": "Select the Prometheus datasource", "type": "datasource", "pluginId": "prometheus" }, { "name": "DB_LOKI", "label": "Loki", "description": "Select the Loki datasource", "type": "datasource", "pluginId": "loki" } ], "__elements": {}, "__requires": [ { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "12.4.2" }, { "type": "panel", "id": "logs", "name": "Logs", "version": "" }, { "type": "datasource", "id": "loki", "name": "Loki", "version": "12.4.2" }, { "type": "panel", "id": "piechart", "name": "Pie chart", "version": "" }, { "type": "datasource", "id": "prometheus", "name": "Prometheus", "version": "1.0.0" }, { "type": "panel", "id": "stat", "name": "Stat", "version": "" }, { "type": "panel", "id": "table", "name": "Table", "version": "" }, { "type": "panel", "id": "text", "name": "Text", "version": "" }, { "type": "panel", "id": "timeseries", "name": "Time series", "version": "" }, { "type": "datasource", "id": "victoriametrics-metrics-datasource", "name": "VictoriaMetrics", "version": "0.23.3" } ], "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "description": "https://github.com/reefland/grafana-dashboards\nMIT License に基づき ©reefland 様よりSMART監視パネルを拝借しています。\nDisk Temperature, Disk Lifetimeパネル以外はWTFPL Licenseに基づきます\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004\n \n Copyright (C) 2004 Sam Hocevar \n \n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n \n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n 0. You just DO WHAT THE FUCK YOU WANT TO.\n", "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "links": [ { "asDropdown": false, "icon": "external link", "includeVars": true, "keepTime": true, "placement": "inControlsMenu", "tags": [], "targetBlank": false, "title": "New link", "tooltip": "", "type": "dashboards", "url": "" } ], "panels": [ { "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, "id": 19, "options": { "code": { "language": "plaintext", "showLineNumbers": false, "showMiniMap": false }, "content": "#### 🛠️ 初期設定ガイド\nこのダッシュボードは汎用化のため、一部の変数を非表示にしています。 \n環境に合わせて表示を切り替えるには、左上の🖼️ **[ ||| +11 ]** 🖼️(または変数プルダウン)から以下の値を調整してください。\n\n* **location**: アメダスの地点名を選択\n* **remo_device**: Nature Remoのデバイス名を選択\n* **instance**: RemoExporterのサーバーホストを選択\n\n* **device**: SMART監視デバイス。sdaとかnvme0とか。全選択推奨\n* **interface**: 収集している端末のIP等。全選択推奨\n* **serial_number**: HDDなどのシリアル。全選択推奨\n* **model_name**: 型番。全選択推奨\n", "mode": "markdown" }, "pluginVersion": "12.4.2", "title": "削除してね", "type": "text" }, { "datasource": { "type": "loki", "uid": "${db_loki}" }, "gridPos": { "h": 12, "w": 12, "x": 12, "y": 0 }, "id": 15, "options": { "dedupStrategy": "none", "enableInfiniteScrolling": true, "enableLogDetails": true, "fontSize": "small", "prettifyLogMessage": false, "showControls": true, "showLabels": false, "showTime": true, "sortOrder": "Descending", "syntaxHighlighting": true, "timestampResolution": "ms", "unwrappedColumns": true, "wrapLogMessage": false }, "pluginVersion": "12.4.2", "targets": [ { "datasource": { "type": "loki", "uid": "${db_loki}" }, "direction": "backward", "editorMode": "code", "expr": "{level=~\"error|warn|fatal|crit|emerg\"} | json | label_format computer=\"{{.computer}}\", source=\"{{.source}}\", message=\"{{.message}}\"", "legendFormat": "computer, source, message", "queryType": "range", "refId": "A" } ], "title": "WARN log", "type": "logs" }, { "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 0, "mappings": [], "max": 40, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "yellow", "value": 0 }, { "color": "blue", "value": 0.1 }, { "color": "dark-blue", "value": 10 } ] }, "unit": "lengthmm" }, "overrides": [] }, "gridPos": { "h": 6, "w": 3, "x": 0, "y": 8 }, "id": 12, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "same_as_value", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "value", "wideLayout": true }, "pluginVersion": "12.4.2", "targets": [ { "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "editorMode": "code", "expr": "amedas_precipitation_1h{name_kana=\"${location}\"}", "format": "time_series", "range": true, "refId": "A" } ], "title": "☔アメダス-降水量/1時間", "type": "stat" }, { "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 0, "mappings": [], "max": 1090, "min": 870, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "blue", "value": 980 }, { "color": "green", "value": 990 }, { "color": "orange", "value": 1030 } ] }, "unit": "pressurehpa" }, "overrides": [] }, "gridPos": { "h": 6, "w": 3, "x": 3, "y": 8 }, "id": 10, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": true, "textMode": "value", "wideLayout": true }, "pluginVersion": "12.4.2", "targets": [ { "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "editorMode": "code", "expr": "amedas_normal_pressure{name_kana=\"${location}\"}", "format": "time_series", "range": true, "refId": "A" } ], "title": "⛅️アメダス-気圧", "type": "stat" }, { "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "fieldConfig": { "defaults": { "color": { "mode": "continuous-BlYlRd" }, "mappings": [], "max": 45, "min": -10, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "celsius" }, "overrides": [] }, "gridPos": { "h": 6, "w": 3, "x": 6, "y": 8 }, "id": 8, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "same_as_value", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "value", "wideLayout": true }, "pluginVersion": "12.4.2", "targets": [ { "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "editorMode": "code", "expr": "amedas_temperature{name_kana=\"${location}\"}", "format": "time_series", "legendFormat": "__auto", "range": true, "refId": "A" } ], "title": "🌡️アメダス-温度", "type": "stat" }, { "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "fieldConfig": { "defaults": { "color": { "mode": "continuous-BlYlRd" }, "mappings": [], "max": 45, "min": 10, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "celsius" }, "overrides": [] }, "gridPos": { "h": 6, "w": 3, "x": 9, "y": 8 }, "id": 4, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "same_as_value", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "value", "wideLayout": true }, "pluginVersion": "12.4.2", "targets": [ { "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "editorMode": "builder", "expr": "remo_temperature{instance=\"${remo_device}\", __name__=\"remo_temperature\"}", "format": "time_series", "range": true, "refId": "A" } ], "title": "🌡️Remo-温度", "type": "stat" }, { "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "fieldConfig": { "defaults": { "color": { "mode": "continuous-GrYlRd" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "showValues": false, "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "max": 70, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 12, "w": 6, "x": 12, "y": 12 }, "id": 13, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.4.2", "targets": [ { "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "editorMode": "builder", "exemplar": false, "expr": "label_replace(label_replace(lmsensors_temperature_degrees_celsius{sensor=\"temp1\"}, \"chip2\", \"$1\", \"device\", \"([^-]+?)-.*\"), \"inst2\", \"$1\", \"instance\", \"(?:192\\\\.168\\\\.)?([^.:]+).*\")", "format": "time_series", "instant": true, "legendFormat": "{{inst2}}_{{chip2}}", "range": true, "refId": "A" } ], "title": "lm_sensors", "type": "timeseries" }, { "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "fieldConfig": { "defaults": { "color": { "mode": "continuous-BlYlRd" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "showValues": false, "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "max": 75, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 12, "w": 6, "x": 18, "y": 12 }, "id": 14, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.4.2", "targets": [ { "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "editorMode": "builder", "expr": "label_replace(label_replace(node_hwmon_temp_celsius{sensor=\"temp1\"}, \"chip2\", \"$1\", \"chip\", \"(?:0000:0)?(?:0:0[0-9]_)?(?:platform_)?(?:thermal_)?(?:nvme_)?([^_-]+)?.*\"), \"inst2\", \"$1$2\", \"instance\", \"(?:192\\\\.168\\\\.)?([0-9]*\\\\.)?([^.:]+).*\")", "format": "time_series", "instant": false, "legendFormat": "{{inst2}}_{{chip2}}", "range": true, "refId": "A" } ], "title": "node_thermal", "type": "timeseries" }, { "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 1, "mappings": [], "max": 50, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "blue", "value": 0 }, { "color": "green", "value": 2 }, { "color": "semi-dark-red", "value": 30 } ] }, "unit": "lengthm" }, "overrides": [] }, "gridPos": { "h": 6, "w": 3, "x": 0, "y": 14 }, "id": 11, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "same_as_value", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "value", "wideLayout": true }, "pluginVersion": "12.4.2", "targets": [ { "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "editorMode": "builder", "expr": "amedas_wind{name_kana=\"${location}\"}", "format": "time_series", "range": true, "refId": "A" } ], "title": "🌀アメダス-風速", "type": "stat" }, { "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "fieldConfig": { "defaults": { "color": { "mode": "continuous-cividis" }, "decimals": 0, "mappings": [], "max": 1, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "percentunit" }, "overrides": [] }, "gridPos": { "h": 6, "w": 3, "x": 3, "y": 14 }, "id": 5, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "same_as_value", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "value", "wideLayout": true }, "pluginVersion": "12.4.2", "targets": [ { "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "editorMode": "code", "expr": "remo_illumination{}/256", "format": "time_series", "range": true, "refId": "A" } ], "title": "💡Remo-明るさ", "type": "stat" }, { "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "fieldConfig": { "defaults": { "color": { "mode": "continuous-YlBl" }, "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "humidity" }, "overrides": [] }, "gridPos": { "h": 6, "w": 3, "x": 6, "y": 14 }, "id": 9, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "same_as_value", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "value", "wideLayout": true }, "pluginVersion": "12.4.2", "targets": [ { "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "editorMode": "builder", "expr": "amedas_humidity{name_kana=\"${location}\"}", "format": "time_series", "range": true, "refId": "A" } ], "title": "☁アメダス-湿度", "type": "stat" }, { "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "fieldConfig": { "defaults": { "color": { "mode": "continuous-YlBl" }, "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "humidity" }, "overrides": [] }, "gridPos": { "h": 6, "w": 3, "x": 9, "y": 14 }, "id": 6, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "same_as_value", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "value", "wideLayout": true }, "pluginVersion": "12.4.2", "targets": [ { "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "editorMode": "code", "expr": "{instance=\"${remo_device}\", __name__=\"remo_humidity\"}", "format": "time_series", "range": true, "refId": "A" } ], "title": "☁Remo-湿度", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "hideFrom": { "legend": false, "tooltip": false, "viz": false } }, "mappings": [], "noValue": "...", "unit": "short" }, "overrides": [ { "matcher": { "id": "byName", "options": "A" }, "properties": [ { "id": "color", "value": { "fixedColor": "#48cc69eb", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "HTTPS" }, "properties": [ { "id": "color", "value": { "fixedColor": "#3ba0dbeb", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "AAAA" }, "properties": [ { "id": "color", "value": { "fixedColor": "#c1bd5feb", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "PTR" }, "properties": [ { "id": "color", "value": { "fixedColor": "#db8f3be0", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "SRV" }, "properties": [ { "id": "color", "value": { "fixedColor": "#c75883eb", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 6, "w": 3, "x": 0, "y": 20 }, "id": 18, "options": { "displayLabels": [], "legend": { "displayMode": "table", "placement": "right", "showLegend": false, "values": [ "value" ] }, "pieType": "donut", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "sort": "desc", "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.4.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "builder", "exemplar": false, "expr": "unbound_query_types_total{job=\"unbound\"} > 0", "instant": true, "legendFormat": "{{type}}", "range": false, "refId": "A" } ], "title": "⧉ Unbound", "type": "piechart" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "continuous-BlPu" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "decimals": 0, "links": [], "mappings": [], "min": 20, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "celsius" }, "overrides": [] }, "gridPos": { "h": 12, "w": 9, "x": 3, "y": 20 }, "id": 16, "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "right", "showLegend": true, "sortBy": "Mean", "sortDesc": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.4.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "avg(smartctl_device_temperature{instance=~\"$node\", device=~\"$disk\"} * on(instance, device) group_left(interface,serial_number,model_name) smartctl_device{interface=~\"$type\",serial_number=~\"$serial_number\",model_name=~\"$device_model\"}) by (instance,device,model_name)", "format": "time_series", "instant": false, "interval": "1m", "intervalFactor": 1, "legendFormat": "{{model_name}}", "refId": "B" } ], "title": "Disk Temperature", "type": "timeseries" }, { "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "fieldConfig": { "defaults": { "color": { "mode": "fixed" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "showValues": false, "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 6, "w": 3, "x": 0, "y": 26 }, "id": 7, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": false }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.4.2", "targets": [ { "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "editorMode": "code", "expr": "remo_motion{}", "format": "time_series", "range": true, "refId": "A" } ], "title": "🚶Remo-人感センサ", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": false, "footer": { "reducers": [] }, "inspect": false, "minWidth": 150 }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Time" }, "properties": [ { "id": "unit", "value": "dateTimeFromNow" }, { "id": "decimals", "value": 2 }, { "id": "custom.align" }, { "id": "displayName", "value": "Last Checked" } ] }, { "matcher": { "id": "byName", "options": "Value #A" }, "properties": [ { "id": "displayName", "value": "Power On Time" }, { "id": "unit", "value": "s" }, { "id": "decimals", "value": 2 }, { "id": "custom.align" } ] }, { "matcher": { "id": "byName", "options": "model_name" }, "properties": [ { "id": "displayName", "value": "Device Model" }, { "id": "custom.align" } ] }, { "matcher": { "id": "byName", "options": "device" }, "properties": [ { "id": "displayName", "value": "Device" } ] }, { "matcher": { "id": "byName", "options": "Value #B" }, "properties": [ { "id": "displayName", "value": "Power Cycles" } ] }, { "matcher": { "id": "byName", "options": "instance" }, "properties": [ { "id": "displayName", "value": "Node" } ] }, { "matcher": { "id": "byName", "options": "Node" }, "properties": [ { "id": "custom.width", "value": 69 }, { "id": "mappings", "value": [ { "options": { "pattern": "/(?:192.168.)?(\\d+.\\d+|[^.-:]+).*/", "result": { "index": 0, "text": "$1" } }, "type": "regex" } ] } ] }, { "matcher": { "id": "byName", "options": "Device" }, "properties": [ { "id": "custom.width", "value": 59 } ] }, { "matcher": { "id": "byName", "options": "Last Checked" }, "properties": [ { "id": "custom.width", "value": 140 } ] }, { "matcher": { "id": "byName", "options": "Device Model" }, "properties": [ { "id": "custom.width", "value": 206 } ] }, { "matcher": { "id": "byName", "options": "Power On Time" }, "properties": [ { "id": "custom.width", "value": 134 } ] }, { "matcher": { "id": "byName", "options": "Power Cycles" }, "properties": [ { "id": "custom.width", "value": 105 } ] } ] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 32 }, "id": 17, "interval": "1h", "options": { "cellHeight": "sm", "enablePagination": true, "showHeader": true, "sortBy": [ { "desc": true, "displayName": "Power On Time" } ] }, "pluginVersion": "12.4.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "builder", "expr": "max by(instance, device, model_name) (smartctl_device_power_on_seconds{instance=~\"$node\", device=~\"$disk\"}) * on(instance, device) smartctl_device{interface=~\"$type\", serial_number=~\"$serial_number\", model_name=~\"$device_model\"}", "format": "table", "instant": true, "interval": "", "intervalFactor": 1, "legendFormat": "__auto", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "max(smartctl_device_power_cycle_count{instance=~\"$node\", device=~\"$disk\"} * on(instance, device) group_left(interface,serial_number,model_family,model_name) smartctl_device{interface=~\"$type\",serial_number=~\"$serial_number\",model_name=~\"$device_model\"}) by (instance, device, model_name)", "format": "table", "instant": true, "interval": "", "intervalFactor": 1, "legendFormat": "Power Cycles", "refId": "B" } ], "title": "Disk Lifetime", "transformations": [ { "id": "merge", "options": { "reducers": [] } } ], "type": "table" } ], "preload": false, "schemaVersion": 42, "tags": [ "remo", "temp", "amedas", "node_exporter", "lmsensors_exporter" ], "templating": { "list": [ { "current": { "text": "", "value": "${DS_VICTORIAMETRICS-METRICS-DATASOURCE}", "selected": true }, "hide": 3, "name": "db_victoriametrics", "options": [], "query": "victoriametrics-metrics-datasource", "refresh": 1, "type": "datasource" }, { "current": {}, "hide": 3, "name": "db_prometheus", "options": [], "query": "prometheus", "refresh": 1, "regex": "", "type": "datasource" }, { "current": { "text": "", "value": "${DS_LOKI}", "selected": true }, "hide": 3, "label": "db_loki", "name": "db_loki", "options": [], "query": "loki", "refresh": 1, "regex": "", "type": "datasource" }, { "current": {}, "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "definition": "label_values(remo_temperature,instance)", "hide": 3, "name": "remo_device", "options": [], "query": { "qryType": 1, "query": "label_values(remo_temperature,instance)", "refId": "VariableQueryEditor-VariableQuery" }, "refresh": 1, "regexApplyTo": "value", "sort": 1, "type": "query" }, { "current": {}, "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "${db_victoriametrics}" }, "definition": "label_values(amedas_temperature,name_kana)", "hide": 3, "name": "location", "options": [], "query": { "qryType": 1, "query": "label_values(amedas_temperature,name_kana)", "refId": "VariableQueryEditor-VariableQuery" }, "refresh": 1, "regexApplyTo": "value", "sort": 1, "type": "query" }, { "current": {}, "datasource": { "type": "prometheus", "uid": "${db_prometheus}" }, "definition": "label_values(smartctl_device,instance)", "hide": 3, "label": "instance", "multi": true, "name": "node", "options": [], "query": { "qryType": 1, "query": "label_values(smartctl_device,instance)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", "regexApplyTo": "value", "type": "query" }, { "current": {}, "datasource": { "type": "prometheus", "uid": "${db_prometheus}" }, "definition": "label_values(smartctl_device,device)", "hide": 3, "label": "device", "multi": true, "name": "disk", "options": [], "query": { "qryType": 1, "query": "label_values(smartctl_device,device)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", "regexApplyTo": "value", "type": "query" }, { "current": {}, "datasource": { "type": "prometheus", "uid": "${db_prometheus}" }, "definition": "label_values(smartctl_device,interface)", "hide": 3, "label": "interface", "multi": true, "name": "type", "options": [], "query": { "qryType": 1, "query": "label_values(smartctl_device,interface)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", "regexApplyTo": "value", "type": "query" }, { "current": {}, "datasource": { "type": "prometheus", "uid": "${db_prometheus}" }, "definition": "label_values(smartctl_device,serial_number)", "hide": 3, "label": "serial_number", "multi": true, "name": "serial_number", "options": [], "query": { "qryType": 1, "query": "label_values(smartctl_device,serial_number)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", "regexApplyTo": "value", "staticOptions": [], "type": "query" }, { "current": {}, "datasource": { "type": "prometheus", "uid": "${db_prometheus}" }, "definition": "label_values(smartctl_device,model_name)", "hide": 3, "label": "model_name", "multi": true, "name": "device_model", "options": [], "query": { "qryType": 1, "query": "label_values(smartctl_device,model_name)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", "regexApplyTo": "value", "type": "query" } ] }, "time": { "from": "2026-04-12T08:33:51.790Z", "to": "2026-04-12T20:33:51.790Z" }, "timepicker": {}, "timezone": "Asia/Tokyo", "title": "総合", "uid": "lefl76b", "version": 69, "weekStart": "" }