mirror of
https://github.com/carlosedp/cluster-monitoring.git
synced 2024-12-22 19:09:30 +01:00
1146 lines
25 KiB
JSON
1146 lines
25 KiB
JSON
{
|
||
"__inputs": [
|
||
{
|
||
"name": "DS_PROMETHEUS",
|
||
"label": "prometheus",
|
||
"description": "",
|
||
"type": "datasource",
|
||
"pluginId": "prometheus",
|
||
"pluginName": "Prometheus"
|
||
}
|
||
],
|
||
"__requires": [
|
||
{
|
||
"type": "grafana",
|
||
"id": "grafana",
|
||
"name": "Grafana",
|
||
"version": "5.0.0"
|
||
},
|
||
{
|
||
"type": "panel",
|
||
"id": "grafana-piechart-panel",
|
||
"name": "Pie Chart",
|
||
"version": "1.2.0"
|
||
},
|
||
{
|
||
"type": "panel",
|
||
"id": "graph",
|
||
"name": "Graph",
|
||
"version": "5.0.0"
|
||
},
|
||
{
|
||
"type": "datasource",
|
||
"id": "prometheus",
|
||
"name": "Prometheus",
|
||
"version": "5.0.0"
|
||
},
|
||
{
|
||
"type": "panel",
|
||
"id": "singlestat",
|
||
"name": "Singlestat",
|
||
"version": "5.0.0"
|
||
}
|
||
],
|
||
"annotations": {
|
||
"list": [
|
||
{
|
||
"builtIn": 1,
|
||
"datasource": "-- Grafana --",
|
||
"enable": true,
|
||
"hide": true,
|
||
"iconColor": "rgba(0, 211, 255, 1)",
|
||
"name": "Annotations & Alerts",
|
||
"type": "dashboard"
|
||
}
|
||
]
|
||
},
|
||
"description": "Visualize Traefik Metrics",
|
||
"editable": true,
|
||
"gnetId": 2870,
|
||
"graphTooltip": 0,
|
||
"id": null,
|
||
"links": [],
|
||
"panels": [
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": true,
|
||
"colors": [
|
||
"rgba(50, 172, 45, 0.97)",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"rgba(245, 54, 54, 0.9)"
|
||
],
|
||
"datasource": "${DS_PROMETHEUS}",
|
||
"format": "none",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
"h": 2,
|
||
"w": 8,
|
||
"x": 0,
|
||
"y": 0
|
||
},
|
||
"id": 7,
|
||
"interval": null,
|
||
"links": [],
|
||
"mappingType": 1,
|
||
"mappingTypes": [
|
||
{
|
||
"name": "value to text",
|
||
"value": 1
|
||
},
|
||
{
|
||
"name": "range to text",
|
||
"value": 2
|
||
}
|
||
],
|
||
"maxDataPoints": 100,
|
||
"nullPointMode": "connected",
|
||
"nullText": null,
|
||
"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": "sum(traefik_request_duration_seconds_sum) / sum(traefik_requests_total) * 1000",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A",
|
||
"step": 60
|
||
}
|
||
],
|
||
"thresholds": "300,600",
|
||
"title": "Average Response Time (ms)",
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "N/A",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "avg"
|
||
},
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": false,
|
||
"colors": [
|
||
"rgba(245, 54, 54, 0.9)",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"rgba(50, 172, 45, 0.97)"
|
||
],
|
||
"datasource": "${DS_PROMETHEUS}",
|
||
"decimals": 0,
|
||
"format": "s",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
"h": 2,
|
||
"w": 8,
|
||
"x": 8,
|
||
"y": 0
|
||
},
|
||
"id": 3,
|
||
"interval": null,
|
||
"links": [],
|
||
"mappingType": 1,
|
||
"mappingTypes": [
|
||
{
|
||
"name": "value to text",
|
||
"value": 1
|
||
},
|
||
{
|
||
"name": "range to text",
|
||
"value": 2
|
||
}
|
||
],
|
||
"maxDataPoints": 100,
|
||
"nullPointMode": "connected",
|
||
"nullText": null,
|
||
"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": "min(time() - process_start_time_seconds{job=\"traefik-ingress-lb\"})",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A",
|
||
"step": 60
|
||
}
|
||
],
|
||
"thresholds": "",
|
||
"title": "Uptime",
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "N/A",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": true,
|
||
"colors": [
|
||
"rgba(50, 172, 45, 0.97)",
|
||
"rgba(26, 206, 22, 0.89)",
|
||
"rgba(245, 54, 54, 0.9)"
|
||
],
|
||
"datasource": "${DS_PROMETHEUS}",
|
||
"format": "none",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
"h": 2,
|
||
"w": 8,
|
||
"x": 16,
|
||
"y": 0
|
||
},
|
||
"id": 9,
|
||
"interval": null,
|
||
"links": [],
|
||
"mappingType": 1,
|
||
"mappingTypes": [
|
||
{
|
||
"name": "value to text",
|
||
"value": 1
|
||
},
|
||
{
|
||
"name": "range to text",
|
||
"value": 2
|
||
}
|
||
],
|
||
"maxDataPoints": 100,
|
||
"nullPointMode": "connected",
|
||
"nullText": null,
|
||
"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": "sum(rate(traefik_requests_total{code=\"404\",method=\"GET\",exported_service=\"http\"}[5m])) * 1000",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"metric": "traefik_requests_total",
|
||
"refId": "A",
|
||
"step": 60
|
||
}
|
||
],
|
||
"thresholds": "0,1",
|
||
"title": "404 Error Count last 5 Minutes",
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "N/A",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "max"
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": true,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${DS_PROMETHEUS}",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
"h": 8,
|
||
"w": 8,
|
||
"x": 0,
|
||
"y": 2
|
||
},
|
||
"id": 1,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": false,
|
||
"linewidth": 1,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(traefik_requests_total{exported_service=\"http\"})",
|
||
"format": "time_series",
|
||
"interval": "",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{http}}",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20
|
||
},
|
||
{
|
||
"expr": "sum(traefik_requests_total{exported_service=\"https\"})",
|
||
"format": "time_series",
|
||
"interval": "",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{https}}",
|
||
"refId": "B",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Total requests",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "none",
|
||
"label": "Count",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"alert": {
|
||
"conditions": [
|
||
{
|
||
"evaluator": {
|
||
"params": [
|
||
1000
|
||
],
|
||
"type": "gt"
|
||
},
|
||
"operator": {
|
||
"type": "and"
|
||
},
|
||
"query": {
|
||
"params": [
|
||
"A",
|
||
"5m",
|
||
"now"
|
||
]
|
||
},
|
||
"reducer": {
|
||
"params": [],
|
||
"type": "avg"
|
||
},
|
||
"type": "query"
|
||
}
|
||
],
|
||
"executionErrorState": "alerting",
|
||
"frequency": "60s",
|
||
"handler": 1,
|
||
"name": "Average response time alert",
|
||
"noDataState": "no_data",
|
||
"notifications": []
|
||
},
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${DS_PROMETHEUS}",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
"h": 8,
|
||
"w": 8,
|
||
"x": 8,
|
||
"y": 2
|
||
},
|
||
"id": 11,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(traefik_request_duration_seconds_sum) / sum(traefik_requests_total) * 1000",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "Average response time (ms)",
|
||
"refId": "A",
|
||
"step": 240
|
||
}
|
||
],
|
||
"thresholds": [
|
||
{
|
||
"colorMode": "critical",
|
||
"fill": true,
|
||
"line": true,
|
||
"op": "gt",
|
||
"value": 1000
|
||
}
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Average response time",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ms",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": true,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${DS_PROMETHEUS}",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
"h": 8,
|
||
"w": 8,
|
||
"x": 16,
|
||
"y": 2
|
||
},
|
||
"id": 6,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": false,
|
||
"linewidth": 1,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(traefik_requests_total[5m]))",
|
||
"format": "time_series",
|
||
"interval": "",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{requests}}",
|
||
"refId": "A",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Requests in last 5 minutes",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${DS_PROMETHEUS}",
|
||
"decimals": 0,
|
||
"fill": 1,
|
||
"gridPos": {
|
||
"h": 11,
|
||
"w": 8,
|
||
"x": 0,
|
||
"y": 10
|
||
},
|
||
"id": 5,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "rate(traefik_requests_total{exported_service=~\"http|https\",code=\"200\"}[5m])",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{service}} {{method}} {{code}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Successful Status Code Count (5min)",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${DS_PROMETHEUS}",
|
||
"decimals": 0,
|
||
"fill": 1,
|
||
"gridPos": {
|
||
"h": 11,
|
||
"w": 8,
|
||
"x": 8,
|
||
"y": 10
|
||
},
|
||
"id": 4,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "rate(traefik_requests_total{exported_service=~\"http|https\",code!=\"200\"}[5m])",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{service}} {{method}} {{code}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Bad Status Code Count (5m)",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${DS_PROMETHEUS}",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
"h": 11,
|
||
"w": 8,
|
||
"x": 16,
|
||
"y": 10
|
||
},
|
||
"id": 8,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "traefik_requests_total{exported_service!~\"http\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{service}} {{method}} {{code}}",
|
||
"refId": "A",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Requests by Request Code",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": true,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${DS_PROMETHEUS}",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 21
|
||
},
|
||
"id": 13,
|
||
"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",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "rate(traefik_requests_total{exported_service=~\"http|https\",code=\"200\"}[5m])",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{method}} : {{code}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"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": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": true,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${DS_PROMETHEUS}",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 21
|
||
},
|
||
"id": 15,
|
||
"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",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "rate(traefik_requests_total{exported_service=~\"http|https\",code!=\"200\"}[5m])",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{ method }} : {{code}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Others status code over 5min",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"cacheTimeout": null,
|
||
"combine": {
|
||
"label": "Others",
|
||
"threshold": 0
|
||
},
|
||
"datasource": "${DS_PROMETHEUS}",
|
||
"fontSize": "80%",
|
||
"format": "short",
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 28
|
||
},
|
||
"id": 17,
|
||
"interval": null,
|
||
"legend": {
|
||
"percentage": true,
|
||
"show": true,
|
||
"values": false
|
||
},
|
||
"legendType": "Right side",
|
||
"links": [],
|
||
"maxDataPoints": 3,
|
||
"nullPointMode": "connected",
|
||
"pieType": "pie",
|
||
"strokeWidth": 1,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(traefik_requests_total{exported_service !~ \"http|https\"}[5m])) by (exported_service) ",
|
||
"format": "time_series",
|
||
"interval": "",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{ exported_service}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"title": "Requests by service",
|
||
"type": "grafana-piechart-panel",
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"cacheTimeout": null,
|
||
"combine": {
|
||
"label": "Others",
|
||
"threshold": 0
|
||
},
|
||
"datasource": "${DS_PROMETHEUS}",
|
||
"fontSize": "80%",
|
||
"format": "short",
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 28
|
||
},
|
||
"id": 19,
|
||
"interval": null,
|
||
"legend": {
|
||
"percentage": true,
|
||
"show": true,
|
||
"values": false
|
||
},
|
||
"legendType": "Right side",
|
||
"links": [],
|
||
"maxDataPoints": 3,
|
||
"nullPointMode": "connected",
|
||
"pieType": "pie",
|
||
"strokeWidth": 1,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(traefik_requests_total{exported_service =~ \"http|https\"}[5m])) by (exported_service) ",
|
||
"format": "time_series",
|
||
"interval": "",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{ exported_service}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"title": "Requests by protocol",
|
||
"type": "grafana-piechart-panel",
|
||
"valueName": "current"
|
||
}
|
||
],
|
||
"refresh": "30s",
|
||
"schemaVersion": 16,
|
||
"style": "dark",
|
||
"tags": [
|
||
"custom"
|
||
],
|
||
"templating": {
|
||
"list": []
|
||
},
|
||
"time": {
|
||
"from": "now-3h",
|
||
"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": "browser",
|
||
"title": "Traefik Realtime Metrics",
|
||
"uid": "000000010",
|
||
"version": 6
|
||
} |