{ "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": null, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "prometheus", "uid": "victoriametrics-uid" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "vis": false }, "lineInterpolation": "linear", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "m" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, "id": 1, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "victoriametrics-uid" }, "expr": "water_level", "interval": "", "legendFormat": "{{station_code}} - {{station_name_en}}", "refId": "A" } ], "title": "Water Levels by Station", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "victoriametrics-uid" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "vis": false }, "lineInterpolation": "linear", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "cms" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, "id": 2, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "victoriametrics-uid" }, "expr": "water_discharge", "interval": "", "legendFormat": "{{station_code}} - {{station_name_en}}", "refId": "A" } ], "title": "Water Discharge by Station", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "victoriametrics-uid" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "displayMode": "auto", "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Water Level" }, "properties": [ { "id": "unit", "value": "m" } ] }, { "matcher": { "id": "byName", "options": "Discharge" }, "properties": [ { "id": "unit", "value": "cms" } ] }, { "matcher": { "id": "byName", "options": "Discharge %" }, "properties": [ { "id": "unit", "value": "percent" } ] } ] }, "gridPos": { "h": 8, "w": 24, "x": 0, "y": 8 }, "id": 3, "options": { "showHeader": true, "sortBy": [ { "desc": false, "displayName": "Station" } ] }, "pluginVersion": "8.5.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "victoriametrics-uid" }, "expr": "water_level", "format": "table", "instant": true, "interval": "", "legendFormat": "", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "victoriametrics-uid" }, "expr": "water_discharge", "format": "table", "instant": true, "interval": "", "legendFormat": "", "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "victoriametrics-uid" }, "expr": "water_discharge_percent", "format": "table", "instant": true, "interval": "", "legendFormat": "", "refId": "C" } ], "title": "Current Station Status", "transformations": [ { "id": "merge", "options": {} }, { "id": "organize", "options": { "excludeByName": { "Time": true, "__name__": true, "job": true, "instance": true }, "indexByName": { "station_code": 0, "station_name_en": 1, "station_name_th": 2, "Value #A": 3, "Value #B": 4, "Value #C": 5 }, "renameByName": { "Value #A": "Water Level", "Value #B": "Discharge", "Value #C": "Discharge %", "station_code": "Station", "station_name_en": "English Name", "station_name_th": "Thai Name" } } } ], "type": "table" }, { "datasource": { "type": "prometheus", "uid": "victoriametrics-uid" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "hideFrom": { "legend": false, "tooltip": false, "vis": false } }, "mappings": [], "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 16 }, "id": 4, "options": { "legend": { "displayMode": "list", "placement": "right" }, "pieType": "pie", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "victoriametrics-uid" }, "expr": "water_discharge_percent", "interval": "", "legendFormat": "{{station_code}}", "refId": "A" } ], "title": "Discharge Percentage Distribution", "type": "piechart" }, { "datasource": { "type": "prometheus", "uid": "victoriametrics-uid" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 70 }, { "color": "red", "value": 90 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 16 }, "id": 5, "options": { "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "8.5.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "victoriametrics-uid" }, "expr": "avg(water_discharge_percent)", "interval": "", "legendFormat": "Average Discharge %", "refId": "A" } ], "title": "Average Discharge Percentage", "type": "gauge" } ], "refresh": "30s", "schemaVersion": 36, "style": "dark", "tags": [ "water-monitoring", "thailand", "victoriametrics" ], "templating": { "list": [ { "current": { "selected": false, "text": "All", "value": "$__all" }, "datasource": { "type": "prometheus", "uid": "victoriametrics-uid" }, "definition": "label_values(water_level, station_code)", "hide": 0, "includeAll": true, "label": "Station", "multi": true, "name": "station", "options": [], "query": { "query": "label_values(water_level, station_code)", "refId": "StandardVariableQuery" }, "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 1, "type": "query" } ] }, "time": { "from": "now-6h", "to": "now" }, "timepicker": {}, "timezone": "Asia/Bangkok", "title": "Thailand Water Level Monitoring", "uid": "water-monitoring-dashboard", "version": 1, "weekStart": "" }