Last active
January 9, 2024 07:33
-
-
Save pen-pal/25dd180db73271664b564fdde5d0199a to your computer and use it in GitHub Desktop.
Combined Dashboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "grafana", | |
"uid": "-- Grafana --" | |
}, | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", | |
"type": "dashboard" | |
} | |
] | |
}, | |
"editable": true, | |
"fiscalYearStartMonth": 0, | |
"graphTooltip": 0, | |
"links": [], | |
"liveNow": false, | |
"panels": [ | |
{ | |
"collapsed": false, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 0 | |
}, | |
"id": 25, | |
"panels": [], | |
"title": "Postgres", | |
"type": "row" | |
}, | |
{ | |
"datasource": {}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 11, | |
"x": 0, | |
"y": 1 | |
}, | |
"id": 23, | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"mode": "single", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "10.2.2", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "sum by (state) (pg_stat_activity_count)", | |
"instant": false, | |
"legendFormat": "__auto", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Connection Count", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "normal" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "short" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byValue", | |
"options": { | |
"op": "gte", | |
"reducer": "allIsZero", | |
"value": 0 | |
} | |
}, | |
"properties": [ | |
{ | |
"id": "custom.hideFrom", | |
"value": { | |
"legend": true, | |
"tooltip": true, | |
"viz": false | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byValue", | |
"options": { | |
"op": "gte", | |
"reducer": "allIsNull", | |
"value": 0 | |
} | |
}, | |
"properties": [ | |
{ | |
"id": "custom.hideFrom", | |
"value": { | |
"legend": true, | |
"tooltip": true, | |
"viz": false | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 13, | |
"x": 11, | |
"y": 1 | |
}, | |
"id": 24, | |
"links": [], | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max", | |
"min" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "10.2.2", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "topk(100, (pg_stat_activity_count{instance=\"$postgres_instance\"}))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "{{datname}} {{state}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Connections in detail", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "stackdriver", | |
"uid": "P53B7819E0F26D6F4" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"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": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "percentunit" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 24, | |
"x": 0, | |
"y": 8 | |
}, | |
"id": 28, | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true, | |
"width": 220 | |
}, | |
"tooltip": { | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "10.2.2", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "stackdriver", | |
"uid": "P53B7819E0F26D6F4" | |
}, | |
"queryType": "timeSeriesList", | |
"refId": "A", | |
"timeSeriesList": { | |
"alignmentPeriod": "grafana-auto", | |
"crossSeriesReducer": "REDUCE_PERCENTILE_99", | |
"filters": [ | |
"resource.type", | |
"=", | |
"cloudsql_database", | |
"AND", | |
"metric.type", | |
"=", | |
"cloudsql.googleapis.com/database/cpu/utilization" | |
], | |
"groupBys": [], | |
"perSeriesAligner": "ALIGN_MEAN", | |
"preprocessor": "none", | |
"projectName": "fos-sessions-dev" | |
} | |
} | |
], | |
"title": "CPU utilization [99 PERCENTILE]", | |
"type": "timeseries" | |
}, | |
{ | |
"collapsed": false, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 16 | |
}, | |
"id": 21, | |
"panels": [], | |
"title": "Redis", | |
"type": "row" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"description": "Total taken across instances", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 1, | |
"gradientMode": "none", | |
"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" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "max" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#BF1B00", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/max/" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#E02F44", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "custom.fillOpacity", | |
"value": 0 | |
}, | |
{ | |
"id": "custom.lineWidth", | |
"value": 1 | |
}, | |
{ | |
"id": "custom.lineStyle", | |
"value": { | |
"dash": [ | |
10, | |
10 | |
], | |
"fill": "dash" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 0, | |
"y": 17 | |
}, | |
"id": 26, | |
"links": [], | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "10.2.2", | |
"targets": [ | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"expr": "sum(redis_memory_used_bytes{instance=~\"$redis_instance\"})", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "Used Memory", | |
"metric": "", | |
"range": true, | |
"refId": "A", | |
"step": 240, | |
"target": "" | |
}, | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"expr": "sum(redis_memory_max_bytes{instance=~\"$redis_instance\"})", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "Configured max memory", | |
"range": true, | |
"refId": "B", | |
"step": 240 | |
}, | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"expr": "sum(redis_memory_used_rss_bytes{instance=~\"$redis_instance\"})", | |
"interval": "", | |
"legendFormat": "Used RSS memory", | |
"range": true, | |
"refId": "C" | |
} | |
], | |
"title": "Total Memory Usage", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 12, | |
"y": 17 | |
}, | |
"id": 27, | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": false | |
}, | |
"tooltip": { | |
"mode": "single", | |
"sort": "none" | |
} | |
}, | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "rate(redis_cpu_user_seconds_total{instance=\"$redis_instance\"}[1m])", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "__auto", | |
"range": true, | |
"refId": "B" | |
} | |
], | |
"title": "CPU Utilization", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 1, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 2, | |
"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": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "evicts" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#890F02", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "memcached_items_evicted_total{instance=\"172.17.0.1:9150\",job=\"prometheus\"}" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#890F02", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "reclaims" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#3F6833", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 24, | |
"x": 0, | |
"y": 26 | |
}, | |
"id": 20, | |
"links": [], | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "10.2.2", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "sum(rate(redis_expired_keys_total{instance=~\"$redis_instance\"}[5m])) by (instance)", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "expired", | |
"metric": "", | |
"range": true, | |
"refId": "A", | |
"step": 240, | |
"target": "" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "sum(rate(redis_evicted_keys_total{instance=~\"$redis_instance\"}[5m])) by (instance)", | |
"format": "time_series", | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "evicted", | |
"range": true, | |
"refId": "B", | |
"step": 240 | |
} | |
], | |
"title": "Expired / Evicted Keys", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 1, | |
"gradientMode": "opacity", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "smooth", | |
"lineStyle": { | |
"fill": "solid" | |
}, | |
"lineWidth": 2, | |
"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": 6, | |
"w": 24, | |
"x": 0, | |
"y": 33 | |
}, | |
"id": 19, | |
"links": [], | |
"options": { | |
"legend": { | |
"calcs": [ | |
"min", | |
"max", | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "10.2.2", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "sum (redis_db_keys{instance=~\"$redis_instance\"}) - sum (redis_db_keys_expiring{instance=~\"$redis_instance\"}) ", | |
"format": "time_series", | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "not expiring", | |
"range": true, | |
"refId": "A", | |
"step": 240, | |
"target": "" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "sum (redis_db_keys_expiring{instance=~\"$redis_instance\"}) ", | |
"format": "time_series", | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "expiring", | |
"metric": "", | |
"range": true, | |
"refId": "B", | |
"step": 240 | |
} | |
], | |
"title": "Expiring vs Not-Expiring Keys Count", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 1, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 2, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": true, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "short" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 24, | |
"x": 0, | |
"y": 39 | |
}, | |
"id": 18, | |
"links": [], | |
"options": { | |
"legend": { | |
"calcs": [ | |
"lastNotNull", | |
"sum" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "10.2.2", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "irate(redis_keyspace_hits_total{instance=~\"$redis_instance\"}[1m])", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "hits", | |
"metric": "", | |
"range": true, | |
"refId": "A", | |
"step": 240, | |
"target": "" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "irate(redis_keyspace_misses_total{instance=~\"$redis_instance\"}[1m])", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "misses", | |
"metric": "", | |
"range": true, | |
"refId": "B", | |
"step": 240, | |
"target": "" | |
} | |
], | |
"title": "Cache Hits / Misses per Sec", | |
"type": "timeseries" | |
}, | |
{ | |
"collapsed": true, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 45 | |
}, | |
"id": 15, | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "googlecloud-logging-datasource", | |
"uid": "P470A85C5170C7A1D" | |
}, | |
"gridPos": { | |
"h": 20, | |
"w": 24, | |
"x": 0, | |
"y": 35 | |
}, | |
"id": 17, | |
"options": { | |
"dedupStrategy": "none", | |
"enableLogDetails": true, | |
"prettifyLogMessage": false, | |
"showCommonLabels": false, | |
"showLabels": false, | |
"showTime": false, | |
"sortOrder": "Descending", | |
"wrapLogMessage": false | |
}, | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "googlecloud-logging-datasource", | |
"uid": "P470A85C5170C7A1D" | |
}, | |
"projectId": "fos-sessions-dev", | |
"queryText": "$severity\nresource.labels.namespace_name=\"$namespace\"\nresource.labels.pod_name=\"$pod\"", | |
"refId": "A" | |
} | |
], | |
"title": "Logs", | |
"type": "logs" | |
} | |
], | |
"title": "Logs", | |
"type": "row" | |
}, | |
{ | |
"collapsed": false, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 46 | |
}, | |
"id": 14, | |
"panels": [], | |
"title": "Kubernetes Deployment", | |
"type": "row" | |
}, | |
{ | |
"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": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "smooth", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 24, | |
"x": 0, | |
"y": 47 | |
}, | |
"id": 13, | |
"interval": "1m", | |
"links": [], | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"mode": "single", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "10.2.2", | |
"targets": [ | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"expr": "sum(\n container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container!=\"\", image!=\"\"}\n * on(namespace,pod)\n group_left(workload, workload_type) namespace_workload_pod:kube_pod_owner:relabel{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=~\"$type\"}\n) by (pod)\n", | |
"format": "time_series", | |
"hide": false, | |
"legendFormat": "usage-{{pod}}", | |
"range": true, | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"expr": "sum(\n kube_pod_container_resource_limits{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", resource=\"memory\"}\n * on(namespace,pod)\n group_left(workload, workload_type) namespace_workload_pod:kube_pod_owner:relabel{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=~\"$type\"}\n) by (pod)\n", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "limit-{{pod}}", | |
"range": true, | |
"refId": "B" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"expr": "sum(\n kube_pod_container_resource_requests{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", resource=\"memory\"}\n * on(namespace,pod)\n group_left(workload, workload_type) namespace_workload_pod:kube_pod_owner:relabel{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=~\"$type\"}\n) by (pod)\n", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "request-{{pod}}", | |
"range": true, | |
"refId": "C" | |
} | |
], | |
"title": "Memory Usage", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "series", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 14, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "smooth", | |
"lineStyle": { | |
"fill": "solid" | |
}, | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "always", | |
"spanNulls": true, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 24, | |
"x": 0, | |
"y": 54 | |
}, | |
"id": 12, | |
"interval": "1m", | |
"links": [], | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"mode": "multi", | |
"sort": "asc" | |
} | |
}, | |
"pluginVersion": "10.2.2", | |
"targets": [ | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(\n node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) namespace_workload_pod:kube_pod_owner:relabel{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=~\"$type\"}\n) by (pod)", | |
"format": "time_series", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "usage-{{pod}}", | |
"range": true, | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(\n kube_pod_container_resource_requests{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", resource=\"cpu\"}\n * on(namespace,pod)\n group_left(workload, workload_type) namespace_workload_pod:kube_pod_owner:relabel{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=~\"$type\"}\n) by (pod)\n", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "request-{{pod}}", | |
"range": true, | |
"refId": "C" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(\n kube_pod_container_resource_limits{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", resource=\"cpu\"}\n * on(namespace,pod)\n group_left(workload, workload_type) namespace_workload_pod:kube_pod_owner:relabel{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=~\"$type\"}\n) by (pod)\n", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "limit-{{pod}}", | |
"range": true, | |
"refId": "B" | |
} | |
], | |
"title": "CPU Usage", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "series", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 24, | |
"x": 0, | |
"y": 61 | |
}, | |
"id": 11, | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"mode": "single", | |
"sort": "none" | |
} | |
}, | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "kube_horizontalpodautoscaler_spec_max_replicas{namespace=\"$namespace\", horizontalpodautoscaler=\"$workload\"}", | |
"instant": false, | |
"legendFormat": "max_replicas", | |
"range": true, | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "kube_horizontalpodautoscaler_spec_min_replicas{namespace=\"$namespace\", horizontalpodautoscaler=\"$workload\"}", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "min_replicias", | |
"range": true, | |
"refId": "B" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"expr": "kube_deployment_status_replicas{namespace=\"$namespace\",deployment=\"$workload\"}", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "current_replicias", | |
"range": true, | |
"refId": "E" | |
} | |
], | |
"title": "Number of Replicas", | |
"type": "timeseries" | |
}, | |
{ | |
"collapsed": false, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 70 | |
}, | |
"id": 1, | |
"panels": [], | |
"title": "Nginx", | |
"type": "row" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"description": "The breakdown of the various HTTP status codes of the requests handled within' this period that matches the variables chosen above.\n\nThis chart helps notice and dive into which service is having failures and of what kind.", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "short" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "HTTP 101" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "dark-green", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/HTTP [1-2].*/i" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#37872D", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/HTTP 4.*/i" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#C4162A", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "HTTP 404" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#FF9830", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "HTTP 499" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#FA6400", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/HTTP 5.*/i" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#C4162A", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 0, | |
"y": 71 | |
}, | |
"id": 8, | |
"links": [], | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "10.2.2", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "sum(increase(nginx_ingress_controller_requests{controller_class=~\"$controller_class\",ingress=~\"$ingress\", namespace=~\"$namespace\", status=~\"2.*\", service=\"$workload\"}[$__interval])) by (status)", | |
"format": "time_series", | |
"interval": "2m", | |
"intervalFactor": 1, | |
"legendFormat": "HTTP {{status}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "HTTP Status Codes 2xx", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"description": "The breakdown of the various HTTP status codes of the requests handled within' this period that matches the variables chosen above.\n\nThis chart helps notice and dive into which service is having failures and of what kind.", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "short" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "HTTP 101" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "dark-green", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/HTTP [1-2].*/i" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#37872D", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/HTTP 4.*/i" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#C4162A", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "HTTP 404" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#FF9830", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "HTTP 499" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#FA6400", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/HTTP 5.*/i" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#C4162A", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 12, | |
"y": 71 | |
}, | |
"id": 4, | |
"links": [], | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "10.2.2", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "sum(increase(nginx_ingress_controller_requests{ingress=~\"$ingress\", namespace=~\"$namespace\", status=~\"4.*\", service=\"$workload\"}[$__interval])) by (status)", | |
"format": "time_series", | |
"interval": "2m", | |
"intervalFactor": 1, | |
"legendFormat": "HTTP {{status}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "HTTP Status Codes 4xx", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"description": "The breakdown of the various HTTP status codes of the requests handled within' this period that matches the variables chosen above.\n\nThis chart helps notice and dive into which service is having failures and of what kind.", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "short" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "HTTP 101" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "dark-green", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/HTTP [1-2].*/i" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#37872D", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/HTTP 4.*/i" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#C4162A", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "HTTP 404" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#FF9830", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "HTTP 499" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#FA6400", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/HTTP 5.*/i" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#C4162A", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 12, | |
"x": 0, | |
"y": 80 | |
}, | |
"id": 7, | |
"links": [], | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "10.2.2", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "sum(increase(nginx_ingress_controller_requests{controller_class=~\"$controller_class\",ingress=~\"$ingress\", namespace=~\"$namespace\", status=~\"5.*\", service=\"$workload\"}[$__interval])) by (status)", | |
"format": "time_series", | |
"interval": "2m", | |
"intervalFactor": 1, | |
"legendFormat": "HTTP {{status}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "HTTP Status Codes 5xx", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 2, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": true, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "reqps" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byValue", | |
"options": { | |
"op": "gte", | |
"reducer": "allIsZero", | |
"value": 0 | |
} | |
}, | |
"properties": [ | |
{ | |
"id": "custom.hideFrom", | |
"value": { | |
"legend": true, | |
"tooltip": true, | |
"viz": false | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 12, | |
"x": 12, | |
"y": 80 | |
}, | |
"id": 2, | |
"links": [], | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true, | |
"width": 300 | |
}, | |
"tooltip": { | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "10.2.2", | |
"repeatDirection": "h", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "round(sum(irate(nginx_ingress_controller_requests{controller_class=~\"$controller_class\",ingress=~\"$ingress\", service=\"$workload\"}[2m])) by (ingress), 0.001)", | |
"format": "time_series", | |
"hide": false, | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "{{ ingress }}", | |
"metric": "network", | |
"refId": "A", | |
"step": 10 | |
} | |
], | |
"title": "Ingress Request Volume", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"description": "The total number of HTTP requests made within' each period", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "bars", | |
"fillOpacity": 100, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "short" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byType", | |
"options": "time" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.axisPlacement", | |
"value": "hidden" | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 12, | |
"x": 0, | |
"y": 88 | |
}, | |
"id": 5, | |
"links": [], | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": false | |
}, | |
"tooltip": { | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "10.2.2", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "sum(increase(nginx_ingress_controller_requests{controller_class=~\"$controller_class\",ingress=~\"$ingress\", service=\"$workload\"}[$__interval]))", | |
"format": "time_series", | |
"interval": "5m", | |
"intervalFactor": 1, | |
"legendFormat": "{{ingress}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Total HTTP Requests", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"description": "This is a total number of requests broken down by the ingress. This can help get a sense of scale in relation to each other.", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "short" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 12, | |
"x": 12, | |
"y": 88 | |
}, | |
"id": 6, | |
"links": [], | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": false | |
}, | |
"tooltip": { | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "10.2.2", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "sum(increase(nginx_ingress_controller_requests{controller_class=~\"$controller_class\",ingress=~\"$ingress\", service=\"$workload\"}[$__interval])) by (ingress)", | |
"format": "time_series", | |
"interval": "2m", | |
"intervalFactor": 1, | |
"legendFormat": "{{ingress}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "HTTP Requests / Ingress", | |
"type": "timeseries" | |
}, | |
{ | |
"cards": {}, | |
"color": { | |
"cardColor": "#C4162A", | |
"colorScale": "linear", | |
"colorScheme": "interpolateTurbo", | |
"exponent": 0.5, | |
"mode": "spectrum" | |
}, | |
"dataFormat": "tsbuckets", | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"description": "This graph can help assess and help us meet SLA requirements as far as the responsive time of our services.\n\nFor a more detailed latency graph broken out by ingress please open the closed tab at the bottom because it is very CPU intensive.", | |
"fieldConfig": { | |
"defaults": { | |
"custom": { | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"scaleDistribution": { | |
"type": "linear" | |
} | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 12, | |
"x": 0, | |
"y": 96 | |
}, | |
"heatmap": {}, | |
"hideZeroBuckets": false, | |
"highlightCards": true, | |
"id": 9, | |
"legend": { | |
"show": true | |
}, | |
"links": [], | |
"options": { | |
"calculate": false, | |
"calculation": {}, | |
"cellGap": 2, | |
"cellValues": {}, | |
"color": { | |
"exponent": 0.5, | |
"fill": "#C4162A", | |
"mode": "scheme", | |
"reverse": false, | |
"scale": "exponential", | |
"scheme": "Turbo", | |
"steps": 128 | |
}, | |
"exemplars": { | |
"color": "rgba(255,0,255,0.7)" | |
}, | |
"filterValues": { | |
"le": 1e-9 | |
}, | |
"legend": { | |
"show": true | |
}, | |
"rowsFrame": { | |
"layout": "auto" | |
}, | |
"showValue": "never", | |
"tooltip": { | |
"show": true, | |
"yHistogram": false | |
}, | |
"yAxis": { | |
"axisPlacement": "left", | |
"decimals": 0, | |
"reverse": false, | |
"unit": "s" | |
} | |
}, | |
"pluginVersion": "10.2.2", | |
"reverseYBuckets": false, | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "sum by (le)(\n increase(\n nginx_ingress_controller_request_duration_seconds_bucket{\n status!=\"404\",status!=\"500\",\n controller_class =~ \"$controller_class\",\n ingress =~ \"$ingress\",\n service=\"$workload\",\n namespace=\"$namespace\"\n }[$__interval]\n )\n)", | |
"format": "time_series", | |
"hide": false, | |
"interval": "5m", | |
"intervalFactor": 1, | |
"legendFormat": "{{le}}", | |
"range": true, | |
"refId": "D" | |
} | |
], | |
"title": "Latency Heatmap", | |
"tooltip": { | |
"show": true, | |
"showHistogram": false | |
}, | |
"type": "heatmap", | |
"xAxis": { | |
"show": true | |
}, | |
"yAxis": { | |
"decimals": 0, | |
"format": "s", | |
"logBase": 1, | |
"show": true | |
}, | |
"yBucketBound": "auto" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"description": "This graph can help assess and help us meet SLA requirements as far as the responsive time of our services.\n\nFor a more detailed latency graph broken out by ingress please open the closed tab at the bottom because it is very CPU intensive.", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "s" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "Average" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#F2495C", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "custom.fillOpacity", | |
"value": 0 | |
}, | |
{ | |
"id": "custom.showPoints", | |
"value": "always" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "0.95" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "rgb(44, 0, 182)", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "0.9" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#1F60C4", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "0.75" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#8AB8FF", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "custom.fillOpacity", | |
"value": 10 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "0.5" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "rgb(255, 255, 255)", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "custom.fillOpacity", | |
"value": 0 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "0.99" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#8F3BB8", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "custom.fillOpacity", | |
"value": 0 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byValue", | |
"options": { | |
"op": "gte", | |
"reducer": "allIsZero", | |
"value": 0 | |
} | |
}, | |
"properties": [ | |
{ | |
"id": "custom.hideFrom", | |
"value": { | |
"legend": true, | |
"tooltip": true, | |
"viz": false | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byValue", | |
"options": { | |
"op": "gte", | |
"reducer": "allIsNull", | |
"value": 0 | |
} | |
}, | |
"properties": [ | |
{ | |
"id": "custom.hideFrom", | |
"value": { | |
"legend": true, | |
"tooltip": true, | |
"viz": false | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 12, | |
"x": 12, | |
"y": 96 | |
}, | |
"id": 10, | |
"links": [], | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"max", | |
"min" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "10.2.2", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "histogram_quantile(\n 0.99,\n sum by (le)(\n rate(\n nginx_ingress_controller_request_duration_seconds_bucket{\n status!=\"404|500|304|499\",\n controller_class=~\"$controller_class\",\n ingress=~\"$ingress\",\n service=\"$workload\",\n namespace=\"$namespace\"\n }[$__interval]\n )\n )\n)", | |
"format": "time_series", | |
"interval": "5m", | |
"intervalFactor": 1, | |
"legendFormat": "0.99", | |
"range": true, | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "histogram_quantile(\n 0.95,\n sum by (le)(\n rate(\n nginx_ingress_controller_request_duration_seconds_bucket{\n status!=\"404|500|304|499\",\n controller_class=~\"$controller_class\",\n ingress=~\"$ingress\",\n service=\"$workload\",\n namespace=\"$namespace\"\n }[$__interval]\n )\n )\n)", | |
"format": "time_series", | |
"hide": false, | |
"interval": "5m", | |
"intervalFactor": 1, | |
"legendFormat": "0.95", | |
"range": true, | |
"refId": "B" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "histogram_quantile(\n 0.9,\n sum by (le)(\n rate(\n nginx_ingress_controller_request_duration_seconds_bucket{\n status!=\"404|500|304|499\",\n controller_class=~\"$controller_class\",\n ingress=~\"$ingress\",\n service=\"$workload\",\n namespace=\"$namespace\"\n }[$__interval]\n )\n )\n)", | |
"format": "time_series", | |
"hide": false, | |
"interval": "5m", | |
"intervalFactor": 1, | |
"legendFormat": "0.9", | |
"range": true, | |
"refId": "C" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "histogram_quantile(\n 0.5,\n sum by (le)(\n rate(\n nginx_ingress_controller_request_duration_seconds_bucket{\n status!=\"404|500|304|499\",\n controller_class=~\"$controller_class\",\n ingress=~\"$ingress\",\n service=\"$workload\",\n namespace=\"$namespace\"\n }[$__interval]\n )\n )\n)", | |
"format": "time_series", | |
"hide": false, | |
"interval": "5m", | |
"intervalFactor": 1, | |
"legendFormat": "0.5", | |
"range": true, | |
"refId": "D" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "histogram_quantile(\n 0.75,\n sum by (le)(\n rate(\n nginx_ingress_controller_request_duration_seconds_bucket{\n status!=\"404|500|304|499\",\n controller_class=~\"$controller_class\",\n ingress=~\"$ingress\",\n service=\"$workload\",\n namespace=\"$namespace\"\n }[$__interval]\n )\n )\n)", | |
"format": "time_series", | |
"hide": false, | |
"interval": "5m", | |
"intervalFactor": 1, | |
"legendFormat": "0.75", | |
"range": true, | |
"refId": "E" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"expr": "(\n(sum(increase(nginx_ingress_controller_request_duration_seconds_bucket{\n status!=\"404|500|304\",\n controller_class=~\"$controller_class\",\n ingress=~\"$ingress\",\n service=\"$workload\",\n namespace=\"$namespace\",\n le=\"0.01\"\n}[$__interval]))\n* 0.01)\n+\n((sum(increase(nginx_ingress_controller_request_duration_seconds_bucket{\n status!=\"404|500|304\",\n controller_class=~\"$controller_class\",\n ingress=~\"$ingress\",\n service=\"$workload\",\n namespace=\"$namespace\",\n le=\"0.1\"\n}[$__interval]))\n-\nsum(increase(nginx_ingress_controller_request_duration_seconds_bucket{\n status!=\"404|500|304\",\n controller_class=~\"$controller_class\",\n ingress=~\"$ingress\",\n service=\"$workload\",\n namespace=\"$namespace\",\n le=\"0.01\"\n}[$__interval])))\n* 0.1)\n+\n((sum(increase(nginx_ingress_controller_request_duration_seconds_bucket{\n status!=\"404|500|304\",\n controller_class=~\"$controller_class\",\n ingress=~\"$ingress\",\n service=\"$workload\",\n namespace=\"$namespace\",\n le=\"1\"\n}[$__interval]))\n-\nsum(increase(nginx_ingress_controller_request_duration_seconds_bucket{\n status!=\"404|500|304\",\n controller_class=~\"$controller_class\",\n ingress=~\"$ingress\",\n service=\"$workload\",\n namespace=\"$namespace\",\n le=\"0.1\"\n}[$__interval])))\n* 1)\n+\n((sum(increase(nginx_ingress_controller_request_duration_seconds_bucket{\n status!=\"404|500|304\",\n controller_class=~\"$controller_class\",\n ingress=~\"$ingress\",\n service=\"$workload\",\n namespace=\"$namespace\",\n le=\"10\"\n}[$__interval]))\n-\nsum(increase(nginx_ingress_controller_request_duration_seconds_bucket{\n status!=\"404|500|304\",\n controller_class=~\"$controller_class\",\n ingress=~\"$ingress\",\n service=\"$workload\",\n namespace=\"$namespace\",\n le=\"1\"\n}[$__interval])))\n* 10 )\n+\n((sum(increase(nginx_ingress_controller_request_duration_seconds_bucket{\n status!=\"404|500|304\",\n controller_class=~\"$controller_class\",\n ingress=~\"$ingress\",\n service=\"$workload\",\n namespace=\"$namespace\",\n le=\"30\"\n}[$__interval]))\n-\nsum(increase(nginx_ingress_controller_request_duration_seconds_bucket{\n status!=\"404|500|304\",\n controller_class=~\"$controller_class\",\n ingress=~\"$ingress\",\n service=\"$workload\",\n namespace=\"$namespace\",\n le=\"10\"\n}[$__interval])))\n* 30 )\n+\n((sum(increase(nginx_ingress_controller_request_duration_seconds_bucket{\n status!=\"404|500|304\",\n controller_class=~\"$controller_class\",\n ingress=~\"$ingress\",\n service=\"$workload\",\n namespace=\"$namespace\",\n le=\"60\"\n}[$__interval]))\n-\nsum(increase(nginx_ingress_controller_request_duration_seconds_bucket{\n status!=\"404|500|304\",\n controller_class=~\"$controller_class\",\n ingress=~\"$ingress\",\n service=\"$workload\",\n namespace=\"$namespace\",\n le=\"30\"\n}[$__interval])))\n* 60 )\n+\n((sum(increase(nginx_ingress_controller_request_duration_seconds_bucket{\n status!=\"404|500|304\",\n controller_class=~\"$controller_class\",\n ingress=~\"$ingress\",\n service=\"$workload\",\n namespace=\"$namespace\",\n le=\"+Inf\"\n}[$__interval]))\n-\nsum(increase(nginx_ingress_controller_request_duration_seconds_bucket{\n status!=\"404|500|304\",\n controller_class=~\"$controller_class\",\n ingress=~\"$ingress\",\n service=\"$workload\",\n namespace=\"$namespace\",\n le=\"60\"\n}[$__interval])))\n* 120 )\n)\n/\nsum(increase(nginx_ingress_controller_request_duration_seconds_bucket{\n status!=\"404|500|304\",\n controller_class=~\"$controller_class\",\n ingress=~\"$ingress\",\n service=\"$workload\",\n namespace=\"$namespace\",\n le=\"+Inf\"\n}[$__interval]))\n", | |
"format": "time_series", | |
"hide": false, | |
"interval": "5m", | |
"intervalFactor": 1, | |
"legendFormat": "Average", | |
"range": true, | |
"refId": "F" | |
} | |
], | |
"title": "Latency (Average Percentiles)", | |
"type": "timeseries" | |
} | |
], | |
"refresh": "", | |
"schemaVersion": 38, | |
"tags": [], | |
"templating": { | |
"list": [ | |
{ | |
"current": { | |
"selected": false, | |
"text": "Prometheus", | |
"value": "prometheus" | |
}, | |
"hide": 0, | |
"includeAll": false, | |
"label": "Data Source", | |
"multi": false, | |
"name": "datasource", | |
"options": [], | |
"query": "prometheus", | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"type": "datasource" | |
}, | |
{ | |
"allValue": ".*", | |
"current": { | |
"selected": false, | |
"text": "k8s.io/ingress-nginx", | |
"value": "k8s.io/ingress-nginx" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${datasource}" | |
}, | |
"definition": "label_values(nginx_ingress_controller_config_hash,controller_class)", | |
"hide": 0, | |
"includeAll": true, | |
"label": "Controller Class", | |
"multi": false, | |
"name": "controller_class", | |
"options": [], | |
"query": { | |
"qryType": 1, | |
"query": "label_values(nginx_ingress_controller_config_hash,controller_class)", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 0, | |
"type": "query" | |
}, | |
{ | |
"allValue": ".*", | |
"current": { | |
"selected": false, | |
"text": "All", | |
"value": "$__all" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${datasource}" | |
}, | |
"definition": "label_values(nginx_ingress_controller_config_hash{controller_class=~\"$controller_class\"},controller_pod)", | |
"hide": 2, | |
"includeAll": true, | |
"label": "Controller", | |
"multi": false, | |
"name": "controller", | |
"options": [], | |
"query": { | |
"qryType": 1, | |
"query": "label_values(nginx_ingress_controller_config_hash{controller_class=~\"$controller_class\"},controller_pod)", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 0, | |
"type": "query" | |
}, | |
{ | |
"current": { | |
"selected": false, | |
"text": "kube-prometheus-stack-grafana", | |
"value": "kube-prometheus-stack-grafana" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${datasource}" | |
}, | |
"definition": "label_values(nginx_ingress_controller_requests{controller_class=~\"$controller_class\", controller_pod=~\"$controller\", namespace=\"$namespace\"},ingress)", | |
"hide": 0, | |
"includeAll": false, | |
"label": "Ingress", | |
"multi": false, | |
"name": "ingress", | |
"options": [], | |
"query": { | |
"qryType": 1, | |
"query": "label_values(nginx_ingress_controller_requests{controller_class=~\"$controller_class\", controller_pod=~\"$controller\", namespace=\"$namespace\"},ingress)", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 2, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 1, | |
"type": "query" | |
}, | |
{ | |
"current": { | |
"isNone": true, | |
"selected": false, | |
"text": "None", | |
"value": "" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${datasource}" | |
}, | |
"definition": "label_values(up{job=\"kube-state-metrics\"},cluster)", | |
"hide": 2, | |
"includeAll": false, | |
"label": "cluster", | |
"multi": false, | |
"name": "cluster", | |
"options": [], | |
"query": { | |
"qryType": 1, | |
"query": "label_values(up{job=\"kube-state-metrics\"},cluster)", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 0, | |
"type": "query" | |
}, | |
{ | |
"allValue": ".*", | |
"current": { | |
"selected": false, | |
"text": "monitor", | |
"value": "monitor" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"definition": "label_values(kube_namespace_status_phase{job=\"kube-state-metrics\", cluster=\"$cluster\"},namespace)", | |
"hide": 0, | |
"includeAll": false, | |
"label": "Namespace", | |
"multi": false, | |
"name": "namespace", | |
"options": [], | |
"query": { | |
"qryType": 1, | |
"query": "label_values(kube_namespace_status_phase{job=\"kube-state-metrics\", cluster=\"$cluster\"},namespace)", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 0, | |
"type": "query" | |
}, | |
{ | |
"allValue": ".*", | |
"current": { | |
"selected": false, | |
"text": "All", | |
"value": "$__all" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"definition": "label_values(namespace_workload_pod:kube_pod_owner:relabel{namespace=\"$namespace\", cluster=\"$cluster\"},workload_type)", | |
"hide": 2, | |
"includeAll": true, | |
"label": "workload_type", | |
"multi": true, | |
"name": "type", | |
"options": [], | |
"query": { | |
"qryType": 1, | |
"query": "label_values(namespace_workload_pod:kube_pod_owner:relabel{namespace=\"$namespace\", cluster=\"$cluster\"},workload_type)", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 0, | |
"type": "query" | |
}, | |
{ | |
"current": { | |
"selected": false, | |
"text": "kube-prometheus-stack-grafana", | |
"value": "kube-prometheus-stack-grafana" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"definition": "label_values(namespace_workload_pod:kube_pod_owner:relabel{cluster=\"$cluster\", namespace=\"$namespace\"},workload)", | |
"hide": 0, | |
"includeAll": false, | |
"label": "workload", | |
"multi": false, | |
"name": "workload", | |
"options": [], | |
"query": { | |
"qryType": 1, | |
"query": "label_values(namespace_workload_pod:kube_pod_owner:relabel{cluster=\"$cluster\", namespace=\"$namespace\"},workload)", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 0, | |
"type": "query" | |
}, | |
{ | |
"allValue": ".*", | |
"current": { | |
"selected": false, | |
"text": "ingress-nginx", | |
"value": "ingress-nginx" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${datasource}" | |
}, | |
"definition": "label_values(nginx_ingress_controller_config_hash{controller_class=~\"$controller_class\"},controller_namespace)", | |
"hide": 2, | |
"includeAll": false, | |
"label": "Nginx Namespace", | |
"multi": false, | |
"name": "nginx_namespace", | |
"options": [], | |
"query": { | |
"qryType": 1, | |
"query": "label_values(nginx_ingress_controller_config_hash{controller_class=~\"$controller_class\"},controller_namespace)", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 0, | |
"type": "query" | |
}, | |
{ | |
"allValue": ".*", | |
"current": { | |
"selected": false, | |
"text": "kube-prometheus-stack-grafana-5b8fbb4667-qh7jp", | |
"value": "kube-prometheus-stack-grafana-5b8fbb4667-qh7jp" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"definition": "label_values(namespace_workload_pod:kube_pod_owner:relabel{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\"},pod)", | |
"hide": 0, | |
"includeAll": false, | |
"label": "pod", | |
"multi": false, | |
"name": "pod", | |
"options": [], | |
"query": { | |
"qryType": 1, | |
"query": "label_values(namespace_workload_pod:kube_pod_owner:relabel{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\"},pod)", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 0, | |
"type": "query" | |
}, | |
{ | |
"allValue": "severity=(ERROR OR WARNING OR INFO OR DEBUG OR CRITICAL OR DEFAULT)", | |
"current": { | |
"selected": false, | |
"text": "severity>=INFO", | |
"value": "severity>=INFO" | |
}, | |
"hide": 0, | |
"includeAll": true, | |
"multi": false, | |
"name": "severity", | |
"options": [ | |
{ | |
"selected": false, | |
"text": "All", | |
"value": "$__all" | |
}, | |
{ | |
"selected": false, | |
"text": "severity=ERROR", | |
"value": "severity=ERROR" | |
}, | |
{ | |
"selected": false, | |
"text": "severity=WARNING", | |
"value": "severity=WARNING" | |
}, | |
{ | |
"selected": false, | |
"text": "severity=INFO", | |
"value": "severity=INFO" | |
}, | |
{ | |
"selected": false, | |
"text": "severity=DEBUG", | |
"value": "severity=DEBUG" | |
}, | |
{ | |
"selected": false, | |
"text": "severity=CRITICAL", | |
"value": "severity=CRITICAL" | |
}, | |
{ | |
"selected": false, | |
"text": "severity=DEFAULT", | |
"value": "severity=DEFAULT" | |
}, | |
{ | |
"selected": false, | |
"text": "severity>=ERROR", | |
"value": "severity>=ERROR" | |
}, | |
{ | |
"selected": false, | |
"text": "severity>=WARNING", | |
"value": "severity>=WARNING" | |
}, | |
{ | |
"selected": true, | |
"text": "severity>=INFO", | |
"value": "severity>=INFO" | |
}, | |
{ | |
"selected": false, | |
"text": "severity>=DEBUG", | |
"value": "severity>=DEBUG" | |
}, | |
{ | |
"selected": false, | |
"text": "severity>=CRITICAL", | |
"value": "severity>=CRITICAL" | |
}, | |
{ | |
"selected": false, | |
"text": "severity>=DEFAULT", | |
"value": "severity>=DEFAULT" | |
} | |
], | |
"query": "severity=ERROR,severity=WARNING,severity=INFO,severity=DEBUG,severity=CRITICAL,severity=DEFAULT,severity>=ERROR,severity>=WARNING,severity>=INFO,severity>=DEBUG,severity>=CRITICAL,severity>=DEFAULT", | |
"queryValue": "", | |
"skipUrlSync": false, | |
"type": "custom" | |
}, | |
{ | |
"current": { | |
"selected": false, | |
"text": "redisexporter-prometheus-redis-exporter:9121", | |
"value": "redisexporter-prometheus-redis-exporter:9121" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"definition": "label_values(redis_up{job=\"redis\"},instance)", | |
"hide": 2, | |
"includeAll": false, | |
"label": "Redis Instance", | |
"multi": false, | |
"name": "redis_instance", | |
"options": [], | |
"query": { | |
"qryType": 1, | |
"query": "label_values(redis_up{job=\"redis\"},instance)", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 2, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 0, | |
"type": "query" | |
}, | |
{ | |
"current": { | |
"selected": false, | |
"text": "pgexporter-prometheus-postgres-exporter:80", | |
"value": "pgexporter-prometheus-postgres-exporter:80" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${datasource}" | |
}, | |
"definition": "query_result(pg_up{release=\"$postgres_release\"})", | |
"hide": 2, | |
"includeAll": false, | |
"label": "Postgres Instance", | |
"multi": false, | |
"name": "postgres_instance", | |
"options": [], | |
"query": { | |
"qryType": 3, | |
"query": "query_result(pg_up{release=\"$postgres_release\"})", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 1, | |
"regex": "/.*instance=\"([^\"]+).*/", | |
"skipUrlSync": false, | |
"sort": 1, | |
"type": "query" | |
}, | |
{ | |
"current": { | |
"isNone": true, | |
"selected": false, | |
"text": "None", | |
"value": "" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${datasource}" | |
}, | |
"definition": "query_result(pg_exporter_last_scrape_duration_seconds)", | |
"hide": 2, | |
"includeAll": false, | |
"label": "Postgres Namespace", | |
"multi": false, | |
"name": "postgres_namespace", | |
"options": [], | |
"query": { | |
"qryType": 3, | |
"query": "query_result(pg_exporter_last_scrape_duration_seconds)", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 1, | |
"regex": "/.*kubernetes_namespace=\"([^\"]+).*/", | |
"skipUrlSync": false, | |
"sort": 0, | |
"type": "query" | |
}, | |
{ | |
"current": { | |
"isNone": true, | |
"selected": false, | |
"text": "None", | |
"value": "" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"definition": "query_result(pg_exporter_last_scrape_duration_seconds{kubernetes_namespace=\"$postgres_namespace\"})", | |
"hide": 2, | |
"includeAll": false, | |
"label": "Postgres Release", | |
"multi": false, | |
"name": "postgres_release", | |
"options": [], | |
"query": { | |
"qryType": 3, | |
"query": "query_result(pg_exporter_last_scrape_duration_seconds{kubernetes_namespace=\"$postgres_namespace\"})", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 2, | |
"regex": "/.*release=\"([^\"]+)/", | |
"skipUrlSync": false, | |
"sort": 1, | |
"type": "query" | |
} | |
] | |
}, | |
"time": { | |
"from": "now-1h", | |
"to": "now" | |
}, | |
"timepicker": {}, | |
"timezone": "", | |
"title": "Combined dashboard", | |
"uid": "d37ad82f-16ff-407d-8553-6f1a0d6886f4", | |
"version": 7, | |
"weekStart": "" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment