{ "__inputs": [ { "name": "DS_PROMETHEUS", "label": "Prometheus", "description": "prometheus metric collector that receives metric from freeRouter control plane", "type": "datasource", "pluginId": "prometheus", "pluginName": "Prometheus" } ], "__requires": [ { "type": "panel", "id": "bargauge", "name": "Bar gauge", "version": "" }, { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "7.2.0" }, { "type": "panel", "id": "graph", "name": "Graph", "version": "" }, { "type": "datasource", "id": "prometheus", "name": "Prometheus", "version": "1.0.0" }, { "type": "panel", "id": "stat", "name": "Stat", "version": "" } ], "annotations": { "list": [ { "builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "editable": true, "gnetId": 13144, "graphTooltip": 0, "id": null, "iteration": 1602514286833, "links": [], "panels": [ { "datasource": "${DS_PROMETHEUS}", "fieldConfig": { "defaults": { "custom": {}, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "dark-green", "value": null }, { "color": "dark-green", "value": 0 }, { "color": "dark-orange", "value": 100 } ] }, "unit": "ms" }, "overrides": [] }, "gridPos": { "h": 6, "w": 12, "x": 0, "y": 0 }, "id": 2, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "last" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "7.2.0", "repeat": null, "targets": [ { "expr": "prom_time{instance=\"$instance\",met=\"metrics\"}", "instant": false, "interval": "", "legendFormat": "{{met}}", "refId": "A" } ], "timeFrom": null, "timeShift": null, "title": "{$instance}: All metrics fetch duration", "type": "stat" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "${DS_PROMETHEUS}", "fieldConfig": { "defaults": { "custom": {}, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "dark-green", "value": null }, { "color": "dark-green", "value": 0 }, { "color": "dark-orange", "value": 100 } ] }, "unit": "none" }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 6, "w": 12, "x": 12, "y": 0 }, "hiddenSeries": false, "id": 4, "legend": { "alignAsTable": true, "avg": false, "current": true, "max": true, "min": true, "show": true, "total": false, "values": true }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.2.0", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "rate(prom_asked{instance=\"$instance\",met=\"metrics\"}[1m])", "instant": false, "interval": "", "legendFormat": "Asked count", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Metric query rate for target: {$instance}", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "$$hashKey": "object:970", "format": "none", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "$$hashKey": "object:971", "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "datasource": "${DS_PROMETHEUS}", "fieldConfig": { "defaults": { "custom": {}, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "dark-green", "value": null }, { "color": "dark-green", "value": 0 }, { "color": "dark-orange", "value": 100 } ] }, "unit": "ms" }, "overrides": [] }, "gridPos": { "h": 18, "w": 24, "x": 0, "y": 6 }, "id": 3, "options": { "displayMode": "gradient", "orientation": "horizontal", "reduceOptions": { "calcs": [ "last" ], "fields": "", "values": false }, "showUnfilled": true }, "pluginVersion": "7.2.0", "targets": [ { "expr": "prom_time{instance=\"$instance\",met!~\"metrics\"}", "instant": true, "interval": "", "legendFormat": "{{met}}", "refId": "A" } ], "timeFrom": null, "timeShift": null, "title": "{$instance} Prometheus metrics", "type": "bargauge" } ], "schemaVersion": 26, "style": "dark", "tags": [ "[scope:local]" ], "templating": { "list": [ { "allValue": null, "current": {}, "datasource": "${DS_PROMETHEUS}", "definition": "label_values({__name__=~\"prom_.*\"},instance)", "hide": 0, "includeAll": false, "label": null, "multi": false, "name": "instance", "options": [], "query": "label_values({__name__=~\"prom_.*\"},instance)", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": {}, "datasource": "${DS_PROMETHEUS}", "definition": "label_values({met=~\".*\",instance=\"$instance\"},met)", "hide": 2, "includeAll": true, "label": null, "multi": true, "name": "metric_name", "options": [], "query": "label_values({met=~\".*\",instance=\"$instance\"},met)", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-6h", "to": "now" }, "timepicker": {}, "timezone": "", "title": "RARE/freeRouter - Prometheus metrics", "uid": "vZWgBhcMk", "version": 44, "description": "Display freeRouter Prometheus metrics" }