Loading src/tests/hackfest3/grafana/dashboard.json 0 → 100644 +276 −0 Original line number Diff line number Diff line { "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "target": { "limit": 100, "matchAny": false, "tags": [], "type": "dashboard" }, "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": 11, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "postgres", "uid": "WdiCIPwVk" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "State" }, "properties": [ { "id": "mappings", "value": [ { "options": { "ACTIVE": { "color": "green", "index": 2 }, "ENFORCED": { "color": "red", "index": 3 }, "PROVISIONED": { "color": "yellow", "index": 1 }, "VALIDATED": { "color": "blue", "index": 0 } }, "type": "value" } ] } ] } ] }, "gridPos": { "h": 4, "w": 24, "x": 0, "y": 0 }, "id": 4, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "/^State$/", "values": true }, "textMode": "auto" }, "pluginVersion": "8.5.22", "targets": [ { "datasource": { "type": "postgres", "uid": "WdiCIPwVk" }, "format": "time_series", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n updated_at as \"time\",\n policyrule_state as \"State\"\nFROM policyrule\nORDER BY 1", "refId": "A", "select": [ [ { "params": [ "policyrule_state" ], "type": "column" } ] ], "table": "policyrule", "timeColumn": "updated_at", "timeColumnType": "timestamp", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ] } ], "title": "Policy State", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "nSmCIEw4k" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "latency", "axisPlacement": "right", "axisSoftMin": -1, "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "smooth", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "line+area" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "orange", "value": 10000 } ] }, "unit": "µs" }, "overrides": [] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 4 }, "id": 2, "options": { "legend": { "calcs": [], "displayMode": "hidden", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "postgres", "uid": "nSmCIEw4k" }, "format": "time_series", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n timestamp AS \"time\",\n kpi_value AS metric\nFROM tfs_monitoring_kpis\nWHERE\n $__timeFilter(timestamp)\nORDER BY timestamp", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ] } ], "title": "end-to-end latency", "type": "timeseries" } ], "refresh": "5s", "schemaVersion": 36, "style": "dark", "tags": [], "templating": { "list": [] }, "time": { "from": "now-5m", "to": "now" }, "timepicker": {}, "timezone": "", "title": "HPSR23", "uid": "F-t42xU4z", "version": 1, "weekStart": "" } Loading
src/tests/hackfest3/grafana/dashboard.json 0 → 100644 +276 −0 Original line number Diff line number Diff line { "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "target": { "limit": 100, "matchAny": false, "tags": [], "type": "dashboard" }, "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": 11, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "postgres", "uid": "WdiCIPwVk" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "State" }, "properties": [ { "id": "mappings", "value": [ { "options": { "ACTIVE": { "color": "green", "index": 2 }, "ENFORCED": { "color": "red", "index": 3 }, "PROVISIONED": { "color": "yellow", "index": 1 }, "VALIDATED": { "color": "blue", "index": 0 } }, "type": "value" } ] } ] } ] }, "gridPos": { "h": 4, "w": 24, "x": 0, "y": 0 }, "id": 4, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "/^State$/", "values": true }, "textMode": "auto" }, "pluginVersion": "8.5.22", "targets": [ { "datasource": { "type": "postgres", "uid": "WdiCIPwVk" }, "format": "time_series", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n updated_at as \"time\",\n policyrule_state as \"State\"\nFROM policyrule\nORDER BY 1", "refId": "A", "select": [ [ { "params": [ "policyrule_state" ], "type": "column" } ] ], "table": "policyrule", "timeColumn": "updated_at", "timeColumnType": "timestamp", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ] } ], "title": "Policy State", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "nSmCIEw4k" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "latency", "axisPlacement": "right", "axisSoftMin": -1, "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "smooth", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "line+area" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "orange", "value": 10000 } ] }, "unit": "µs" }, "overrides": [] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 4 }, "id": 2, "options": { "legend": { "calcs": [], "displayMode": "hidden", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "postgres", "uid": "nSmCIEw4k" }, "format": "time_series", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n timestamp AS \"time\",\n kpi_value AS metric\nFROM tfs_monitoring_kpis\nWHERE\n $__timeFilter(timestamp)\nORDER BY timestamp", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ] } ], "title": "end-to-end latency", "type": "timeseries" } ], "refresh": "5s", "schemaVersion": 36, "style": "dark", "tags": [], "templating": { "list": [] }, "time": { "from": "now-5m", "to": "now" }, "timepicker": {}, "timezone": "", "title": "HPSR23", "uid": "F-t42xU4z", "version": 1, "weekStart": "" }