[#79] Fix duplicate Grafana Dashboard IDs

Fixes the duplicate grafana dashboard UIDs by allowing the DB to generate
the UIDs
This commit is contained in:
Dan Webb 2020-07-31 13:14:01 +01:00
parent bdd892ecce
commit 7d2b7473d8
No known key found for this signature in database
GPG Key ID: F5F01E8D94E61CD3
8 changed files with 1367 additions and 1490 deletions

View File

@ -1,7 +1,6 @@
{ {
"annotations": { "annotations": {
"list": [ "list": [{
{
"builtIn": 1, "builtIn": 1,
"datasource": "-- Grafana --", "datasource": "-- Grafana --",
"enable": true, "enable": true,
@ -9,8 +8,7 @@
"iconColor": "rgba(0, 211, 255, 1)", "iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts", "name": "Annotations & Alerts",
"type": "dashboard" "type": "dashboard"
} }]
]
}, },
"description": "Dashboard for single APC UPS", "description": "Dashboard for single APC UPS",
"editable": true, "editable": true,
@ -18,8 +16,7 @@
"graphTooltip": 0, "graphTooltip": 0,
"id": 14, "id": 14,
"links": [], "links": [],
"panels": [ "panels": [{
{
"cacheTimeout": null, "cacheTimeout": null,
"colorBackground": false, "colorBackground": false,
"colorValue": false, "colorValue": false,
@ -50,8 +47,7 @@
"isNew": true, "isNew": true,
"links": [], "links": [],
"mappingType": 1, "mappingType": 1,
"mappingTypes": [ "mappingTypes": [{
{
"name": "value to text", "name": "value to text",
"value": 1 "value": 1
}, },
@ -67,13 +63,11 @@
"postfixFontSize": "50%", "postfixFontSize": "50%",
"prefix": "", "prefix": "",
"prefixFontSize": "50%", "prefixFontSize": "50%",
"rangeMaps": [ "rangeMaps": [{
{
"from": "null", "from": "null",
"text": "N/A", "text": "N/A",
"to": "null" "to": "null"
} }],
],
"sparkline": { "sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)", "fillColor": "rgba(31, 118, 189, 0.18)",
"full": false, "full": false,
@ -81,8 +75,7 @@
"show": false "show": false
}, },
"tableColumn": "", "tableColumn": "",
"targets": [ "targets": [{
{
"expr": "apcups_battery_charge_percent", "expr": "apcups_battery_charge_percent",
"format": "time_series", "format": "time_series",
"interval": "10s", "interval": "10s",
@ -90,19 +83,16 @@
"legendFormat": "", "legendFormat": "",
"refId": "A", "refId": "A",
"step": 10 "step": 10
} }],
],
"thresholds": "25,50", "thresholds": "25,50",
"title": "Battery Charge", "title": "Battery Charge",
"type": "singlestat", "type": "singlestat",
"valueFontSize": "80%", "valueFontSize": "80%",
"valueMaps": [ "valueMaps": [{
{
"op": "=", "op": "=",
"text": "N/A", "text": "N/A",
"value": "null" "value": "null"
} }],
],
"valueName": "current" "valueName": "current"
}, },
{ {
@ -140,15 +130,13 @@
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [{
{
"expr": "apcups_battery_charge_percent", "expr": "apcups_battery_charge_percent",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "Battery", "legendFormat": "Battery",
"refId": "A" "refId": "A"
} }],
],
"thresholds": [], "thresholds": [],
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
@ -167,8 +155,7 @@
"show": true, "show": true,
"values": [] "values": []
}, },
"yaxes": [ "yaxes": [{
{
"decimals": null, "decimals": null,
"format": "percent", "format": "percent",
"label": null, "label": null,
@ -219,8 +206,7 @@
"interval": null, "interval": null,
"links": [], "links": [],
"mappingType": 1, "mappingType": 1,
"mappingTypes": [ "mappingTypes": [{
{
"name": "value to text", "name": "value to text",
"value": 1 "value": 1
}, },
@ -236,13 +222,11 @@
"postfixFontSize": "50%", "postfixFontSize": "50%",
"prefix": "", "prefix": "",
"prefixFontSize": "50%", "prefixFontSize": "50%",
"rangeMaps": [ "rangeMaps": [{
{
"from": "null", "from": "null",
"text": "N/A", "text": "N/A",
"to": "null" "to": "null"
} }],
],
"sparkline": { "sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)", "fillColor": "rgba(31, 118, 189, 0.18)",
"full": false, "full": false,
@ -250,26 +234,22 @@
"show": false "show": false
}, },
"tableColumn": "", "tableColumn": "",
"targets": [ "targets": [{
{
"expr": "apcups_time_left_seconds / 60", "expr": "apcups_time_left_seconds / 60",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "", "legendFormat": "",
"refId": "A" "refId": "A"
} }],
],
"thresholds": "2,5", "thresholds": "2,5",
"title": "Time on Battery", "title": "Time on Battery",
"type": "singlestat", "type": "singlestat",
"valueFontSize": "150%", "valueFontSize": "150%",
"valueMaps": [ "valueMaps": [{
{
"op": "=", "op": "=",
"text": "N/A", "text": "N/A",
"value": "null" "value": "null"
} }],
],
"valueName": "current" "valueName": "current"
}, },
{ {
@ -301,8 +281,7 @@
"interval": null, "interval": null,
"links": [], "links": [],
"mappingType": 1, "mappingType": 1,
"mappingTypes": [ "mappingTypes": [{
{
"name": "value to text", "name": "value to text",
"value": 1 "value": 1
}, },
@ -318,13 +297,11 @@
"postfixFontSize": "50%", "postfixFontSize": "50%",
"prefix": "", "prefix": "",
"prefixFontSize": "50%", "prefixFontSize": "50%",
"rangeMaps": [ "rangeMaps": [{
{
"from": "null", "from": "null",
"text": "N/A", "text": "N/A",
"to": "null" "to": "null"
} }],
],
"sparkline": { "sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)", "fillColor": "rgba(31, 118, 189, 0.18)",
"full": false, "full": false,
@ -332,26 +309,22 @@
"show": false "show": false
}, },
"tableColumn": "", "tableColumn": "",
"targets": [ "targets": [{
{
"expr": "topk(1,apcups_status == 1)", "expr": "topk(1,apcups_status == 1)",
"format": "time_series", "format": "time_series",
"intervalFactor": 1, "intervalFactor": 1,
"legendFormat": "{{ status }}", "legendFormat": "{{ status }}",
"refId": "A" "refId": "A"
} }],
],
"thresholds": "", "thresholds": "",
"title": "UPS Status", "title": "UPS Status",
"type": "singlestat", "type": "singlestat",
"valueFontSize": "80%", "valueFontSize": "80%",
"valueMaps": [ "valueMaps": [{
{
"op": "=", "op": "=",
"text": "N/A", "text": "N/A",
"value": "null" "value": "null"
} }],
],
"valueName": "name" "valueName": "name"
}, },
{ {
@ -389,8 +362,7 @@
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [{
{
"expr": "apcups_line_nominal_volts", "expr": "apcups_line_nominal_volts",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
@ -423,8 +395,7 @@
"show": true, "show": true,
"values": [] "values": []
}, },
"yaxes": [ "yaxes": [{
{
"format": "volt", "format": "volt",
"label": null, "label": null,
"logBase": 1, "logBase": 1,
@ -481,16 +452,14 @@
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [{
{
"expr": "apcups_load_percent", "expr": "apcups_load_percent",
"format": "time_series", "format": "time_series",
"instant": false, "instant": false,
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "Percent", "legendFormat": "Percent",
"refId": "A" "refId": "A"
} }],
],
"thresholds": [], "thresholds": [],
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
@ -509,8 +478,7 @@
"show": true, "show": true,
"values": [] "values": []
}, },
"yaxes": [ "yaxes": [{
{
"format": "percent", "format": "percent",
"label": null, "label": null,
"logBase": 1, "logBase": 1,
@ -560,8 +528,7 @@
"interval": null, "interval": null,
"links": [], "links": [],
"mappingType": 1, "mappingType": 1,
"mappingTypes": [ "mappingTypes": [{
{
"name": "value to text", "name": "value to text",
"value": 1 "value": 1
}, },
@ -577,13 +544,11 @@
"postfixFontSize": "100%", "postfixFontSize": "100%",
"prefix": "", "prefix": "",
"prefixFontSize": "50%", "prefixFontSize": "50%",
"rangeMaps": [ "rangeMaps": [{
{
"from": "null", "from": "null",
"text": "N/A", "text": "N/A",
"to": "null" "to": "null"
} }],
],
"sparkline": { "sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)", "fillColor": "rgba(31, 118, 189, 0.18)",
"full": false, "full": false,
@ -591,27 +556,23 @@
"show": false "show": false
}, },
"tableColumn": "", "tableColumn": "",
"targets": [ "targets": [{
{
"expr": "apcups_nominal_power_watts*(apcups_load_percent/100)", "expr": "apcups_nominal_power_watts*(apcups_load_percent/100)",
"format": "time_series", "format": "time_series",
"instant": true, "instant": true,
"intervalFactor": 1, "intervalFactor": 1,
"legendFormat": "", "legendFormat": "",
"refId": "A" "refId": "A"
} }],
],
"thresholds": "", "thresholds": "",
"title": "Current UPS Load", "title": "Current UPS Load",
"type": "singlestat", "type": "singlestat",
"valueFontSize": "100%", "valueFontSize": "100%",
"valueMaps": [ "valueMaps": [{
{
"op": "=", "op": "=",
"text": "N/A", "text": "N/A",
"value": "null" "value": "null"
} }],
],
"valueName": "avg" "valueName": "avg"
}, },
{ {
@ -642,8 +603,7 @@
"interval": null, "interval": null,
"links": [], "links": [],
"mappingType": 1, "mappingType": 1,
"mappingTypes": [ "mappingTypes": [{
{
"name": "value to text", "name": "value to text",
"value": 1 "value": 1
}, },
@ -659,13 +619,11 @@
"postfixFontSize": "100%", "postfixFontSize": "100%",
"prefix": "", "prefix": "",
"prefixFontSize": "50%", "prefixFontSize": "50%",
"rangeMaps": [ "rangeMaps": [{
{
"from": "null", "from": "null",
"text": "N/A", "text": "N/A",
"to": "null" "to": "null"
} }],
],
"sparkline": { "sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)", "fillColor": "rgba(31, 118, 189, 0.18)",
"full": false, "full": false,
@ -673,27 +631,23 @@
"show": false "show": false
}, },
"tableColumn": "", "tableColumn": "",
"targets": [ "targets": [{
{
"expr": "apcups_nominal_power_watts*(apcups_load_percent/100)", "expr": "apcups_nominal_power_watts*(apcups_load_percent/100)",
"format": "time_series", "format": "time_series",
"instant": false, "instant": false,
"intervalFactor": 1, "intervalFactor": 1,
"legendFormat": "", "legendFormat": "",
"refId": "A" "refId": "A"
} }],
],
"thresholds": "", "thresholds": "",
"title": "Average UPS Load", "title": "Average UPS Load",
"type": "singlestat", "type": "singlestat",
"valueFontSize": "100%", "valueFontSize": "100%",
"valueMaps": [ "valueMaps": [{
{
"op": "=", "op": "=",
"text": "N/A", "text": "N/A",
"value": "null" "value": "null"
} }],
],
"valueName": "avg" "valueName": "avg"
} }
], ],
@ -735,6 +689,5 @@
}, },
"timezone": "", "timezone": "",
"title": "UPS", "title": "UPS",
"uid": "CZrVv8rmk",
"version": 5 "version": 5
} }

View File

@ -1,7 +1,6 @@
{ {
"annotations": { "annotations": {
"list": [ "list": [{
{
"builtIn": 1, "builtIn": 1,
"datasource": "-- Grafana --", "datasource": "-- Grafana --",
"enable": true, "enable": true,
@ -9,8 +8,7 @@
"iconColor": "rgba(0, 211, 255, 1)", "iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts", "name": "Annotations & Alerts",
"type": "dashboard" "type": "dashboard"
} }]
]
}, },
"description": "A dashboard for the CoreDNS DNS server.", "description": "A dashboard for the CoreDNS DNS server.",
"editable": true, "editable": true,
@ -19,8 +17,7 @@
"id": 14, "id": 14,
"iteration": 1549319226130, "iteration": 1549319226130,
"links": [], "links": [],
"panels": [ "panels": [{
{
"aliasColors": {}, "aliasColors": {},
"bars": false, "bars": false,
"dashLength": 10, "dashLength": 10,
@ -54,17 +51,14 @@
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [ "seriesOverrides": [{
{
"alias": "total", "alias": "total",
"yaxis": 2 "yaxis": 2
} }],
],
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [{
{
"expr": "sum(rate(coredns_dns_request_count_total{instance=~\"$instance\"}[5m])) by (proto)", "expr": "sum(rate(coredns_dns_request_count_total{instance=~\"$instance\"}[5m])) by (proto)",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
@ -99,8 +93,7 @@
"show": true, "show": true,
"values": [] "values": []
}, },
"yaxes": [ "yaxes": [{
{
"format": "pps", "format": "pps",
"logBase": 1, "logBase": 1,
"max": null, "max": null,
@ -154,8 +147,7 @@
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [ "seriesOverrides": [{
{
"alias": "total", "alias": "total",
"yaxis": 2 "yaxis": 2
}, },
@ -167,15 +159,13 @@
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [{
{
"expr": "sum(rate(coredns_dns_request_type_count_total{instance=~\"$instance\"}[5m])) by (type)", "expr": "sum(rate(coredns_dns_request_type_count_total{instance=~\"$instance\"}[5m])) by (type)",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{type}}", "legendFormat": "{{type}}",
"refId": "A", "refId": "A",
"step": 60 "step": 60
} }],
],
"thresholds": [], "thresholds": [],
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
@ -194,8 +184,7 @@
"show": true, "show": true,
"values": [] "values": []
}, },
"yaxes": [ "yaxes": [{
{
"format": "pps", "format": "pps",
"logBase": 1, "logBase": 1,
"max": null, "max": null,
@ -249,17 +238,14 @@
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [ "seriesOverrides": [{
{
"alias": "total", "alias": "total",
"yaxis": 2 "yaxis": 2
} }],
],
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [{
{
"expr": "sum(rate(coredns_dns_request_count_total{instance=~\"$instance\"}[5m])) by (zone)", "expr": "sum(rate(coredns_dns_request_count_total{instance=~\"$instance\"}[5m])) by (zone)",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{zone}}", "legendFormat": "{{zone}}",
@ -292,8 +278,7 @@
"show": true, "show": true,
"values": [] "values": []
}, },
"yaxes": [ "yaxes": [{
{
"format": "pps", "format": "pps",
"logBase": 1, "logBase": 1,
"max": null, "max": null,
@ -347,17 +332,14 @@
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [ "seriesOverrides": [{
{
"alias": "total", "alias": "total",
"yaxis": 2 "yaxis": 2
} }],
],
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [{
{
"expr": "sum(rate(coredns_dns_request_do_count_total{instance=~\"$instance\"}[5m]))", "expr": "sum(rate(coredns_dns_request_do_count_total{instance=~\"$instance\"}[5m]))",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "DO", "legendFormat": "DO",
@ -390,8 +372,7 @@
"show": true, "show": true,
"values": [] "values": []
}, },
"yaxes": [ "yaxes": [{
{
"format": "pps", "format": "pps",
"logBase": 1, "logBase": 1,
"max": null, "max": null,
@ -445,8 +426,7 @@
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [ "seriesOverrides": [{
{
"alias": "tcp:90", "alias": "tcp:90",
"yaxis": 2 "yaxis": 2
}, },
@ -462,8 +442,7 @@
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [{
{
"expr": "histogram_quantile(0.99, sum(rate(coredns_dns_request_size_bytes_bucket{instance=~\"$instance\",proto=\"udp\"}[5m])) by (le,proto))", "expr": "histogram_quantile(0.99, sum(rate(coredns_dns_request_size_bytes_bucket{instance=~\"$instance\",proto=\"udp\"}[5m])) by (le,proto))",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{proto}}:99 ", "legendFormat": "{{proto}}:99 ",
@ -503,8 +482,7 @@
"show": true, "show": true,
"values": [] "values": []
}, },
"yaxes": [ "yaxes": [{
{
"format": "bytes", "format": "bytes",
"logBase": 1, "logBase": 1,
"max": null, "max": null,
@ -558,8 +536,7 @@
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [ "seriesOverrides": [{
{
"alias": "tcp:90", "alias": "tcp:90",
"yaxis": 1 "yaxis": 1
}, },
@ -575,8 +552,7 @@
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [{
{
"expr": "histogram_quantile(0.99, sum(rate(coredns_dns_request_size_bytes_bucket{instance=~\"$instance\",proto=\"tcp\"}[5m])) by (le,proto))", "expr": "histogram_quantile(0.99, sum(rate(coredns_dns_request_size_bytes_bucket{instance=~\"$instance\",proto=\"tcp\"}[5m])) by (le,proto))",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{proto}}:99 ", "legendFormat": "{{proto}}:99 ",
@ -616,8 +592,7 @@
"show": true, "show": true,
"values": [] "values": []
}, },
"yaxes": [ "yaxes": [{
{
"format": "bytes", "format": "bytes",
"logBase": 1, "logBase": 1,
"max": null, "max": null,
@ -675,15 +650,13 @@
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [{
{
"expr": "sum(rate(coredns_dns_response_rcode_count_total{instance=~\"$instance\"}[5m])) by (rcode)", "expr": "sum(rate(coredns_dns_response_rcode_count_total{instance=~\"$instance\"}[5m])) by (rcode)",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{rcode}}", "legendFormat": "{{rcode}}",
"refId": "A", "refId": "A",
"step": 40 "step": 40
} }],
],
"thresholds": [], "thresholds": [],
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
@ -702,8 +675,7 @@
"show": true, "show": true,
"values": [] "values": []
}, },
"yaxes": [ "yaxes": [{
{
"format": "pps", "format": "pps",
"logBase": 1, "logBase": 1,
"max": null, "max": null,
@ -761,8 +733,7 @@
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [{
{
"expr": "histogram_quantile(0.99, sum(rate(coredns_dns_request_duration_milliseconds_bucket{instance=~\"$instance\"}[5m])) by (le, job))", "expr": "histogram_quantile(0.99, sum(rate(coredns_dns_request_duration_milliseconds_bucket{instance=~\"$instance\"}[5m])) by (le, job))",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "99%", "legendFormat": "99%",
@ -802,8 +773,7 @@
"show": true, "show": true,
"values": [] "values": []
}, },
"yaxes": [ "yaxes": [{
{
"format": "ms", "format": "ms",
"logBase": 1, "logBase": 1,
"max": null, "max": null,
@ -857,8 +827,7 @@
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [ "seriesOverrides": [{
{
"alias": "udp:50%", "alias": "udp:50%",
"yaxis": 1 "yaxis": 1
}, },
@ -878,8 +847,7 @@
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [{
{
"expr": "histogram_quantile(0.99, sum(rate(coredns_dns_response_size_bytes_bucket{instance=~\"$instance\",proto=\"udp\"}[5m])) by (le,proto)) ", "expr": "histogram_quantile(0.99, sum(rate(coredns_dns_response_size_bytes_bucket{instance=~\"$instance\",proto=\"udp\"}[5m])) by (le,proto)) ",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{proto}}:99%", "legendFormat": "{{proto}}:99%",
@ -920,8 +888,7 @@
"show": true, "show": true,
"values": [] "values": []
}, },
"yaxes": [ "yaxes": [{
{
"format": "bytes", "format": "bytes",
"logBase": 1, "logBase": 1,
"max": null, "max": null,
@ -975,8 +942,7 @@
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [ "seriesOverrides": [{
{
"alias": "udp:50%", "alias": "udp:50%",
"yaxis": 1 "yaxis": 1
}, },
@ -996,8 +962,7 @@
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [{
{
"expr": "histogram_quantile(0.99, sum(rate(coredns_dns_response_size_bytes_bucket{instance=~\"$instance\",proto=\"tcp\"}[5m])) by (le,proto)) ", "expr": "histogram_quantile(0.99, sum(rate(coredns_dns_response_size_bytes_bucket{instance=~\"$instance\",proto=\"tcp\"}[5m])) by (le,proto)) ",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{proto}}:99%", "legendFormat": "{{proto}}:99%",
@ -1038,8 +1003,7 @@
"show": true, "show": true,
"values": [] "values": []
}, },
"yaxes": [ "yaxes": [{
{
"format": "bytes", "format": "bytes",
"logBase": 1, "logBase": 1,
"max": null, "max": null,
@ -1097,15 +1061,13 @@
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [{
{
"expr": "sum(coredns_cache_size{instance=~\"$instance\"}) by (type)", "expr": "sum(coredns_cache_size{instance=~\"$instance\"}) by (type)",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{type}}", "legendFormat": "{{type}}",
"refId": "A", "refId": "A",
"step": 40 "step": 40
} }],
],
"thresholds": [], "thresholds": [],
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
@ -1124,8 +1086,7 @@
"show": true, "show": true,
"values": [] "values": []
}, },
"yaxes": [ "yaxes": [{
{
"format": "short", "format": "short",
"logBase": 1, "logBase": 1,
"max": null, "max": null,
@ -1179,17 +1140,14 @@
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [ "seriesOverrides": [{
{
"alias": "misses", "alias": "misses",
"yaxis": 2 "yaxis": 2
} }],
],
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [{
{
"expr": "sum(rate(coredns_cache_hits_total{instance=~\"$instance\"}[5m])) by (type)", "expr": "sum(rate(coredns_cache_hits_total{instance=~\"$instance\"}[5m])) by (type)",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "hits:{{type}}", "legendFormat": "hits:{{type}}",
@ -1222,8 +1180,7 @@
"show": true, "show": true,
"values": [] "values": []
}, },
"yaxes": [ "yaxes": [{
{
"format": "pps", "format": "pps",
"logBase": 1, "logBase": 1,
"max": null, "max": null,
@ -1251,8 +1208,7 @@
"coredns" "coredns"
], ],
"templating": { "templating": {
"list": [ "list": [{
{
"allValue": ".*", "allValue": ".*",
"current": { "current": {
"text": "All", "text": "All",
@ -1276,8 +1232,7 @@
"tagsQuery": "", "tagsQuery": "",
"type": "query", "type": "query",
"useTags": false "useTags": false
} }]
]
}, },
"time": { "time": {
"from": "now-3h", "from": "now-3h",
@ -1311,6 +1266,5 @@
}, },
"timezone": "utc", "timezone": "utc",
"title": "CoreDNS", "title": "CoreDNS",
"uid": "q-QViRumz",
"version": 1 "version": 1
} }

View File

@ -2252,6 +2252,5 @@
}, },
"timezone": "utc", "timezone": "utc",
"title": "ElasticSearch Cluster", "title": "ElasticSearch Cluster",
"uid": "n_nxrE_mk7",
"version": 4 "version": 4
} }

View File

@ -1,7 +1,6 @@
{ {
"annotations": { "annotations": {
"list": [ "list": [{
{
"builtIn": 1, "builtIn": 1,
"datasource": "-- Grafana --", "datasource": "-- Grafana --",
"enable": true, "enable": true,
@ -9,8 +8,7 @@
"iconColor": "rgba(0, 211, 255, 1)", "iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts", "name": "Annotations & Alerts",
"type": "dashboard" "type": "dashboard"
} }]
]
}, },
"description": "A quick dashboard for displaying Fluentd metrics.", "description": "A quick dashboard for displaying Fluentd metrics.",
"editable": true, "editable": true,
@ -18,8 +16,7 @@
"graphTooltip": 0, "graphTooltip": 0,
"id": 20, "id": 20,
"links": [], "links": [],
"panels": [ "panels": [{
{
"cacheTimeout": null, "cacheTimeout": null,
"colorBackground": false, "colorBackground": false,
"colorValue": false, "colorValue": false,
@ -48,8 +45,7 @@
"interval": null, "interval": null,
"links": [], "links": [],
"mappingType": 1, "mappingType": 1,
"mappingTypes": [ "mappingTypes": [{
{
"name": "value to text", "name": "value to text",
"value": 1 "value": 1
}, },
@ -65,13 +61,11 @@
"postfixFontSize": "50%", "postfixFontSize": "50%",
"prefix": "", "prefix": "",
"prefixFontSize": "50%", "prefixFontSize": "50%",
"rangeMaps": [ "rangeMaps": [{
{
"from": "null", "from": "null",
"text": "N/A", "text": "N/A",
"to": "null" "to": "null"
} }],
],
"sparkline": { "sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)", "fillColor": "rgba(31, 118, 189, 0.18)",
"full": false, "full": false,
@ -79,27 +73,23 @@
"show": false "show": false
}, },
"tableColumn": "", "tableColumn": "",
"targets": [ "targets": [{
{
"expr": "count(kube_pod_info{pod=~\"fluentd.*\"}) / count(node_boot_time_seconds)", "expr": "count(kube_pod_info{pod=~\"fluentd.*\"}) / count(node_boot_time_seconds)",
"format": "time_series", "format": "time_series",
"instant": true, "instant": true,
"intervalFactor": 2, "intervalFactor": 2,
"refId": "A", "refId": "A",
"step": 40 "step": 40
} }],
],
"thresholds": "0,1", "thresholds": "0,1",
"title": "Fluentd Nodes Up", "title": "Fluentd Nodes Up",
"type": "singlestat", "type": "singlestat",
"valueFontSize": "80%", "valueFontSize": "80%",
"valueMaps": [ "valueMaps": [{
{
"op": "=", "op": "=",
"text": "N/A", "text": "N/A",
"value": "null" "value": "null"
} }],
],
"valueName": "avg" "valueName": "avg"
}, },
{ {
@ -137,8 +127,7 @@
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [{
{
"expr": "sum(fluentd_output_status_buffer_queue_length * on(pod) group_left(host_ip) kube_pod_info{pod=~\"fluentd.*\"}) by (host_ip)", "expr": "sum(fluentd_output_status_buffer_queue_length * on(pod) group_left(host_ip) kube_pod_info{pod=~\"fluentd.*\"}) by (host_ip)",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
@ -146,8 +135,7 @@
"metric": "fluentd_buffer_queue_length", "metric": "fluentd_buffer_queue_length",
"refId": "A", "refId": "A",
"step": 2 "step": 2
} }],
],
"thresholds": [], "thresholds": [],
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
@ -166,8 +154,7 @@
"show": true, "show": true,
"values": [] "values": []
}, },
"yaxes": [ "yaxes": [{
{
"format": "short", "format": "short",
"label": null, "label": null,
"logBase": 1, "logBase": 1,
@ -224,8 +211,7 @@
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [{
{
"expr": "sum(fluentd_output_status_buffer_total_bytes * on(pod) group_left(host_ip) kube_pod_info{pod=~\"fluentd.*\"}) by (host_ip)", "expr": "sum(fluentd_output_status_buffer_total_bytes * on(pod) group_left(host_ip) kube_pod_info{pod=~\"fluentd.*\"}) by (host_ip)",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
@ -233,8 +219,7 @@
"metric": "fluentd_buffer_total_queued_size", "metric": "fluentd_buffer_total_queued_size",
"refId": "A", "refId": "A",
"step": 2 "step": 2
} }],
],
"thresholds": [], "thresholds": [],
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
@ -253,8 +238,7 @@
"show": true, "show": true,
"values": [] "values": []
}, },
"yaxes": [ "yaxes": [{
{
"format": "short", "format": "short",
"label": null, "label": null,
"logBase": 1, "logBase": 1,
@ -311,15 +295,13 @@
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [{
{
"expr": "sum(fluentd_output_status_emit_records * on(pod) group_left(host_ip) kube_pod_info{pod=~\"fluentd.*\"}) by (host_ip,plugin_id)", "expr": "sum(fluentd_output_status_emit_records * on(pod) group_left(host_ip) kube_pod_info{pod=~\"fluentd.*\"}) by (host_ip,plugin_id)",
"format": "time_series", "format": "time_series",
"intervalFactor": 1, "intervalFactor": 1,
"legendFormat": "{{ host_ip }} - {{ plugin_id }}", "legendFormat": "{{ host_ip }} - {{ plugin_id }}",
"refId": "A" "refId": "A"
} }],
],
"thresholds": [], "thresholds": [],
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
@ -338,8 +320,7 @@
"show": true, "show": true,
"values": [] "values": []
}, },
"yaxes": [ "yaxes": [{
{
"format": "short", "format": "short",
"label": null, "label": null,
"logBase": 1, "logBase": 1,
@ -396,8 +377,7 @@
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [{
{
"expr": "sum(fluentd_output_status_num_errors * on(pod) group_left(host_ip) kube_pod_info{pod=~\"fluentd.*\"}) by (host_ip, plugin_id)", "expr": "sum(fluentd_output_status_num_errors * on(pod) group_left(host_ip) kube_pod_info{pod=~\"fluentd.*\"}) by (host_ip, plugin_id)",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
@ -405,8 +385,7 @@
"metric": "fluentd_retry_count", "metric": "fluentd_retry_count",
"refId": "A", "refId": "A",
"step": 4 "step": 4
} }],
],
"thresholds": [], "thresholds": [],
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
@ -425,8 +404,7 @@
"show": true, "show": true,
"values": [] "values": []
}, },
"yaxes": [ "yaxes": [{
{
"format": "short", "format": "short",
"label": null, "label": null,
"logBase": 1, "logBase": 1,
@ -483,8 +461,7 @@
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [{
{
"expr": "sum(fluentd_output_status_retry_count * on(pod) group_left(host_ip) kube_pod_info{pod=~\"fluentd.*\"}) by (host_ip, plugin_id)", "expr": "sum(fluentd_output_status_retry_count * on(pod) group_left(host_ip) kube_pod_info{pod=~\"fluentd.*\"}) by (host_ip, plugin_id)",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
@ -492,8 +469,7 @@
"metric": "fluentd_retry_count", "metric": "fluentd_retry_count",
"refId": "A", "refId": "A",
"step": 4 "step": 4
} }],
],
"thresholds": [], "thresholds": [],
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
@ -512,8 +488,7 @@
"show": true, "show": true,
"values": [] "values": []
}, },
"yaxes": [ "yaxes": [{
{
"format": "short", "format": "short",
"label": null, "label": null,
"logBase": 1, "logBase": 1,
@ -574,6 +549,5 @@
}, },
"timezone": "browser", "timezone": "browser",
"title": "Fluentd dashboard (Prometheus exporter)", "title": "Fluentd dashboard (Prometheus exporter)",
"uid": "d-gE2jnmz",
"version": 2 "version": 2
} }

View File

@ -1756,6 +1756,5 @@
}, },
"timezone": "browser", "timezone": "browser",
"title": "Kubernetes cluster monitoring (via Prometheus)", "title": "Kubernetes cluster monitoring (via Prometheus)",
"uid": "82pBZCmRkasd",
"version": 1 "version": 1
} }

View File

@ -1828,6 +1828,5 @@
}, },
"timezone": "browser", "timezone": "browser",
"title": "⭐️ Kubernetes Monitoring Overview", "title": "⭐️ Kubernetes Monitoring Overview",
"uid": "82pBZCmRkasd",
"version": 1 "version": 1
} }

View File

@ -1716,6 +1716,5 @@
}, },
"timezone": "", "timezone": "",
"title": "Traefik", "title": "Traefik",
"uid": "000000113",
"version": 1 "version": 1
} }

View File

@ -2015,7 +2015,7 @@ items:
}, },
"timezone": "UTC", "timezone": "UTC",
"title": "Kubernetes / API server", "title": "Kubernetes / API server",
"uid": "09ec8aa1e996d6ffcd6817bbaff4db1b", "uid": "",
"version": 0 "version": 0
} }
kind: ConfigMap kind: ConfigMap
@ -3840,7 +3840,7 @@ items:
}, },
"timezone": "UTC", "timezone": "UTC",
"title": "Kubernetes / Networking / Cluster", "title": "Kubernetes / Networking / Cluster",
"uid": "ff635a025bcfea7bc3dd4f508990a3e9", "uid": "",
"version": 0 "version": 0
} }
kind: ConfigMap kind: ConfigMap
@ -4966,7 +4966,7 @@ items:
}, },
"timezone": "UTC", "timezone": "UTC",
"title": "Kubernetes / Controller Manager", "title": "Kubernetes / Controller Manager",
"uid": "72e0e05bef5099e5f049b05fdc429ed4", "uid": "",
"version": 0 "version": 0
} }
kind: ConfigMap kind: ConfigMap
@ -6445,7 +6445,7 @@ items:
}, },
"timezone": "utc", "timezone": "utc",
"title": "CoreDNS", "title": "CoreDNS",
"uid": "q-QViRumz", "uid": "",
"version": 1 "version": 1
} }
kind: ConfigMap kind: ConfigMap
@ -8988,7 +8988,7 @@ items:
}, },
"timezone": "UTC", "timezone": "UTC",
"title": "Kubernetes / Compute Resources / Cluster", "title": "Kubernetes / Compute Resources / Cluster",
"uid": "efa86fd1d0c121a26444b636a3f509a8", "uid": "",
"version": 0 "version": 0
} }
kind: ConfigMap kind: ConfigMap
@ -11236,7 +11236,7 @@ items:
}, },
"timezone": "UTC", "timezone": "UTC",
"title": "Kubernetes / Compute Resources / Namespace (Pods)", "title": "Kubernetes / Compute Resources / Namespace (Pods)",
"uid": "85a562078cdf77779eaa1add43ccec1e", "uid": "",
"version": 0 "version": 0
} }
kind: ConfigMap kind: ConfigMap
@ -12183,7 +12183,7 @@ items:
}, },
"timezone": "UTC", "timezone": "UTC",
"title": "Kubernetes / Compute Resources / Node (Pods)", "title": "Kubernetes / Compute Resources / Node (Pods)",
"uid": "200ac8fdbfbb74b39aff88118e4d1c2c", "uid": "",
"version": 0 "version": 0
} }
kind: ConfigMap kind: ConfigMap
@ -13924,7 +13924,7 @@ items:
}, },
"timezone": "UTC", "timezone": "UTC",
"title": "Kubernetes / Compute Resources / Pod", "title": "Kubernetes / Compute Resources / Pod",
"uid": "6581e46e4e5c7ba40a07646395ef7b23", "uid": "",
"version": 0 "version": 0
} }
kind: ConfigMap kind: ConfigMap
@ -15923,7 +15923,7 @@ items:
}, },
"timezone": "UTC", "timezone": "UTC",
"title": "Kubernetes / Compute Resources / Workload", "title": "Kubernetes / Compute Resources / Workload",
"uid": "a164a7f0339f99e89cea5cb47e9be617", "uid": "",
"version": 0 "version": 0
} }
kind: ConfigMap kind: ConfigMap
@ -18078,7 +18078,7 @@ items:
}, },
"timezone": "UTC", "timezone": "UTC",
"title": "Kubernetes / Compute Resources / Namespace (Workloads)", "title": "Kubernetes / Compute Resources / Namespace (Workloads)",
"uid": "a87fb0d919ec0ea5f6543124e16c42a5", "uid": "",
"version": 0 "version": 0
} }
kind: ConfigMap kind: ConfigMap
@ -20577,7 +20577,7 @@ items:
}, },
"timezone": "UTC", "timezone": "UTC",
"title": "Kubernetes / Kubelet", "title": "Kubernetes / Kubelet",
"uid": "3138fa155d5915769fbded898ac09fd9", "uid": "",
"version": 0 "version": 0
} }
kind: ConfigMap kind: ConfigMap
@ -22666,7 +22666,7 @@ items:
}, },
"timezone": "browser", "timezone": "browser",
"title": "Kubernetes cluster monitoring (via Prometheus)", "title": "Kubernetes cluster monitoring (via Prometheus)",
"uid": "82pBZCmRkasd", "uid": "",
"version": 1 "version": 1
} }
kind: ConfigMap kind: ConfigMap
@ -24079,7 +24079,7 @@ items:
}, },
"timezone": "UTC", "timezone": "UTC",
"title": "Kubernetes / Networking / Namespace (Pods)", "title": "Kubernetes / Networking / Namespace (Pods)",
"uid": "8b7a8b326d7a6f1f04244066368c67af", "uid": "",
"version": 0 "version": 0
} }
kind: ConfigMap kind: ConfigMap
@ -25760,7 +25760,7 @@ items:
}, },
"timezone": "UTC", "timezone": "UTC",
"title": "Kubernetes / Networking / Namespace (Workload)", "title": "Kubernetes / Networking / Namespace (Workload)",
"uid": "bbb2a765a623ae38130206c7d94a160f", "uid": "",
"version": 0 "version": 0
} }
kind: ConfigMap kind: ConfigMap
@ -26708,7 +26708,7 @@ items:
}, },
"timezone": "UTC", "timezone": "UTC",
"title": "USE Method / Cluster", "title": "USE Method / Cluster",
"uid": "3e97d1d02672cdd0861f4c97c64f89b2", "uid": "",
"version": 0 "version": 0
} }
kind: ConfigMap kind: ConfigMap
@ -27683,7 +27683,7 @@ items:
}, },
"timezone": "UTC", "timezone": "UTC",
"title": "USE Method / Node", "title": "USE Method / Node",
"uid": "fac67cfbe174d3ef53eb473d73d9212f", "uid": "",
"version": 0 "version": 0
} }
kind: ConfigMap kind: ConfigMap
@ -28661,7 +28661,7 @@ items:
}, },
"timezone": "UTC", "timezone": "UTC",
"title": "Nodes", "title": "Nodes",
"uid": "fa49a4706d07a042595b664c87fb33ea", "uid": "",
"version": 0 "version": 0
} }
kind: ConfigMap kind: ConfigMap
@ -29220,7 +29220,7 @@ items:
}, },
"timezone": "UTC", "timezone": "UTC",
"title": "Kubernetes / Persistent Volumes", "title": "Kubernetes / Persistent Volumes",
"uid": "919b92a8e8041bd567af9edab12c840c", "uid": "",
"version": 0 "version": 0
} }
kind: ConfigMap kind: ConfigMap
@ -30400,7 +30400,7 @@ items:
}, },
"timezone": "UTC", "timezone": "UTC",
"title": "Kubernetes / Networking / Pod", "title": "Kubernetes / Networking / Pod",
"uid": "7a18067ce943a40ae25454675c19ff5c", "uid": "",
"version": 0 "version": 0
} }
kind: ConfigMap kind: ConfigMap
@ -32573,7 +32573,7 @@ items:
}, },
"timezone": "browser", "timezone": "browser",
"title": "⭐️ Kubernetes Monitoring Overview", "title": "⭐️ Kubernetes Monitoring Overview",
"uid": "82pBZCmRkasd", "uid": "",
"version": 1 "version": 1
} }
kind: ConfigMap kind: ConfigMap
@ -36623,7 +36623,7 @@ items:
}, },
"timezone": "UTC", "timezone": "UTC",
"title": "Kubernetes / Proxy", "title": "Kubernetes / Proxy",
"uid": "632e265de029684c40b21cb76bca4f94", "uid": "",
"version": 0 "version": 0
} }
kind: ConfigMap kind: ConfigMap
@ -37673,7 +37673,7 @@ items:
}, },
"timezone": "UTC", "timezone": "UTC",
"title": "Kubernetes / Scheduler", "title": "Kubernetes / Scheduler",
"uid": "2e6b6a3b4bddf1427b3a55aa1311c656", "uid": "",
"version": 0 "version": 0
} }
kind: ConfigMap kind: ConfigMap
@ -38584,7 +38584,7 @@ items:
}, },
"timezone": "UTC", "timezone": "UTC",
"title": "Kubernetes / StatefulSets", "title": "Kubernetes / StatefulSets",
"uid": "a31c1f46e6f727cb37c0d731a7245005", "uid": "",
"version": 0 "version": 0
} }
kind: ConfigMap kind: ConfigMap
@ -39970,7 +39970,7 @@ items:
}, },
"timezone": "UTC", "timezone": "UTC",
"title": "Kubernetes / Networking / Workload", "title": "Kubernetes / Networking / Workload",
"uid": "728bf77cc1166d2f3133bf25846876cc", "uid": "",
"version": 0 "version": 0
} }
kind: ConfigMap kind: ConfigMap