Files
monitoring/grafana/provisioning/dashboards/traefik-v3.json
T

2 lines
10 KiB
JSON

{"__inputs": [{"name": "DS_PROMETHEUS", "label": "Prometheus", "description": "Prometheus", "type": "datasource", "pluginId": "prometheus", "pluginName": "Prometheus"}], "__requires": [{"type": "panel", "id": "bargauge", "name": "Bar Gauge", "version": ""}, {"type": "panel", "id": "gauge", "name": "Gauge", "version": ""}, {"type": "grafana", "id": "grafana", "name": "Grafana", "version": "6.5.0"}, {"type": "panel", "id": "grafana-piechart-panel", "name": "Pie Chart", "version": "1.3.9"}, {"type": "panel", "id": "graph", "name": "Graph", "version": ""}, {"type": "datasource", "id": "prometheus", "name": "Prometheus", "version": "1.0.0"}, {"type": "panel", "id": "singlestat", "name": "Singlestat", "version": ""}], "annotations": {"list": [{"builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard"}]}, "description": "Traefik v2.0 dashboard Prometheus Stack", "editable": true, "gnetId": 2870, "graphTooltip": 0, "id": null, "iteration": 1574804746677, "links": [], "panels": [{"datasource": "${DS_PROMETHEUS}", "gridPos": {"h": 1, "w": 24, "x": 0, "y": 0}, "id": 10, "title": "$service stats", "type": "row"}, {"cacheTimeout": null, "colorBackground": false, "colorValue": true, "colors": ["#d44a3a", "rgba(237, 129, 40, 0.89)", "#299c46"], "datasource": "${DS_PROMETHEUS}", "format": "none", "gauge": {"maxValue": 100, "minValue": 0, "show": false, "thresholdLabels": false, "thresholdMarkers": true}, "gridPos": {"h": 7, "w": 8, "x": 0, "y": 1}, "id": 1, "interval": null, "links": [], "mappingType": 1, "mappingTypes": [{"name": "value to text", "value": 1}, {"name": "range to text", "value": 2}], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, "options": {}, "postfix": "", "postfixFontSize": "50%", "prefix": "", "prefixFontSize": "50%", "rangeMaps": [{"from": "null", "text": "N/A", "to": "null"}], "sparkline": {"fillColor": "rgba(31, 118, 189, 0.18)", "full": false, "lineColor": "rgb(31, 120, 193)", "show": false}, "tableColumn": "", "targets": [{"expr": "count(traefik_service_open_connections)", "format": "time_series", "intervalFactor": 2, "refId": "A"}], "thresholds": "0,1", "title": "Number of Traefik Services ", "type": "singlestat", "valueFontSize": "80%", "valueMaps": [{"op": "=", "text": "OK", "value": "1"}], "valueName": "current"}, {"cacheTimeout": null, "datasource": "${DS_PROMETHEUS}", "gridPos": {"h": 7, "w": 8, "x": 8, "y": 1}, "id": 2, "links": [], "options": {"fieldOptions": {"calcs": ["mean"], "defaults": {"mappings": [{"id": 0, "op": "=", "text": "N/A", "type": 1, "value": "null"}], "max": 5, "min": 0, "nullValueMode": "connected", "thresholds": [{"color": "green", "value": null}, {"color": "red", "value": 3}], "unit": "none"}, "override": {}, "values": false}, "orientation": "horizontal", "showThresholdLabels": false, "showThresholdMarkers": true}, "pluginVersion": "6.5.0", "targets": [{"expr": "traefik_service_request_duration_seconds_sum{service=\"$service\"}", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{$service}} | {{method}}", "refId": "A"}], "timeFrom": null, "timeShift": null, "title": "Average response time", "type": "gauge"}, {"aliasColors": {}, "breakPoint": "50%", "cacheTimeout": null, "combine": {"label": "Others", "threshold": 0}, "datasource": "${DS_PROMETHEUS}", "fontSize": "80%", "format": "short", "gridPos": {"h": 7, "w": 8, "x": 16, "y": 1}, "id": 4, "interval": null, "legend": {"show": true, "values": true}, "legendType": "Under graph", "links": [], "maxDataPoints": 3, "nullPointMode": "connected", "options": {}, "pieType": "pie", "pluginVersion": "6.5.0", "strokeWidth": 1, "targets": [{"expr": "avg_over_time(traefik_service_request_duration_seconds_sum{service=\"$service\"}[5m])", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{service}}", "refId": "A"}], "title": "Avergae Service response time", "type": "grafana-piechart-panel", "valueName": "current"}, {"cacheTimeout": null, "datasource": "${DS_PROMETHEUS}", "gridPos": {"h": 7, "w": 24, "x": 0, "y": 8}, "id": 3, "links": [], "options": {"displayMode": "basic", "fieldOptions": {"calcs": ["range"], "defaults": {"mappings": [], "max": 100, "min": 0, "thresholds": [{"color": "green", "value": null}], "unit": "short"}, "override": {}, "values": false}, "orientation": "horizontal"}, "pluginVersion": "6.5.0", "targets": [{"expr": "avg(traefik_service_requests_total{service=\"$service\"})", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{$service}} | {{method}}", "refId": "A"}], "timeFrom": null, "timeShift": null, "title": "Total requests over 5min $service", "type": "bargauge"}, {"collapsed": false, "datasource": "${DS_PROMETHEUS}", "gridPos": {"h": 1, "w": 24, "x": 0, "y": 15}, "id": 12, "panels": [], "title": "Global stats", "type": "row"}, {"aliasColors": {}, "bars": true, "dashLength": 10, "dashes": false, "datasource": "${DS_PROMETHEUS}", "fill": 1, "fillGradient": 0, "gridPos": {"h": 7, "w": 12, "x": 0, "y": 16}, "hiddenSeries": false, "id": 5, "legend": {"alignAsTable": true, "avg": false, "current": true, "max": true, "min": true, "rightSide": true, "show": true, "total": false, "values": true}, "lines": false, "linewidth": 1, "links": [], "nullPointMode": "null", "options": {"dataLinks": []}, "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": true, "steppedLine": false, "targets": [{"expr": "rate(traefik_entrypoint_requests_total{entrypoint=~\"$entrypoint\",code=\"200\"}[5m])", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{method}} : {{code}}", "refId": "A"}], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Status code 200 over 5min", "tooltip": {"shared": true, "sort": 0, "value_type": "individual"}, "type": "graph", "xaxis": {"buckets": null, "mode": "time", "name": null, "show": true, "values": []}, "yaxes": [{"decimals": null, "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true}, {"decimals": null, "format": "short", "label": "", "logBase": 1, "max": null, "min": null, "show": true}], "yaxis": {"align": false, "alignLevel": null}}, {"datasource": "${DS_PROMETHEUS}", "gridPos": {"h": 7, "w": 12, "x": 12, "y": 16}, "id": 6, "links": [], "options": {"displayMode": "basic", "fieldOptions": {"calcs": ["mean"], "defaults": {"decimals": 0, "mappings": [], "max": 100, "min": 0, "thresholds": [{"color": "green", "value": null}], "unit": "short"}, "limit": 10, "override": {}, "values": false}, "orientation": "horizontal"}, "pluginVersion": "6.5.0", "targets": [{"expr": "rate(traefik_entrypoint_requests_total{entrypoint=~\"$entrypoint\",code!=\"200\"}[5m]) * 100", "format": "time_series", "instant": false, "intervalFactor": 2, "legendFormat": "{{ method }} : {{code}}", "refId": "A"}, {"expr": "avg_over_time", "refId": "B"}], "timeFrom": null, "timeShift": null, "title": "Entrypoint Error Codes", "type": "bargauge"}, {"aliasColors": {}, "breakPoint": "50%", "cacheTimeout": null, "combine": {"label": "Others", "threshold": 0}, "datasource": "${DS_PROMETHEUS}", "fontSize": "80%", "format": "short", "gridPos": {"h": 7, "w": 12, "x": 0, "y": 23}, "id": 7, "interval": null, "legend": {"show": true, "values": true}, "legendType": "Right side", "links": [], "maxDataPoints": 3, "nullPointMode": "connected", "options": {}, "pieType": "pie", "strokeWidth": 1, "targets": [{"expr": "sum(rate(traefik_service_requests_total[5m])) by (service) ", "format": "time_series", "interval": "", "intervalFactor": 2, "legendFormat": "{{ service }}", "refId": "A"}], "title": "Requests by service", "type": "grafana-piechart-panel", "valueName": "total"}, {"aliasColors": {}, "breakPoint": "50%", "cacheTimeout": null, "combine": {"label": "Others", "threshold": 0}, "datasource": "${DS_PROMETHEUS}", "fontSize": "80%", "format": "short", "gridPos": {"h": 7, "w": 12, "x": 12, "y": 23}, "id": 8, "interval": null, "legend": {"show": true, "values": true}, "legendType": "Right side", "links": [], "maxDataPoints": 3, "nullPointMode": "connected", "options": {}, "pieType": "pie", "strokeWidth": 1, "targets": [{"expr": "sum(rate(traefik_entrypoint_requests_total{entrypoint =~ \"$entrypoint\"}[5m])) by (entrypoint) ", "format": "time_series", "interval": "", "intervalFactor": 2, "legendFormat": "{{ entrypoint }}", "refId": "A"}], "title": "Requests by protocol", "type": "grafana-piechart-panel", "valueName": "total"}], "schemaVersion": 21, "style": "dark", "tags": ["traefik", "prometheus"], "templating": {"list": [{"allValue": null, "current": {}, "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"}, "definition": "label_values(service)", "hide": 0, "includeAll": true, "label": null, "multi": false, "name": "service", "options": [], "query": "label_values(service)", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false}, {"allValue": null, "current": {}, "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"}, "definition": "label_values(entrypoint)", "hide": 0, "includeAll": true, "label": null, "multi": true, "name": "entrypoint", "options": [], "query": "label_values(entrypoint)", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false}, {"allValue": null, "current": {}, "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"}, "definition": "label_values(code)", "hide": 2, "includeAll": false, "label": null, "multi": false, "name": "code", "options": [], "query": "label_values(code)", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false}]}, "time": {"from": "now-5m", "to": "now"}, "timepicker": {"refresh_intervals": ["5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"], "time_options": ["5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d"]}, "timezone": "", "title": "Traefik v3", "uid": "traefik-v3", "version": 1}