mirror of https://github.com/hashicorp/consul
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1453 lines
34 KiB
1453 lines
34 KiB
{ |
|
"annotations": { |
|
"list": [ |
|
{ |
|
"builtIn": 1, |
|
"datasource": { |
|
"type": "datasource", |
|
"uid": "grafana" |
|
}, |
|
"enable": true, |
|
"hide": true, |
|
"iconColor": "rgba(0, 211, 255, 1)", |
|
"name": "Annotations & Alerts", |
|
"target": { |
|
"limit": 100, |
|
"matchAny": false, |
|
"tags": [], |
|
"type": "dashboard" |
|
}, |
|
"type": "dashboard" |
|
} |
|
] |
|
}, |
|
"description": "Envoy proxy monitoring Dashboard with cluster and service level templates. ", |
|
"editable": true, |
|
"fiscalYearStartMonth": 0, |
|
"gnetId": 11021, |
|
"graphTooltip": 0, |
|
"id": 1, |
|
"links": [], |
|
"liveNow": false, |
|
"panels": [ |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "$datasource" |
|
}, |
|
"fieldConfig": { |
|
"defaults": { |
|
"color": { |
|
"mode": "thresholds" |
|
}, |
|
"mappings": [ |
|
{ |
|
"options": { |
|
"match": "null", |
|
"result": { |
|
"text": "N/A" |
|
} |
|
}, |
|
"type": "special" |
|
} |
|
], |
|
"max": 3, |
|
"min": 0, |
|
"thresholds": { |
|
"mode": "absolute", |
|
"steps": [ |
|
{ |
|
"color": "#d44a3a", |
|
"value": null |
|
}, |
|
{ |
|
"color": "rgba(237, 129, 40, 0.89)", |
|
"value": 1 |
|
}, |
|
{ |
|
"color": "#299c46", |
|
"value": 2 |
|
} |
|
] |
|
}, |
|
"unit": "none" |
|
}, |
|
"overrides": [] |
|
}, |
|
"gridPos": { |
|
"h": 7, |
|
"w": 8, |
|
"x": 0, |
|
"y": 0 |
|
}, |
|
"id": 9, |
|
"maxDataPoints": 100, |
|
"options": { |
|
"minVizHeight": 75, |
|
"minVizWidth": 75, |
|
"orientation": "horizontal", |
|
"reduceOptions": { |
|
"calcs": [ |
|
"mean" |
|
], |
|
"fields": "", |
|
"values": false |
|
}, |
|
"showThresholdLabels": false, |
|
"showThresholdMarkers": true, |
|
"sizing": "auto" |
|
}, |
|
"pluginVersion": "11.1.3", |
|
"targets": [ |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"exemplar": true, |
|
"expr": "sum(envoy_server_live{app=~\"$service\"})", |
|
"format": "time_series", |
|
"interval": "", |
|
"intervalFactor": 1, |
|
"legendFormat": "", |
|
"refId": "A" |
|
} |
|
], |
|
"title": "Live servers", |
|
"type": "gauge" |
|
}, |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"fieldConfig": { |
|
"defaults": { |
|
"color": { |
|
"mode": "thresholds" |
|
}, |
|
"mappings": [], |
|
"thresholds": { |
|
"mode": "absolute", |
|
"steps": [ |
|
{ |
|
"color": "green", |
|
"value": null |
|
}, |
|
{ |
|
"color": "red", |
|
"value": 80 |
|
} |
|
] |
|
}, |
|
"unit": "percentunit" |
|
}, |
|
"overrides": [] |
|
}, |
|
"gridPos": { |
|
"h": 7, |
|
"w": 8, |
|
"x": 8, |
|
"y": 0 |
|
}, |
|
"id": 70, |
|
"options": { |
|
"colorMode": "value", |
|
"graphMode": "area", |
|
"justifyMode": "auto", |
|
"orientation": "auto", |
|
"percentChangeColorMode": "standard", |
|
"reduceOptions": { |
|
"calcs": [ |
|
"lastNotNull" |
|
], |
|
"fields": "", |
|
"values": false |
|
}, |
|
"showPercentChange": false, |
|
"textMode": "auto", |
|
"wideLayout": true |
|
}, |
|
"pluginVersion": "11.1.3", |
|
"targets": [ |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"exemplar": true, |
|
"expr": "sum(irate(envoy_cluster_upstream_rq_xx{envoy_response_code_class!=\"5\", envoy_response_code_class!=\"4\",consul_destination_service=~\"$service\"}[10m])) / sum(irate(envoy_cluster_upstream_rq_xx{consul_destination_service=~\"$service\"}[10m])) ", |
|
"interval": "", |
|
"legendFormat": "", |
|
"refId": "A" |
|
} |
|
], |
|
"title": "Total Request Success Rate", |
|
"type": "stat" |
|
}, |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"fieldConfig": { |
|
"defaults": { |
|
"color": { |
|
"mode": "palette-classic" |
|
}, |
|
"custom": { |
|
"hideFrom": { |
|
"legend": false, |
|
"tooltip": false, |
|
"viz": false |
|
} |
|
}, |
|
"mappings": [] |
|
}, |
|
"overrides": [] |
|
}, |
|
"gridPos": { |
|
"h": 7, |
|
"w": 8, |
|
"x": 16, |
|
"y": 0 |
|
}, |
|
"id": 68, |
|
"options": { |
|
"displayLabels": [ |
|
"name", |
|
"value" |
|
], |
|
"legend": { |
|
"displayMode": "list", |
|
"placement": "bottom", |
|
"showLegend": true, |
|
"values": [ |
|
"value" |
|
] |
|
}, |
|
"pieType": "pie", |
|
"reduceOptions": { |
|
"calcs": [ |
|
"lastNotNull" |
|
], |
|
"fields": "", |
|
"values": false |
|
}, |
|
"tooltip": { |
|
"mode": "single", |
|
"sort": "none" |
|
} |
|
}, |
|
"targets": [ |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"exemplar": true, |
|
"expr": "sum(increase(envoy_cluster_upstream_rq_xx{envoy_response_code_class=~\"4|5\", consul_destination_service=~\"$service\"}[10m])) by (local_cluster)", |
|
"interval": "", |
|
"legendFormat": "{{consul_destination_service}}", |
|
"refId": "A" |
|
} |
|
], |
|
"title": "Total Failed Requests", |
|
"type": "piechart" |
|
}, |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"fieldConfig": { |
|
"defaults": { |
|
"color": { |
|
"mode": "thresholds" |
|
}, |
|
"mappings": [], |
|
"thresholds": { |
|
"mode": "absolute", |
|
"steps": [ |
|
{ |
|
"color": "green", |
|
"value": null |
|
}, |
|
{ |
|
"color": "red", |
|
"value": 80 |
|
} |
|
] |
|
} |
|
}, |
|
"overrides": [] |
|
}, |
|
"gridPos": { |
|
"h": 6, |
|
"w": 5, |
|
"x": 0, |
|
"y": 7 |
|
}, |
|
"id": 64, |
|
"options": { |
|
"colorMode": "value", |
|
"graphMode": "none", |
|
"justifyMode": "center", |
|
"orientation": "horizontal", |
|
"percentChangeColorMode": "standard", |
|
"reduceOptions": { |
|
"calcs": [ |
|
"last" |
|
], |
|
"fields": "", |
|
"values": false |
|
}, |
|
"showPercentChange": false, |
|
"textMode": "value_and_name", |
|
"wideLayout": true |
|
}, |
|
"pluginVersion": "11.1.3", |
|
"targets": [ |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"editorMode": "code", |
|
"exemplar": true, |
|
"expr": "sum(rate(envoy_http_downstream_rq_total{service=~\"$service\",envoy_http_conn_manager_prefix=\"public_listener\"}[5m])) by (service)", |
|
"hide": false, |
|
"interval": "", |
|
"legendFormat": "", |
|
"range": true, |
|
"refId": "A" |
|
} |
|
], |
|
"title": "Requests / sec", |
|
"type": "stat" |
|
}, |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "$datasource" |
|
}, |
|
"fieldConfig": { |
|
"defaults": { |
|
"color": { |
|
"mode": "thresholds" |
|
}, |
|
"mappings": [ |
|
{ |
|
"options": { |
|
"match": "null", |
|
"result": { |
|
"text": "N/A" |
|
} |
|
}, |
|
"type": "special" |
|
} |
|
], |
|
"thresholds": { |
|
"mode": "absolute", |
|
"steps": [ |
|
{ |
|
"color": "green", |
|
"value": null |
|
}, |
|
{ |
|
"color": "red", |
|
"value": 80 |
|
} |
|
] |
|
}, |
|
"unit": "none" |
|
}, |
|
"overrides": [] |
|
}, |
|
"gridPos": { |
|
"h": 3, |
|
"w": 3, |
|
"x": 5, |
|
"y": 7 |
|
}, |
|
"id": 19, |
|
"maxDataPoints": 100, |
|
"options": { |
|
"colorMode": "none", |
|
"graphMode": "none", |
|
"justifyMode": "auto", |
|
"orientation": "horizontal", |
|
"percentChangeColorMode": "standard", |
|
"reduceOptions": { |
|
"calcs": [ |
|
"mean" |
|
], |
|
"fields": "", |
|
"values": false |
|
}, |
|
"showPercentChange": false, |
|
"textMode": "auto", |
|
"wideLayout": true |
|
}, |
|
"pluginVersion": "11.1.3", |
|
"targets": [ |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"exemplar": true, |
|
"expr": "(sum(envoy_cluster_membership_healthy{app=~\"$service\",envoy_cluster_name=~\"$cluster\"}) - sum(envoy_cluster_membership_total{app=~\"$service\",envoy_cluster_name=~\"$cluster\"}))", |
|
"format": "time_series", |
|
"interval": "", |
|
"intervalFactor": 1, |
|
"legendFormat": "", |
|
"refId": "A" |
|
} |
|
], |
|
"title": "Unhealthy Clusters", |
|
"type": "stat" |
|
}, |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"description": "", |
|
"fieldConfig": { |
|
"defaults": { |
|
"color": { |
|
"mode": "thresholds" |
|
}, |
|
"mappings": [], |
|
"noValue": "0", |
|
"thresholds": { |
|
"mode": "absolute", |
|
"steps": [ |
|
{ |
|
"color": "green", |
|
"value": null |
|
}, |
|
{ |
|
"color": "red", |
|
"value": 32 |
|
} |
|
] |
|
}, |
|
"unit": "short" |
|
}, |
|
"overrides": [] |
|
}, |
|
"gridPos": { |
|
"h": 6, |
|
"w": 8, |
|
"x": 8, |
|
"y": 7 |
|
}, |
|
"id": 58, |
|
"options": { |
|
"colorMode": "value", |
|
"graphMode": "none", |
|
"justifyMode": "auto", |
|
"orientation": "auto", |
|
"percentChangeColorMode": "standard", |
|
"reduceOptions": { |
|
"calcs": [ |
|
"lastNotNull" |
|
], |
|
"fields": "", |
|
"values": false |
|
}, |
|
"showPercentChange": false, |
|
"text": { |
|
"titleSize": 12 |
|
}, |
|
"textMode": "auto", |
|
"wideLayout": true |
|
}, |
|
"pluginVersion": "11.1.3", |
|
"targets": [ |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"editorMode": "code", |
|
"exemplar": false, |
|
"expr": "sum by (app) (envoy_cluster_upstream_cx_active{app=~\"$service\",envoy_cluster_name!~\"consul-dataplane|prometheus.*|local_app|original-.*\"})", |
|
"instant": true, |
|
"interval": "", |
|
"legendFormat": "{{envoy_cluster_name}}", |
|
"range": false, |
|
"refId": "A" |
|
} |
|
], |
|
"title": "Connections ( $service)", |
|
"type": "stat" |
|
}, |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "$datasource" |
|
}, |
|
"fieldConfig": { |
|
"defaults": { |
|
"color": { |
|
"mode": "thresholds" |
|
}, |
|
"mappings": [ |
|
{ |
|
"options": { |
|
"match": "null", |
|
"result": { |
|
"text": "N/A" |
|
} |
|
}, |
|
"type": "special" |
|
} |
|
], |
|
"thresholds": { |
|
"mode": "absolute", |
|
"steps": [ |
|
{ |
|
"color": "green", |
|
"value": null |
|
}, |
|
{ |
|
"color": "red", |
|
"value": 80 |
|
} |
|
] |
|
}, |
|
"unit": "decbytes" |
|
}, |
|
"overrides": [] |
|
}, |
|
"gridPos": { |
|
"h": 6, |
|
"w": 2, |
|
"x": 16, |
|
"y": 7 |
|
}, |
|
"id": 13, |
|
"maxDataPoints": 100, |
|
"options": { |
|
"colorMode": "none", |
|
"graphMode": "none", |
|
"justifyMode": "auto", |
|
"orientation": "horizontal", |
|
"percentChangeColorMode": "standard", |
|
"reduceOptions": { |
|
"calcs": [ |
|
"mean" |
|
], |
|
"fields": "", |
|
"values": false |
|
}, |
|
"showPercentChange": false, |
|
"textMode": "auto", |
|
"wideLayout": true |
|
}, |
|
"pluginVersion": "11.1.3", |
|
"targets": [ |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"exemplar": true, |
|
"expr": "SUM(envoy_server_memory_heap_size{app=~\"$service\"})", |
|
"format": "time_series", |
|
"interval": "", |
|
"intervalFactor": 1, |
|
"legendFormat": "", |
|
"refId": "A" |
|
} |
|
], |
|
"title": "Heap Size", |
|
"type": "stat" |
|
}, |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "$datasource" |
|
}, |
|
"fieldConfig": { |
|
"defaults": { |
|
"color": { |
|
"mode": "thresholds" |
|
}, |
|
"mappings": [ |
|
{ |
|
"options": { |
|
"match": "null", |
|
"result": { |
|
"text": "N/A" |
|
} |
|
}, |
|
"type": "special" |
|
} |
|
], |
|
"thresholds": { |
|
"mode": "absolute", |
|
"steps": [ |
|
{ |
|
"color": "green", |
|
"value": null |
|
}, |
|
{ |
|
"color": "red", |
|
"value": 80 |
|
} |
|
] |
|
}, |
|
"unit": "decbytes" |
|
}, |
|
"overrides": [] |
|
}, |
|
"gridPos": { |
|
"h": 6, |
|
"w": 3, |
|
"x": 18, |
|
"y": 7 |
|
}, |
|
"id": 11, |
|
"maxDataPoints": 100, |
|
"options": { |
|
"colorMode": "none", |
|
"graphMode": "none", |
|
"justifyMode": "auto", |
|
"orientation": "horizontal", |
|
"percentChangeColorMode": "standard", |
|
"reduceOptions": { |
|
"calcs": [ |
|
"mean" |
|
], |
|
"fields": "", |
|
"values": false |
|
}, |
|
"showPercentChange": false, |
|
"textMode": "auto", |
|
"wideLayout": true |
|
}, |
|
"pluginVersion": "11.1.3", |
|
"targets": [ |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"exemplar": true, |
|
"expr": "SUM(envoy_server_memory_allocated{app=~\"$service\"})", |
|
"format": "time_series", |
|
"interval": "", |
|
"intervalFactor": 1, |
|
"legendFormat": "", |
|
"refId": "A" |
|
} |
|
], |
|
"title": "Allocated Memory", |
|
"type": "stat" |
|
}, |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "$datasource" |
|
}, |
|
"fieldConfig": { |
|
"defaults": { |
|
"color": { |
|
"mode": "thresholds" |
|
}, |
|
"mappings": [ |
|
{ |
|
"options": { |
|
"match": "null", |
|
"result": { |
|
"text": "N/A" |
|
} |
|
}, |
|
"type": "special" |
|
} |
|
], |
|
"thresholds": { |
|
"mode": "absolute", |
|
"steps": [ |
|
{ |
|
"color": "green", |
|
"value": null |
|
}, |
|
{ |
|
"color": "red", |
|
"value": 80 |
|
} |
|
] |
|
}, |
|
"unit": "s" |
|
}, |
|
"overrides": [] |
|
}, |
|
"gridPos": { |
|
"h": 6, |
|
"w": 3, |
|
"x": 21, |
|
"y": 7 |
|
}, |
|
"id": 12, |
|
"maxDataPoints": 100, |
|
"options": { |
|
"colorMode": "value", |
|
"graphMode": "none", |
|
"justifyMode": "auto", |
|
"orientation": "horizontal", |
|
"percentChangeColorMode": "standard", |
|
"reduceOptions": { |
|
"calcs": [ |
|
"mean" |
|
], |
|
"fields": "", |
|
"values": false |
|
}, |
|
"showPercentChange": false, |
|
"textMode": "auto", |
|
"wideLayout": true |
|
}, |
|
"pluginVersion": "11.1.3", |
|
"targets": [ |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"exemplar": true, |
|
"expr": "avg(envoy_server_uptime{app=~\"$service\"})", |
|
"format": "time_series", |
|
"interval": "", |
|
"intervalFactor": 1, |
|
"legendFormat": "", |
|
"refId": "A" |
|
} |
|
], |
|
"title": "Avg uptime per node", |
|
"type": "stat" |
|
}, |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "$datasource" |
|
}, |
|
"fieldConfig": { |
|
"defaults": { |
|
"color": { |
|
"mode": "thresholds" |
|
}, |
|
"mappings": [ |
|
{ |
|
"options": { |
|
"0": { |
|
"text": "NOT WELL" |
|
}, |
|
"1": { |
|
"text": "OK" |
|
} |
|
}, |
|
"type": "value" |
|
}, |
|
{ |
|
"options": { |
|
"match": "null", |
|
"result": { |
|
"text": "N/A" |
|
} |
|
}, |
|
"type": "special" |
|
} |
|
], |
|
"thresholds": { |
|
"mode": "absolute", |
|
"steps": [ |
|
{ |
|
"color": "#d44a3a", |
|
"value": null |
|
}, |
|
{ |
|
"color": "rgba(237, 129, 40, 0.89)", |
|
"value": 0 |
|
}, |
|
{ |
|
"color": "#299c46", |
|
"value": 1 |
|
} |
|
] |
|
}, |
|
"unit": "none" |
|
}, |
|
"overrides": [] |
|
}, |
|
"gridPos": { |
|
"h": 3, |
|
"w": 3, |
|
"x": 5, |
|
"y": 10 |
|
}, |
|
"id": 20, |
|
"maxDataPoints": 100, |
|
"options": { |
|
"colorMode": "value", |
|
"graphMode": "none", |
|
"justifyMode": "auto", |
|
"orientation": "horizontal", |
|
"percentChangeColorMode": "standard", |
|
"reduceOptions": { |
|
"calcs": [ |
|
"mean" |
|
], |
|
"fields": "", |
|
"values": false |
|
}, |
|
"showPercentChange": false, |
|
"textMode": "auto", |
|
"wideLayout": true |
|
}, |
|
"pluginVersion": "11.1.3", |
|
"targets": [ |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"exemplar": true, |
|
"expr": "(sum(envoy_cluster_membership_total{app=~\"$service\",envoy_cluster_name=~\"$cluster\"})-sum(envoy_cluster_membership_healthy{app=~\"$service\",envoy_cluster_name=~\"$cluster\"})) == bool 0", |
|
"format": "time_series", |
|
"interval": "", |
|
"intervalFactor": 1, |
|
"legendFormat": "", |
|
"refId": "A" |
|
} |
|
], |
|
"title": "Cluster State", |
|
"type": "stat" |
|
}, |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"fieldConfig": { |
|
"defaults": { |
|
"color": { |
|
"mode": "palette-classic" |
|
}, |
|
"custom": { |
|
"axisBorderShow": false, |
|
"axisCenteredZero": false, |
|
"axisColorMode": "text", |
|
"axisLabel": "", |
|
"axisPlacement": "auto", |
|
"barAlignment": 0, |
|
"drawStyle": "line", |
|
"fillOpacity": 0, |
|
"gradientMode": "opacity", |
|
"hideFrom": { |
|
"legend": false, |
|
"tooltip": false, |
|
"viz": false |
|
}, |
|
"insertNulls": false, |
|
"lineInterpolation": "smooth", |
|
"lineWidth": 2, |
|
"pointSize": 5, |
|
"scaleDistribution": { |
|
"type": "linear" |
|
}, |
|
"showPoints": "never", |
|
"spanNulls": false, |
|
"stacking": { |
|
"group": "A", |
|
"mode": "none" |
|
}, |
|
"thresholdsStyle": { |
|
"mode": "off" |
|
} |
|
}, |
|
"mappings": [], |
|
"thresholds": { |
|
"mode": "absolute", |
|
"steps": [ |
|
{ |
|
"color": "green", |
|
"value": null |
|
}, |
|
{ |
|
"color": "#EAB839", |
|
"value": 0.00001 |
|
}, |
|
{ |
|
"color": "red", |
|
"value": 0.00002 |
|
} |
|
] |
|
}, |
|
"unit": "s" |
|
}, |
|
"overrides": [] |
|
}, |
|
"gridPos": { |
|
"h": 9, |
|
"w": 20, |
|
"x": 0, |
|
"y": 13 |
|
}, |
|
"id": 18, |
|
"options": { |
|
"legend": { |
|
"calcs": [ |
|
"last" |
|
], |
|
"displayMode": "table", |
|
"placement": "right", |
|
"showLegend": true, |
|
"sortBy": "Last", |
|
"sortDesc": true |
|
}, |
|
"tooltip": { |
|
"mode": "single", |
|
"sort": "none" |
|
} |
|
}, |
|
"targets": [ |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"editorMode": "code", |
|
"exemplar": true, |
|
"expr": "rate(container_cpu_cfs_throttled_seconds_total{namespace=~\"$namespace\"}[5m])", |
|
"interval": "", |
|
"legendFormat": "{{pod}}", |
|
"range": true, |
|
"refId": "A" |
|
} |
|
], |
|
"title": "CPU Throttled Seconds by Namespace", |
|
"type": "timeseries" |
|
}, |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"fieldConfig": { |
|
"defaults": { |
|
"color": { |
|
"mode": "thresholds" |
|
}, |
|
"decimals": 0, |
|
"mappings": [], |
|
"thresholds": { |
|
"mode": "absolute", |
|
"steps": [ |
|
{ |
|
"color": "green", |
|
"value": null |
|
}, |
|
{ |
|
"color": "red", |
|
"value": 80 |
|
} |
|
] |
|
}, |
|
"unit": "percent" |
|
}, |
|
"overrides": [] |
|
}, |
|
"gridPos": { |
|
"h": 9, |
|
"w": 2, |
|
"x": 20, |
|
"y": 13 |
|
}, |
|
"id": 49, |
|
"options": { |
|
"displayMode": "gradient", |
|
"maxVizHeight": 300, |
|
"minVizHeight": 10, |
|
"minVizWidth": 0, |
|
"namePlacement": "auto", |
|
"orientation": "auto", |
|
"reduceOptions": { |
|
"calcs": [ |
|
"mean" |
|
], |
|
"fields": "", |
|
"values": false |
|
}, |
|
"showUnfilled": true, |
|
"sizing": "auto", |
|
"valueMode": "color" |
|
}, |
|
"pluginVersion": "11.1.3", |
|
"targets": [ |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"editorMode": "code", |
|
"exemplar": true, |
|
"expr": "100 * max (container_memory_working_set_bytes{namespace=~\"$namespace\"} / on(container, pod) label_replace(kube_pod_container_resource_limits{resource=\"memory\"}, \"pod\", \"$1\", \"exported_pod\", \"(.+)\")) by (pod)", |
|
"interval": "", |
|
"legendFormat": "__auto", |
|
"range": true, |
|
"refId": "A" |
|
} |
|
], |
|
"title": "Mem Usage % by pod limits", |
|
"type": "bargauge" |
|
}, |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"fieldConfig": { |
|
"defaults": { |
|
"color": { |
|
"mode": "thresholds" |
|
}, |
|
"decimals": 1, |
|
"mappings": [], |
|
"thresholds": { |
|
"mode": "absolute", |
|
"steps": [ |
|
{ |
|
"color": "green", |
|
"value": null |
|
}, |
|
{ |
|
"color": "#EAB839", |
|
"value": 60 |
|
}, |
|
{ |
|
"color": "red", |
|
"value": 80 |
|
} |
|
] |
|
}, |
|
"unit": "percent" |
|
}, |
|
"overrides": [] |
|
}, |
|
"gridPos": { |
|
"h": 9, |
|
"w": 2, |
|
"x": 22, |
|
"y": 13 |
|
}, |
|
"id": 28, |
|
"options": { |
|
"displayMode": "gradient", |
|
"maxVizHeight": 300, |
|
"minVizHeight": 10, |
|
"minVizWidth": 0, |
|
"namePlacement": "auto", |
|
"orientation": "horizontal", |
|
"reduceOptions": { |
|
"calcs": [ |
|
"lastNotNull" |
|
], |
|
"fields": "", |
|
"values": false |
|
}, |
|
"showUnfilled": true, |
|
"sizing": "auto", |
|
"valueMode": "color" |
|
}, |
|
"pluginVersion": "11.1.3", |
|
"targets": [ |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"editorMode": "code", |
|
"exemplar": true, |
|
"expr": "100 * max(\n container_memory_working_set_bytes{namespace=~\"$namespace\"} / \n on(container, pod) label_replace(kube_pod_container_resource_limits{resource=\"memory\"}, \"pod\", \"$1\", \"exported_pod\", \"(.+)\")\n) by (pod)\n\n", |
|
"interval": "", |
|
"legendFormat": "__auto", |
|
"range": true, |
|
"refId": "A" |
|
} |
|
], |
|
"title": "CPU Usage % by pod limits", |
|
"type": "bargauge" |
|
}, |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "$datasource" |
|
}, |
|
"fieldConfig": { |
|
"defaults": { |
|
"color": { |
|
"mode": "palette-classic" |
|
}, |
|
"custom": { |
|
"axisBorderShow": false, |
|
"axisCenteredZero": false, |
|
"axisColorMode": "text", |
|
"axisLabel": "", |
|
"axisPlacement": "auto", |
|
"barAlignment": 0, |
|
"drawStyle": "line", |
|
"fillOpacity": 3, |
|
"gradientMode": "none", |
|
"hideFrom": { |
|
"legend": false, |
|
"tooltip": false, |
|
"viz": false |
|
}, |
|
"insertNulls": false, |
|
"lineInterpolation": "linear", |
|
"lineWidth": 1, |
|
"pointSize": 5, |
|
"scaleDistribution": { |
|
"type": "linear" |
|
}, |
|
"showPoints": "never", |
|
"spanNulls": true, |
|
"stacking": { |
|
"group": "A", |
|
"mode": "none" |
|
}, |
|
"thresholdsStyle": { |
|
"mode": "off" |
|
} |
|
}, |
|
"links": [], |
|
"mappings": [], |
|
"thresholds": { |
|
"mode": "absolute", |
|
"steps": [ |
|
{ |
|
"color": "green", |
|
"value": null |
|
}, |
|
{ |
|
"color": "red", |
|
"value": 80 |
|
} |
|
] |
|
}, |
|
"unit": "short" |
|
}, |
|
"overrides": [] |
|
}, |
|
"gridPos": { |
|
"h": 11, |
|
"w": 12, |
|
"x": 0, |
|
"y": 22 |
|
}, |
|
"id": 2, |
|
"options": { |
|
"legend": { |
|
"calcs": [], |
|
"displayMode": "list", |
|
"placement": "right", |
|
"showLegend": true |
|
}, |
|
"tooltip": { |
|
"mode": "multi", |
|
"sort": "none" |
|
} |
|
}, |
|
"pluginVersion": "8.4.2", |
|
"targets": [ |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"editorMode": "code", |
|
"exemplar": true, |
|
"expr": "sum(envoy_cluster_upstream_cx_active{app=~\"$service\",envoy_cluster_name=~\"$cluster\"}) by (app, envoy_cluster_name)", |
|
"format": "time_series", |
|
"hide": false, |
|
"interval": "", |
|
"intervalFactor": 2, |
|
"legendFormat": "{{envoy_cluster_name}} ({{service}})", |
|
"range": true, |
|
"refId": "A" |
|
}, |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "$datasource" |
|
}, |
|
"exemplar": true, |
|
"expr": "sum(envoy_cluster_upstream_cx_active{app=~\"$service\"}) by (app)", |
|
"hide": true, |
|
"interval": "", |
|
"legendFormat": "", |
|
"refId": "B" |
|
} |
|
], |
|
"title": "Total Active Upstream Connections", |
|
"type": "timeseries" |
|
}, |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "$datasource" |
|
}, |
|
"fieldConfig": { |
|
"defaults": { |
|
"color": { |
|
"mode": "palette-classic" |
|
}, |
|
"custom": { |
|
"axisBorderShow": false, |
|
"axisCenteredZero": false, |
|
"axisColorMode": "text", |
|
"axisLabel": "", |
|
"axisPlacement": "auto", |
|
"barAlignment": 0, |
|
"drawStyle": "line", |
|
"fillOpacity": 7, |
|
"gradientMode": "none", |
|
"hideFrom": { |
|
"legend": false, |
|
"tooltip": false, |
|
"viz": false |
|
}, |
|
"insertNulls": false, |
|
"lineInterpolation": "linear", |
|
"lineWidth": 1, |
|
"pointSize": 5, |
|
"scaleDistribution": { |
|
"type": "linear" |
|
}, |
|
"showPoints": "never", |
|
"spanNulls": true, |
|
"stacking": { |
|
"group": "A", |
|
"mode": "none" |
|
}, |
|
"thresholdsStyle": { |
|
"mode": "off" |
|
} |
|
}, |
|
"links": [], |
|
"mappings": [], |
|
"thresholds": { |
|
"mode": "absolute", |
|
"steps": [ |
|
{ |
|
"color": "green", |
|
"value": null |
|
}, |
|
{ |
|
"color": "red", |
|
"value": 80 |
|
} |
|
] |
|
}, |
|
"unit": "short" |
|
}, |
|
"overrides": [] |
|
}, |
|
"gridPos": { |
|
"h": 11, |
|
"w": 12, |
|
"x": 12, |
|
"y": 22 |
|
}, |
|
"id": 5, |
|
"options": { |
|
"legend": { |
|
"calcs": [], |
|
"displayMode": "list", |
|
"placement": "right", |
|
"showLegend": true |
|
}, |
|
"tooltip": { |
|
"mode": "multi", |
|
"sort": "none" |
|
} |
|
}, |
|
"pluginVersion": "8.4.2", |
|
"targets": [ |
|
{ |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"exemplar": true, |
|
"expr": "sum(envoy_http_downstream_cx_active{app=~\"$service\"}) by (app)", |
|
"format": "time_series", |
|
"interval": "", |
|
"intervalFactor": 2, |
|
"legendFormat": "{{service}}", |
|
"refId": "A" |
|
} |
|
], |
|
"title": "Total Active Downstream Connections", |
|
"type": "timeseries" |
|
} |
|
], |
|
"refresh": "", |
|
"schemaVersion": 39, |
|
"tags": [], |
|
"templating": { |
|
"list": [ |
|
{ |
|
"current": { |
|
"selected": false, |
|
"text": "Prometheus", |
|
"value": "PBFA97CFB590B2093" |
|
}, |
|
"hide": 0, |
|
"includeAll": false, |
|
"multi": false, |
|
"name": "datasource", |
|
"options": [], |
|
"query": "prometheus", |
|
"queryValue": "", |
|
"refresh": 1, |
|
"regex": "", |
|
"skipUrlSync": false, |
|
"type": "datasource" |
|
}, |
|
{ |
|
"current": { |
|
"selected": true, |
|
"text": [ |
|
"All" |
|
], |
|
"value": [ |
|
"$__all" |
|
] |
|
}, |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "$datasource" |
|
}, |
|
"definition": "label_values(envoy_server_live, app)", |
|
"hide": 0, |
|
"includeAll": true, |
|
"label": "", |
|
"multi": true, |
|
"name": "service", |
|
"options": [], |
|
"query": { |
|
"query": "label_values(envoy_server_live, app)", |
|
"refId": "StandardVariableQuery" |
|
}, |
|
"refresh": 2, |
|
"regex": "", |
|
"skipUrlSync": false, |
|
"sort": 0, |
|
"tagValuesQuery": "", |
|
"tagsQuery": "", |
|
"type": "query", |
|
"useTags": false |
|
}, |
|
{ |
|
"current": { |
|
"selected": true, |
|
"text": "All", |
|
"value": "$__all" |
|
}, |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "$datasource" |
|
}, |
|
"definition": "label_values(envoy_cluster_upstream_cx_total{service=~\"$service\"}, envoy_cluster_name)", |
|
"hide": 0, |
|
"includeAll": true, |
|
"label": "Cluster", |
|
"multi": false, |
|
"name": "cluster", |
|
"options": [], |
|
"query": { |
|
"query": "label_values(envoy_cluster_upstream_cx_total{service=~\"$service\"}, envoy_cluster_name)", |
|
"refId": "StandardVariableQuery" |
|
}, |
|
"refresh": 1, |
|
"regex": "", |
|
"skipUrlSync": false, |
|
"sort": 1, |
|
"tagValuesQuery": "", |
|
"tagsQuery": "", |
|
"type": "query", |
|
"useTags": false |
|
}, |
|
{ |
|
"current": { |
|
"selected": true, |
|
"text": [ |
|
"All" |
|
], |
|
"value": [ |
|
"$__all" |
|
] |
|
}, |
|
"datasource": { |
|
"type": "prometheus", |
|
"uid": "PBFA97CFB590B2093" |
|
}, |
|
"definition": "label_values(container_memory_working_set_bytes, namespace)", |
|
"hide": 0, |
|
"includeAll": true, |
|
"multi": true, |
|
"name": "namespace", |
|
"options": [], |
|
"query": { |
|
"query": "label_values(container_memory_working_set_bytes, namespace)", |
|
"refId": "StandardVariableQuery" |
|
}, |
|
"refresh": 1, |
|
"regex": "", |
|
"skipUrlSync": false, |
|
"sort": 0, |
|
"type": "query" |
|
} |
|
] |
|
}, |
|
"time": { |
|
"from": "now-15m", |
|
"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": "Consul DataPlane Dashboard", |
|
"uid": "hashicupso", |
|
"version": 4, |
|
"weekStart": "" |
|
} |