From 60394ddf83bfa453899b3ebf72bbbb0b2c7bffec Mon Sep 17 00:00:00 2001 From: Nitish Tiwari Date: Tue, 24 Aug 2021 22:21:09 +0530 Subject: [PATCH] Add support for changing job name in Grafana dashboard (#13050) --- .../prometheus/grafana/minio-overview.json | 359 +++++++++--------- 1 file changed, 187 insertions(+), 172 deletions(-) diff --git a/docs/metrics/prometheus/grafana/minio-overview.json b/docs/metrics/prometheus/grafana/minio-overview.json index cb1d8636c..3f6704814 100644 --- a/docs/metrics/prometheus/grafana/minio-overview.json +++ b/docs/metrics/prometheus/grafana/minio-overview.json @@ -26,7 +26,7 @@ "type": "grafana", "id": "grafana", "name": "Grafana", - "version": "7.5.5" + "version": "8.0.6" }, { "type": "panel", @@ -65,6 +65,7 @@ "gnetId": 13502, "graphTooltip": 0, "id": null, + "iteration": 1629787190164, "links": [ { "icon": "external link", @@ -85,11 +86,13 @@ "defaults": { "mappings": [ { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], "thresholds": { @@ -130,11 +133,11 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "targets": [ { "exemplar": true, - "expr": "time() - max(minio_node_process_starttime_seconds)", + "expr": "time() - max(minio_node_process_starttime_seconds{job=\"$scrape_jobs\"})", "format": "time_series", "instant": true, "interval": "", @@ -158,11 +161,13 @@ "defaults": { "mappings": [ { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], "thresholds": { @@ -203,10 +208,11 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "targets": [ { - "expr": "sum by (instance) (minio_s3_traffic_received_bytes{job=\"minio-job\"})", + "exemplar": true, + "expr": "sum by (instance) (minio_s3_traffic_received_bytes{job=\"$scrape_jobs\"})", "format": "table", "hide": false, "instant": false, @@ -230,11 +236,13 @@ "defaults": { "mappings": [ { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], "thresholds": { @@ -273,10 +281,11 @@ "showThresholdMarkers": true, "text": {} }, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "targets": [ { - "expr": "topk(1, sum(minio_cluster_capacity_usable_free_bytes) by (instance))", + "exemplar": true, + "expr": "topk(1, sum(minio_cluster_capacity_usable_free_bytes{job=\"$scrape_jobs\"}) by (instance))", "format": "time_series", "instant": false, "interval": "1m", @@ -297,10 +306,6 @@ "dashLength": 10, "dashes": false, "datasource": "${DS_PROMETHEUS}", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, "fill": 1, "fillGradient": 0, "gridPos": { @@ -327,7 +332,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "pointradius": 2, "points": false, "renderer": "flot", @@ -338,7 +343,7 @@ "targets": [ { "exemplar": true, - "expr": "sum(minio_bucket_usage_total_bytes) by (instance)", + "expr": "sum(minio_bucket_usage_total_bytes{job=\"$scrape_jobs\"}) by (instance)", "interval": "", "legendFormat": "Used Capacity", "refId": "A" @@ -429,10 +434,11 @@ "showUnfilled": false, "text": {} }, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "targets": [ { - "expr": "max by (range) (minio_bucket_objects_size_distribution)", + "exemplar": true, + "expr": "max by (range) (minio_bucket_objects_size_distribution{job=\"$scrape_jobs\"})", "format": "time_series", "instant": false, "interval": "", @@ -455,11 +461,13 @@ "defaults": { "mappings": [ { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], "thresholds": { @@ -504,11 +512,11 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "targets": [ { "exemplar": true, - "expr": "sum (minio_node_file_descriptor_open_total)", + "expr": "sum (minio_node_file_descriptor_open_total{job=\"$scrape_jobs\"})", "format": "table", "hide": false, "instant": false, @@ -533,11 +541,13 @@ "defaults": { "mappings": [ { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], "thresholds": { @@ -578,10 +588,11 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "targets": [ { - "expr": "sum by (instance) (minio_s3_traffic_sent_bytes{job=\"minio-job\"})", + "exemplar": true, + "expr": "sum by (instance) (minio_s3_traffic_sent_bytes{job=\"$scrape_jobs\"})", "format": "table", "hide": false, "instant": false, @@ -606,11 +617,13 @@ "defaults": { "mappings": [ { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], "thresholds": { @@ -655,11 +668,11 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "targets": [ { "exemplar": true, - "expr": "sum without (server,instance) (minio_node_go_routine_total)", + "expr": "sum without (server,instance) (minio_node_go_routine_total{job=\"$scrape_jobs\"})", "format": "table", "hide": false, "instant": false, @@ -684,11 +697,13 @@ "defaults": { "mappings": [ { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], "thresholds": { @@ -733,10 +748,11 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "targets": [ { - "expr": "minio_cluster_nodes_online_total", + "exemplar": true, + "expr": "minio_cluster_nodes_online_total{job=\"$scrape_jobs\"}", "format": "table", "hide": false, "instant": true, @@ -761,11 +777,13 @@ "defaults": { "mappings": [ { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], "thresholds": { @@ -810,11 +828,11 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "targets": [ { "exemplar": true, - "expr": "minio_cluster_disk_online_total", + "expr": "minio_cluster_disk_online_total{job=\"$scrape_jobs\"}", "format": "table", "hide": false, "instant": true, @@ -838,11 +856,13 @@ "defaults": { "mappings": [ { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], "thresholds": { @@ -891,10 +911,11 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "targets": [ { - "expr": "count(count by (bucket) (minio_bucket_usage_total_bytes))", + "exemplar": true, + "expr": "count(count by (bucket) (minio_bucket_usage_total_bytes{job=\"$scrape_jobs\"}))", "format": "time_series", "instant": false, "interval": "1m", @@ -915,10 +936,6 @@ "dashLength": 10, "dashes": false, "datasource": "${DS_PROMETHEUS}", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, "fill": 1, "fillGradient": 0, "gridPos": { @@ -945,7 +962,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "pointradius": 2, "points": false, "renderer": "flot", @@ -956,7 +973,7 @@ "targets": [ { "exemplar": true, - "expr": "sum by (server) (rate(minio_s3_traffic_received_bytes[$__rate_interval]))", + "expr": "sum by (server) (rate(minio_s3_traffic_received_bytes{job=\"$scrape_jobs\"}[$__rate_interval]))", "interval": "1m", "intervalFactor": 2, "legendFormat": "Data Received [{{server}}]", @@ -1015,10 +1032,6 @@ "dashLength": 10, "dashes": false, "datasource": "${DS_PROMETHEUS}", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, "fill": 1, "fillGradient": 0, "gridPos": { @@ -1045,7 +1058,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "pointradius": 2, "points": false, "renderer": "flot", @@ -1056,7 +1069,7 @@ "targets": [ { "exemplar": true, - "expr": "sum by (server) (rate(minio_s3_traffic_sent_bytes[$__rate_interval]))", + "expr": "sum by (server) (rate(minio_s3_traffic_sent_bytes{job=\"$scrape_jobs\"}[$__rate_interval]))", "interval": "1m", "intervalFactor": 2, "legendFormat": "Data Sent [{{server}}]", @@ -1114,11 +1127,13 @@ "defaults": { "mappings": [ { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], "thresholds": { @@ -1163,10 +1178,11 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "targets": [ { - "expr": "minio_cluster_nodes_offline_total", + "exemplar": true, + "expr": "minio_cluster_nodes_offline_total{job=\"$scrape_jobs\"}", "format": "table", "hide": false, "instant": true, @@ -1191,11 +1207,13 @@ "defaults": { "mappings": [ { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], "thresholds": { @@ -1240,11 +1258,11 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "targets": [ { "exemplar": true, - "expr": "minio_cluster_disk_offline_total", + "expr": "minio_cluster_disk_offline_total{job=\"$scrape_jobs\"}", "format": "table", "hide": false, "instant": true, @@ -1268,11 +1286,13 @@ "defaults": { "mappings": [ { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], "thresholds": { @@ -1321,10 +1341,11 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "targets": [ { - "expr": "topk(1, sum(minio_bucket_usage_object_total) by (instance))", + "exemplar": true, + "expr": "topk(1, sum(minio_bucket_usage_object_total{job=\"$scrape_jobs\"}) by (instance))", "format": "time_series", "instant": false, "interval": "1m", @@ -1384,11 +1405,11 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "targets": [ { "exemplar": true, - "expr": "minio_heal_time_last_activity_nano_seconds", + "expr": "minio_heal_time_last_activity_nano_seconds{job=\"$scrape_jobs\"}", "format": "time_series", "instant": true, "interval": "", @@ -1452,11 +1473,11 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "targets": [ { "exemplar": true, - "expr": "minio_usage_last_activity_nano_seconds", + "expr": "minio_usage_last_activity_nano_seconds{job=\"$scrape_jobs\"}", "format": "time_series", "instant": true, "interval": "", @@ -1481,10 +1502,6 @@ "dashLength": 10, "dashes": false, "datasource": "${DS_PROMETHEUS}", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, "fill": 1, "fillGradient": 0, "gridPos": { @@ -1511,7 +1528,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "pointradius": 2, "points": false, "renderer": "flot", @@ -1522,7 +1539,7 @@ "targets": [ { "exemplar": true, - "expr": "sum by (server,api) (rate(minio_s3_requests_total[$__rate_interval]))", + "expr": "sum by (server,api) (rate(minio_s3_requests_total{job=\"$scrape_jobs\"}[$__rate_interval]))", "interval": "1m", "intervalFactor": 2, "legendFormat": "{{server,api}}", @@ -1581,10 +1598,6 @@ "dashLength": 10, "dashes": false, "datasource": "${DS_PROMETHEUS}", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, "fill": 1, "fillGradient": 0, "gridPos": { @@ -1611,7 +1624,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "pointradius": 2, "points": false, "renderer": "flot", @@ -1622,7 +1635,7 @@ "targets": [ { "exemplar": true, - "expr": "rate(minio_s3_requests_errors_total[$__rate_interval])", + "expr": "rate(minio_s3_requests_errors_total{job=\"$scrape_jobs\"}[$__rate_interval])", "interval": "1m", "intervalFactor": 2, "legendFormat": "{{server,api}}", @@ -1717,7 +1730,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "pointradius": 5, "points": false, "renderer": "flot", @@ -1728,7 +1741,7 @@ "targets": [ { "exemplar": true, - "expr": "rate(minio_inter_node_traffic_sent_bytes{job=\"minio-job\"}[$__rate_interval])", + "expr": "rate(minio_inter_node_traffic_sent_bytes{job=\"$scrape_jobs\"}[$__rate_interval])", "format": "time_series", "interval": "", "intervalFactor": 2, @@ -1739,7 +1752,7 @@ }, { "exemplar": true, - "expr": "rate(minio_inter_node_traffic_received_bytes{job=\"minio-job\"}[$__rate_interval])", + "expr": "rate(minio_inter_node_traffic_received_bytes{job=\"$scrape_jobs\"}[$__rate_interval])", "interval": "", "legendFormat": "Internode Bytes Sent [{{server}}]", "refId": "B" @@ -1794,10 +1807,6 @@ "dashLength": 10, "dashes": false, "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, "fill": 1, "fillGradient": 0, "gridPos": { @@ -1824,7 +1833,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "pointradius": 2, "points": false, "renderer": "flot", @@ -1835,14 +1844,14 @@ "targets": [ { "exemplar": true, - "expr": "sum by (instance) (minio_heal_objects_heal_total)", + "expr": "sum by (instance) (minio_heal_objects_heal_total{job=\"$scrape_jobs\"})", "interval": "", "legendFormat": "Objects healed in current self heal run", "refId": "A" }, { "exemplar": true, - "expr": "sum by (instance) (minio_heal_objects_error_total)", + "expr": "sum by (instance) (minio_heal_objects_error_total{job=\"$scrape_jobs\"})", "hide": false, "interval": "", "legendFormat": "Heal errors in current self heal run", @@ -1850,7 +1859,7 @@ }, { "exemplar": true, - "expr": "sum by (instance) (minio_heal_objects_total) ", + "expr": "sum by (instance) (minio_heal_objects_total{job=\"$scrape_jobs\"}) ", "hide": false, "interval": "", "legendFormat": "Objects scanned in current self heal run", @@ -1877,6 +1886,7 @@ }, "yaxes": [ { + "$$hashKey": "object:846", "format": "short", "label": null, "logBase": 1, @@ -1885,6 +1895,7 @@ "show": true }, { + "$$hashKey": "object:847", "format": "short", "label": null, "logBase": 1, @@ -1904,10 +1915,6 @@ "dashLength": 10, "dashes": false, "datasource": "${DS_PROMETHEUS}", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, "fill": 1, "fillGradient": 0, "gridPos": { @@ -1934,7 +1941,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "pointradius": 2, "points": false, "renderer": "flot", @@ -1945,7 +1952,7 @@ "targets": [ { "exemplar": true, - "expr": "rate(minio_node_process_cpu_total_seconds[$__rate_interval])", + "expr": "rate(minio_node_process_cpu_total_seconds{job=\"$scrape_jobs\"}[$__rate_interval])", "interval": "", "legendFormat": "CPU Usage Rate [{{server}}]", "refId": "A" @@ -2000,10 +2007,6 @@ "dashLength": 10, "dashes": false, "datasource": "${DS_PROMETHEUS}", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, "fill": 1, "fillGradient": 0, "gridPos": { @@ -2030,7 +2033,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "pointradius": 2, "points": false, "renderer": "flot", @@ -2041,7 +2044,7 @@ "targets": [ { "exemplar": true, - "expr": "minio_node_process_resident_memory_bytes", + "expr": "minio_node_process_resident_memory_bytes{job=\"$scrape_jobs\"}", "interval": "", "legendFormat": "Memory Used [{{server}}]", "refId": "A" @@ -2096,10 +2099,6 @@ "dashLength": 10, "dashes": false, "datasource": "${DS_PROMETHEUS}", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, "fill": 1, "fillGradient": 0, "gridPos": { @@ -2126,7 +2125,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "pointradius": 2, "points": false, "renderer": "flot", @@ -2137,7 +2136,7 @@ "targets": [ { "exemplar": true, - "expr": "minio_node_disk_used_bytes", + "expr": "minio_node_disk_used_bytes{job=\"$scrape_jobs\"}", "format": "time_series", "instant": false, "interval": "", @@ -2194,10 +2193,6 @@ "dashLength": 10, "dashes": false, "datasource": "${DS_PROMETHEUS}", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, "fill": 1, "fillGradient": 0, "gridPos": { @@ -2224,7 +2219,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "pointradius": 2, "points": false, "renderer": "flot", @@ -2235,7 +2230,7 @@ "targets": [ { "exemplar": true, - "expr": "minio_cluster_disk_free_inodes", + "expr": "minio_cluster_disk_free_inodes{job=\"$scrape_jobs\"}", "format": "time_series", "instant": false, "interval": "", @@ -2331,7 +2326,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "pointradius": 2, "points": false, "renderer": "flot", @@ -2342,7 +2337,7 @@ "targets": [ { "exemplar": true, - "expr": "rate(minio_node_syscall_read_total[$__rate_interval])", + "expr": "rate(minio_node_syscall_read_total{job=\"$scrape_jobs\"}[$__rate_interval])", "format": "time_series", "interval": "", "intervalFactor": 2, @@ -2353,7 +2348,7 @@ }, { "exemplar": true, - "expr": "rate(minio_node_syscall_write_total[$__rate_interval])", + "expr": "rate(minio_node_syscall_write_total{job=\"$scrape_jobs\"}[$__rate_interval])", "interval": "", "legendFormat": "Write Syscalls [{{server}}]", "refId": "B" @@ -2448,7 +2443,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "pointradius": 2, "points": false, "renderer": "flot", @@ -2459,7 +2454,7 @@ "targets": [ { "exemplar": true, - "expr": "minio_node_file_descriptor_open_total", + "expr": "minio_node_file_descriptor_open_total{job=\"$scrape_jobs\"}", "interval": "", "legendFormat": "Open FDs [{{server}}]", "refId": "B" @@ -2515,10 +2510,6 @@ "dashLength": 10, "dashes": false, "datasource": "${DS_PROMETHEUS}", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, "fill": 1, "fillGradient": 0, "gridPos": { @@ -2545,7 +2536,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.5", + "pluginVersion": "8.0.6", "pointradius": 2, "points": false, "renderer": "flot", @@ -2556,7 +2547,7 @@ "targets": [ { "exemplar": true, - "expr": "rate(minio_node_io_rchar_bytes[$__rate_interval])", + "expr": "rate(minio_node_io_rchar_bytes{job=\"$scrape_jobs\"}[$__rate_interval])", "format": "time_series", "instant": false, "interval": "", @@ -2565,7 +2556,7 @@ }, { "exemplar": true, - "expr": "rate(minio_node_io_wchar_bytes[$__rate_interval])", + "expr": "rate(minio_node_io_wchar_bytes{job=\"$scrape_jobs\"}[$__rate_interval])", "interval": "", "legendFormat": "Node WChar [{{server}}]", "refId": "B" @@ -2616,13 +2607,37 @@ } ], "refresh": "10s", - "schemaVersion": 27, + "schemaVersion": 30, "style": "dark", "tags": [ "minio" ], "templating": { - "list": [] + "list": [ + { + "allValue": null, + "current": {}, + "datasource": "${DS_PROMETHEUS}", + "definition": "label_values(job)", + "description": null, + "error": null, + "hide": 0, + "includeAll": true, + "label": null, + "multi": true, + "name": "scrape_jobs", + "options": [], + "query": { + "query": "label_values(job)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] }, "time": { "from": "now-3h", @@ -2654,6 +2669,6 @@ }, "timezone": "", "title": "MinIO Overview", - "uid": "pJnnS4hZz", - "version": 3 + "uid": "TgmJnqnnk", + "version": 18 } \ No newline at end of file