diff --git a/services/grafana/dashboards/apiary.json b/services/grafana/dashboards/apiary.json index 9899ccb..4cb2833 100644 --- a/services/grafana/dashboards/apiary.json +++ b/services/grafana/dashboards/apiary.json @@ -386,6 +386,107 @@ "tooltip": {"mode": "multi", "sort": "desc"} }, "description": "Rate of commands executed in honeypot shells" + }, + { + "id": 11, + "title": "Storage Query Duration by Method", + "type": "timeseries", + "gridPos": {"h": 8, "w": 12, "x": 0, "y": 38}, + "datasource": {"type": "prometheus", "uid": "victoriametrics"}, + "interval": "60s", + "targets": [ + { + "expr": "rate(oubliette_storage_query_duration_seconds_sum{job=\"apiary\"}[$__rate_interval]) / rate(oubliette_storage_query_duration_seconds_count{job=\"apiary\"}[$__rate_interval])", + "legendFormat": "{{method}}", + "refId": "A" + } + ], + "fieldConfig": { + "defaults": { + "unit": "s", + "custom": { + "drawStyle": "line", + "lineInterpolation": "smooth", + "fillOpacity": 10, + "pointSize": 5, + "showPoints": "auto", + "stacking": {"mode": "none"} + } + } + }, + "options": { + "legend": {"displayMode": "list", "placement": "bottom"}, + "tooltip": {"mode": "multi", "sort": "desc"} + }, + "description": "Average query duration per storage method over time" + }, + { + "id": 12, + "title": "Storage Query Rate by Method", + "type": "timeseries", + "gridPos": {"h": 8, "w": 12, "x": 12, "y": 38}, + "datasource": {"type": "prometheus", "uid": "victoriametrics"}, + "interval": "60s", + "targets": [ + { + "expr": "rate(oubliette_storage_query_duration_seconds_count{job=\"apiary\"}[$__rate_interval])", + "legendFormat": "{{method}}", + "refId": "A" + } + ], + "fieldConfig": { + "defaults": { + "unit": "ops", + "custom": { + "drawStyle": "line", + "lineInterpolation": "smooth", + "fillOpacity": 10, + "pointSize": 5, + "showPoints": "auto", + "stacking": {"mode": "none"} + } + } + }, + "options": { + "legend": {"displayMode": "list", "placement": "bottom"}, + "tooltip": {"mode": "multi", "sort": "desc"} + }, + "description": "Query execution rate per storage method" + }, + { + "id": 13, + "title": "Storage Query Errors", + "type": "stat", + "gridPos": {"h": 4, "w": 6, "x": 0, "y": 46}, + "datasource": {"type": "prometheus", "uid": "victoriametrics"}, + "targets": [ + { + "expr": "sum(oubliette_storage_query_errors_total{job=\"apiary\"})", + "legendFormat": "Errors", + "refId": "A", + "instant": true + } + ], + "fieldConfig": { + "defaults": { + "thresholds": { + "mode": "absolute", + "steps": [ + {"color": "green", "value": null}, + {"color": "yellow", "value": 1}, + {"color": "red", "value": 10} + ] + }, + "noValue": "0" + } + }, + "options": { + "reduceOptions": {"calcs": ["lastNotNull"]}, + "colorMode": "value", + "graphMode": "none", + "textMode": "auto" + }, + "description": "Total storage query errors" } ] }