From 284c53e09a14a02719dfb4b63ab77a75a1761b58 Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Mon, 9 Dec 2024 21:07:33 -0800 Subject: [PATCH] Adding Elasticsearch graphs. --- .../dashboards/newsblur_dashboard.json | 404 +++++++++++++++++- 1 file changed, 392 insertions(+), 12 deletions(-) diff --git a/docker/grafana/dashboards/newsblur_dashboard.json b/docker/grafana/dashboards/newsblur_dashboard.json index 330d4034d..8de170e74 100644 --- a/docker/grafana/dashboards/newsblur_dashboard.json +++ b/docker/grafana/dashboards/newsblur_dashboard.json @@ -1155,6 +1155,12 @@ ], "statsFields": [ "sum(quantity)" + ], + "statsOutcome": [ + "accepted" + ], + "statsReason": [ + "" ] }, { @@ -1174,6 +1180,12 @@ ], "statsFields": [ "sum(quantity)" + ], + "statsOutcome": [ + "accepted" + ], + "statsReason": [ + "" ] }, { @@ -1193,6 +1205,12 @@ ], "statsFields": [ "sum(quantity)" + ], + "statsOutcome": [ + "accepted" + ], + "statsReason": [ + "" ] }, { @@ -1212,6 +1230,12 @@ ], "statsFields": [ "sum(quantity)" + ], + "statsOutcome": [ + "accepted" + ], + "statsReason": [ + "" ] } ], @@ -1361,6 +1385,7 @@ }, "environments": [], "issuesLimit": 5, + "issuesQuery": "is:unresolved ", "issuesSort": "date", "projectIds": [ "1" @@ -1751,6 +1776,7 @@ }, "environments": [], "issuesLimit": 5, + "issuesQuery": "is:unresolved ", "issuesSort": "date", "projectIds": [ "2" @@ -5378,7 +5404,7 @@ "uid": "U1-fPO3Mk" }, "exemplar": true, - "expr": "rate(redis_commands_total{instance='redis-sessions-exporter'}[5m])", + "expr": "rate(redis_commands_total{instance='redis-session-exporter'}[5m])", "interval": "", "legendFormat": "{{cmd}}", "queryType": "randomWalk", @@ -5511,7 +5537,7 @@ "uid": "U1-fPO3Mk" }, "exemplar": true, - "expr": "(rate(redis_commands_duration_seconds_total{instance=\"redis-sessions-exporter\"}[5m]) / on (instance) group_left() rate(redis_commands_processed_total[5m]) )", + "expr": "(rate(redis_commands_duration_seconds_total{instance=\"redis-session-exporter\"}[5m]) / on (instance) group_left() rate(redis_commands_processed_total[5m]) )", "interval": "", "intervalFactor": 4, "legendFormat": "{{cmd}}", @@ -6060,6 +6086,360 @@ "title": "Elasticsearch # Docs per day", "type": "timeseries" }, + { + "datasource": { + "type": "prometheus", + "uid": "U1-fPO3Mk" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 230 + }, + "id": 146, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "U1-fPO3Mk" + }, + "editorMode": "code", + "expr": "rate(elasticsearch_indices_indexing_index_time_seconds_total{}[$__rate_interval])", + "legendFormat": "{{ instance }}", + "range": true, + "refId": "A" + } + ], + "title": "Elasticsearch Index Time", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "U1-fPO3Mk" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbits" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 230 + }, + "id": 144, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "U1-fPO3Mk" + }, + "editorMode": "code", + "expr": "elasticsearch_indices_store_size_bytes", + "legendFormat": "{{ instance }}", + "range": true, + "refId": "A" + } + ], + "title": "Elasticsearch store size", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "U1-fPO3Mk" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 238 + }, + "id": 142, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "U1-fPO3Mk" + }, + "editorMode": "code", + "expr": "rate(elasticsearch_indices_search_fetch_total[$__rate_interval])", + "legendFormat": "{{ instance }}", + "range": true, + "refId": "A" + } + ], + "title": "Elasticsearch indices search fetch rate", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "U1-fPO3Mk" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 238 + }, + "id": 140, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "U1-fPO3Mk" + }, + "editorMode": "code", + "expr": "rate(elasticsearch_indices_translog_operations[$__rate_interval])", + "legendFormat": "{{ instance }}", + "range": true, + "refId": "A" + } + ], + "title": "Elasticsearch indices translog operations rate", + "type": "timeseries" + }, { "collapsed": false, "datasource": { @@ -6070,7 +6450,7 @@ "h": 1, "w": 24, "x": 0, - "y": 230 + "y": 246 }, "id": 16, "panels": [], @@ -6170,7 +6550,7 @@ "h": 8, "w": 8, "x": 0, - "y": 231 + "y": 247 }, "id": 35, "options": { @@ -6261,7 +6641,7 @@ "h": 8, "w": 8, "x": 8, - "y": 231 + "y": 247 }, "id": 18, "options": { @@ -6352,7 +6732,7 @@ "h": 8, "w": 8, "x": 16, - "y": 231 + "y": 247 }, "id": 8, "options": { @@ -6443,7 +6823,7 @@ "h": 8, "w": 8, "x": 0, - "y": 239 + "y": 255 }, "id": 14, "options": { @@ -6534,7 +6914,7 @@ "h": 8, "w": 8, "x": 8, - "y": 239 + "y": 255 }, "id": 24, "options": { @@ -6625,7 +7005,7 @@ "h": 8, "w": 8, "x": 16, - "y": 239 + "y": 255 }, "id": 134, "options": { @@ -6665,7 +7045,7 @@ "h": 1, "w": 24, "x": 0, - "y": 247 + "y": 263 }, "id": 40, "panels": [ @@ -6945,13 +7325,13 @@ "list": [] }, "time": { - "from": "now-2d", + "from": "now-7d", "to": "now" }, "timepicker": {}, "timezone": "", "title": "NewsBlur", "uid": "T86VjXrG2", - "version": 120, + "version": 127, "weekStart": "" }