Created
September 2, 2020 15:22
-
-
Save thesocialdev/bed4e35d9edbdbbd82cb0ad5de63fdbd to your computer and use it in GitHub Desktop.
A grafana dashboard for the Push Notifications service to be used in the local deployment-charts Minikube environment.
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": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", | |
"type": "dashboard" | |
} | |
] | |
}, | |
"editable": true, | |
"gnetId": null, | |
"graphTooltip": 1, | |
"id": 1, | |
"links": [ | |
{ | |
"asDropdown": true, | |
"icon": "external link", | |
"tags": [ | |
"services" | |
], | |
"title": "Services", | |
"type": "dashboards" | |
} | |
], | |
"panels": [ | |
{ | |
"collapsed": false, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 0 | |
}, | |
"id": 99, | |
"panels": [], | |
"title": "Queue", | |
"type": "row" | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"fill": 1, | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 0, | |
"y": 1 | |
}, | |
"id": 101, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"repeat": null, | |
"repeatDirection": "h", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "sum(rate(push_notifications_notification_queue_time_count[5m]))", | |
"format": "time_series", | |
"intervalFactor": 2, | |
"legendFormat": "Queue time", | |
"refId": "A" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "Queue time Histogram", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "ms", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": false | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"cacheTimeout": null, | |
"colorBackground": false, | |
"colorValue": false, | |
"colors": [ | |
"#299c46", | |
"rgba(237, 129, 40, 0.89)", | |
"#d44a3a" | |
], | |
"datasource": "Prometheus", | |
"format": "none", | |
"gauge": { | |
"maxValue": 100, | |
"minValue": 0, | |
"show": true, | |
"thresholdLabels": false, | |
"thresholdMarkers": true | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 12, | |
"y": 1 | |
}, | |
"id": 109, | |
"interval": null, | |
"links": [], | |
"mappingType": 1, | |
"mappingTypes": [ | |
{ | |
"name": "value to text", | |
"value": 1 | |
}, | |
{ | |
"name": "range to text", | |
"value": 2 | |
} | |
], | |
"maxDataPoints": 100, | |
"nullPointMode": "connected", | |
"nullText": null, | |
"postfix": "", | |
"postfixFontSize": "50%", | |
"prefix": "", | |
"prefixFontSize": "50%", | |
"rangeMaps": [ | |
{ | |
"from": "null", | |
"text": "N/A", | |
"to": "null" | |
} | |
], | |
"sparkline": { | |
"fillColor": "rgba(31, 118, 189, 0.18)", | |
"full": false, | |
"lineColor": "rgb(31, 120, 193)", | |
"show": false | |
}, | |
"tableColumn": "", | |
"targets": [ | |
{ | |
"expr": "push_notifications_queue_size_on_flush", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"refId": "A" | |
} | |
], | |
"thresholds": "", | |
"title": "Average Queue size on flush", | |
"type": "singlestat", | |
"valueFontSize": "80%", | |
"valueMaps": [ | |
{ | |
"op": "=", | |
"text": "N/A", | |
"value": "null" | |
} | |
], | |
"valueName": "avg" | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"fill": 1, | |
"gridPos": { | |
"h": 9, | |
"w": 24, | |
"x": 0, | |
"y": 10 | |
}, | |
"id": 103, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "sum(rate(push_notifications_apns_transaction_histogram_count[5m]))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "apns", | |
"refId": "A" | |
}, | |
{ | |
"expr": "sum(rate(push_notifications_fcm_transaction_histogram_count[5m]))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "fcm", | |
"refId": "B" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "Transaction Histogram", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "ms", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": false | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"fill": 1, | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 0, | |
"y": 19 | |
}, | |
"id": 105, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "rate(push_notifications_apns_send_success[5m])", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "success", | |
"refId": "A" | |
}, | |
{ | |
"expr": "rate(push_notifications_apns_send_failure[5m])", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "failure", | |
"refId": "B" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "APNS send status", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "ms", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": false | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"fill": 1, | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 12, | |
"y": 19 | |
}, | |
"id": 107, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "rate(push_notifications_fcm_send_success[5m])", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "success", | |
"refId": "A" | |
}, | |
{ | |
"expr": "rate(push_notifications_fcm_send_failure[5m])", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "failure", | |
"refId": "B" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "FCM send status", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "ms", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": false | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"collapsed": false, | |
"datasource": null, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 28 | |
}, | |
"id": 2, | |
"panels": [], | |
"title": "Traffic", | |
"type": "row" | |
}, | |
{ | |
"content": "This dashboard uses the 4 golden signals approach. Each row is a signal. If editing, try to keep the overall structure and add new metrics in new rows.", | |
"datasource": null, | |
"fieldConfig": { | |
"defaults": { | |
"custom": {} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 2, | |
"w": 24, | |
"x": 0, | |
"y": 29 | |
}, | |
"id": 39, | |
"links": [], | |
"mode": "markdown", | |
"options": { | |
"content": "This dashboard uses the 4 golden signals approach. Each row is a signal. If editing, try to keep the overall structure and add new metrics in new rows.", | |
"mode": "markdown" | |
}, | |
"pluginVersion": "7.1.0", | |
"title": "", | |
"type": "text" | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"fieldConfig": { | |
"defaults": { | |
"custom": {}, | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 6, | |
"w": 24, | |
"x": 0, | |
"y": 31 | |
}, | |
"hiddenSeries": false, | |
"id": 10, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": false, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"percentage": false, | |
"pluginVersion": "7.1.3", | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "sum(rate(express_router_request_duration_seconds_count{service=\"push_notifications\"}[5m]))", | |
"format": "time_series", | |
"intervalFactor": 2, | |
"legendFormat": "Total", | |
"refId": "A", | |
"target": "" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Total", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "reqps", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": false | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"fieldConfig": { | |
"defaults": { | |
"custom": {}, | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 6, | |
"w": 8, | |
"x": 0, | |
"y": 37 | |
}, | |
"hiddenSeries": false, | |
"id": 11, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"percentage": false, | |
"pluginVersion": "7.1.3", | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "sum by (method) (rate(express_router_request_duration_seconds_count{service=\"push_notifications\"}[5m]))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "{{method}}", | |
"refId": "A", | |
"target": "" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "by HTTP method", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "reqps", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": false | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"fieldConfig": { | |
"defaults": { | |
"custom": {}, | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 6, | |
"w": 8, | |
"x": 8, | |
"y": 37 | |
}, | |
"hiddenSeries": false, | |
"id": 12, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"percentage": false, | |
"pluginVersion": "7.1.3", | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "sum by (path) (rate(express_router_request_duration_seconds_count{service=\"push_notifications\"}[5m]))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "{{path}}", | |
"refId": "A", | |
"target": "" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "by endpoint", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "reqps", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": false | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"fieldConfig": { | |
"defaults": { | |
"custom": {}, | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 6, | |
"w": 8, | |
"x": 16, | |
"y": 37 | |
}, | |
"hiddenSeries": false, | |
"id": 13, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"percentage": false, | |
"pluginVersion": "7.1.3", | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "sum by (status) (rate(express_router_request_duration_seconds_count{service=\"push_notifications\"}[5m]))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "{{status}}", | |
"refId": "A", | |
"target": "" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "by HTTP status", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "reqps", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": false | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"collapsed": false, | |
"datasource": null, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 43 | |
}, | |
"id": 6, | |
"panels": [], | |
"title": "Errors", | |
"type": "row" | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"fieldConfig": { | |
"defaults": { | |
"custom": {}, | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 5, | |
"w": 8, | |
"x": 0, | |
"y": 44 | |
}, | |
"hiddenSeries": false, | |
"id": 15, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null as zero", | |
"percentage": false, | |
"pluginVersion": "7.1.3", | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "sum by (status) (rate(express_router_request_duration_seconds_count{service=\"push_notifications\", status=~\"4..|5..\"}[5m]))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "{{status}}", | |
"refId": "A", | |
"target": "" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "HTTP errors", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"cacheTimeout": null, | |
"colorBackground": false, | |
"colorValue": false, | |
"colors": [ | |
"#299c46", | |
"rgba(237, 129, 40, 0.89)", | |
"#d44a3a" | |
], | |
"datasource": "Prometheus", | |
"fieldConfig": { | |
"defaults": { | |
"custom": {} | |
}, | |
"overrides": [] | |
}, | |
"format": "none", | |
"gauge": { | |
"maxValue": 100, | |
"minValue": 0, | |
"show": false, | |
"thresholdLabels": false, | |
"thresholdMarkers": true | |
}, | |
"gridPos": { | |
"h": 5, | |
"w": 8, | |
"x": 8, | |
"y": 44 | |
}, | |
"id": 17, | |
"interval": null, | |
"links": [], | |
"mappingType": 1, | |
"mappingTypes": [ | |
{ | |
"name": "value to text", | |
"value": 1 | |
}, | |
{ | |
"name": "range to text", | |
"value": 2 | |
} | |
], | |
"maxDataPoints": 100, | |
"nullPointMode": "connected", | |
"nullText": null, | |
"postfix": "", | |
"postfixFontSize": "50%", | |
"prefix": "", | |
"prefixFontSize": "50%", | |
"rangeMaps": [ | |
{ | |
"from": "null", | |
"text": "N/A", | |
"to": "null" | |
} | |
], | |
"sparkline": { | |
"fillColor": "rgba(31, 118, 189, 0.18)", | |
"full": false, | |
"lineColor": "rgb(31, 120, 193)", | |
"show": false | |
}, | |
"tableColumn": "", | |
"targets": [ | |
{ | |
"expr": "sum (rate(express_router_request_duration_seconds_count{service=\"push_notifications\", status=~\"4..|5..\"}[5m]))", | |
"format": "time_series", | |
"instant": true, | |
"intervalFactor": 1, | |
"refId": "A", | |
"target": "" | |
} | |
], | |
"thresholds": "", | |
"title": "Current Error rate", | |
"type": "singlestat", | |
"valueFontSize": "80%", | |
"valueMaps": [ | |
{ | |
"op": "=", | |
"text": "0", | |
"value": "null" | |
} | |
], | |
"valueName": "avg" | |
}, | |
{ | |
"cacheTimeout": null, | |
"colorBackground": false, | |
"colorValue": false, | |
"colors": [ | |
"#299c46", | |
"rgba(237, 129, 40, 0.89)", | |
"#d44a3a" | |
], | |
"datasource": "Prometheus", | |
"fieldConfig": { | |
"defaults": { | |
"custom": {} | |
}, | |
"overrides": [] | |
}, | |
"format": "percentunit", | |
"gauge": { | |
"maxValue": 100, | |
"minValue": 0, | |
"show": false, | |
"thresholdLabels": false, | |
"thresholdMarkers": true | |
}, | |
"gridPos": { | |
"h": 5, | |
"w": 8, | |
"x": 16, | |
"y": 44 | |
}, | |
"id": 48, | |
"interval": null, | |
"links": [], | |
"mappingType": 1, | |
"mappingTypes": [ | |
{ | |
"name": "value to text", | |
"value": 1 | |
}, | |
{ | |
"name": "range to text", | |
"value": 2 | |
} | |
], | |
"maxDataPoints": 100, | |
"nullPointMode": "connected", | |
"nullText": null, | |
"postfix": "", | |
"postfixFontSize": "50%", | |
"prefix": "", | |
"prefixFontSize": "50%", | |
"rangeMaps": [ | |
{ | |
"from": "null", | |
"text": "N/A", | |
"to": "null" | |
} | |
], | |
"sparkline": { | |
"fillColor": "rgba(31, 118, 189, 0.18)", | |
"full": false, | |
"lineColor": "rgb(31, 120, 193)", | |
"show": false | |
}, | |
"tableColumn": "", | |
"targets": [ | |
{ | |
"expr": "sum (rate(express_router_request_duration_seconds_count{service=\"push_notifications\", status=~\"4..|5..\"}[5m])) / sum (rate(express_router_request_duration_seconds_count{service=\"push_notifications\"}[5m]))", | |
"format": "time_series", | |
"instant": true, | |
"intervalFactor": 1, | |
"refId": "A", | |
"target": "" | |
} | |
], | |
"thresholds": "", | |
"title": "Current Error %", | |
"type": "singlestat", | |
"valueFontSize": "80%", | |
"valueMaps": [ | |
{ | |
"op": "=", | |
"text": "0", | |
"value": "null" | |
} | |
], | |
"valueName": "avg" | |
}, | |
{ | |
"collapsed": false, | |
"datasource": null, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 49 | |
}, | |
"id": 4, | |
"panels": [], | |
"title": "Latency", | |
"type": "row" | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 7, | |
"w": 24, | |
"x": 0, | |
"y": 50 | |
}, | |
"hiddenSeries": false, | |
"id": 23, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"options": { | |
"dataLinks": [] | |
}, | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "avg (rate(express_router_request_duration_seconds_sum{service=\"push_notifications\"}[5m])/rate(express_router_request_duration_seconds_count{service=\"push_notifications\"}[5m])>0)", | |
"format": "time_series", | |
"intervalFactor": 2, | |
"legendFormat": "Total", | |
"refId": "A", | |
"target": "" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Total", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "s", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 7, | |
"w": 8, | |
"x": 0, | |
"y": 57 | |
}, | |
"hiddenSeries": false, | |
"id": 19, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"options": { | |
"dataLinks": [] | |
}, | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "avg by (method) (rate(express_router_request_duration_seconds_sum{service=\"push_notifications\"}[5m])/rate(express_router_request_duration_seconds_count{service=\"push_notifications\"}[5m])>0)", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "{{method}}", | |
"refId": "A", | |
"target": "" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "by HTTP method", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "s", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 7, | |
"w": 8, | |
"x": 8, | |
"y": 57 | |
}, | |
"hiddenSeries": false, | |
"id": 20, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"options": { | |
"dataLinks": [] | |
}, | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "avg by (path) (rate(express_router_request_duration_seconds_sum{service=\"push_notifications\"}[5m])/rate(express_router_request_duration_seconds_count{service=\"push_notifications\"}[5m])>0)", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "{{path}}", | |
"refId": "A", | |
"target": "" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "by endpoint", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "s", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 7, | |
"w": 8, | |
"x": 16, | |
"y": 57 | |
}, | |
"hiddenSeries": false, | |
"id": 21, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null as zero", | |
"options": { | |
"dataLinks": [] | |
}, | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "avg by (status) (rate(express_router_request_duration_seconds_sum{service=\"push_notifications\"}[5m])/rate(express_router_request_duration_seconds_count{service=\"push_notifications\"}[5m])>0)", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "{{status}}", | |
"refId": "A", | |
"target": "" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "by HTTP status", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "s", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 9, | |
"w": 24, | |
"x": 0, | |
"y": 64 | |
}, | |
"hiddenSeries": false, | |
"id": 34, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"options": { | |
"dataLinks": [] | |
}, | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "histogram_quantile(0.5, sum by (le) (rate(express_router_request_duration_seconds_bucket{service=\"push_notifications\"}[5m])))", | |
"format": "time_series", | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "p50", | |
"refId": "A", | |
"target": "" | |
}, | |
{ | |
"expr": "histogram_quantile(0.9, sum by (le) (rate(express_router_request_duration_seconds_bucket{service=\"push_notifications\"}[5m])))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "p90", | |
"refId": "B", | |
"target": "" | |
}, | |
{ | |
"expr": "histogram_quantile(0.99, sum by (le) (rate(express_router_request_duration_seconds_bucket{service=\"push_notifications\"}[5m])))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "p99", | |
"refId": "C", | |
"target": "" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Quantiles", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "s", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 9, | |
"w": 8, | |
"x": 0, | |
"y": 73 | |
}, | |
"hiddenSeries": false, | |
"id": 36, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"options": { | |
"dataLinks": [] | |
}, | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "histogram_quantile(0.5, sum by (le,method) (rate(express_router_request_duration_seconds_bucket{service=\"push_notifications\"}[5m])))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "{{method}} - p50", | |
"refId": "D" | |
}, | |
{ | |
"expr": "histogram_quantile(0.9, sum by (le,method) (rate(express_router_request_duration_seconds_bucket{service=\"push_notifications\"}[5m])))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "{{method}} - p90", | |
"refId": "A" | |
}, | |
{ | |
"expr": "histogram_quantile(0.99, sum by (le,method) (rate(express_router_request_duration_seconds_bucket{service=\"push_notifications\"}[5m])))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "{{method}} - p99", | |
"refId": "B" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Quantiles by HTTP method", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "s", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 9, | |
"w": 8, | |
"x": 8, | |
"y": 73 | |
}, | |
"hiddenSeries": false, | |
"id": 37, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"options": { | |
"dataLinks": [] | |
}, | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "histogram_quantile(0.5, sum by (le,path) (rate(express_router_request_duration_seconds_bucket{service=\"push_notifications\"}[5m])))", | |
"format": "time_series", | |
"hide": false, | |
"intervalFactor": 1, | |
"legendFormat": "{{path}}-p50", | |
"refId": "D" | |
}, | |
{ | |
"expr": "histogram_quantile(0.9, sum by (le,path) (rate(express_router_request_duration_seconds_bucket{service=\"push_notifications\"}[5m])))", | |
"format": "time_series", | |
"hide": false, | |
"intervalFactor": 1, | |
"legendFormat": "{{path}} - p90", | |
"refId": "A" | |
}, | |
{ | |
"expr": "histogram_quantile(0.99, sum by (le,path) (rate(express_router_request_duration_seconds_bucket{service=\"push_notifications\"}[5m])))", | |
"format": "time_series", | |
"hide": false, | |
"intervalFactor": 1, | |
"legendFormat": "{{path}} - p99", | |
"refId": "B" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Quantiles by endpoint", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "s", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 9, | |
"w": 8, | |
"x": 16, | |
"y": 73 | |
}, | |
"hiddenSeries": false, | |
"id": 35, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"options": { | |
"dataLinks": [] | |
}, | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "histogram_quantile(0.5, sum by (le,status) (rate(express_router_request_duration_seconds_bucket{service=\"push_notifications\"}[5m])))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "{{status}} - p50", | |
"refId": "A", | |
"target": "" | |
}, | |
{ | |
"expr": "histogram_quantile(0.9, sum by (le,status) (rate(express_router_request_duration_seconds_bucket{service=\"push_notifications\"}[5m])))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "{{status}} - p90", | |
"refId": "B", | |
"target": "" | |
}, | |
{ | |
"expr": "histogram_quantile(0.99, sum by (le,status) (rate(express_router_request_duration_seconds_bucket{service=\"push_notifications\"}[5m])))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "{{status}} - p99", | |
"refId": "C", | |
"target": "" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Quantiles by HTTP status", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "s", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"collapsed": false, | |
"datasource": null, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 82 | |
}, | |
"id": 8, | |
"panels": [], | |
"title": "Saturation", | |
"type": "row" | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"description": "Note this is user CPU in seconds, not percentage", | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 7, | |
"w": 8, | |
"x": 0, | |
"y": 83 | |
}, | |
"hiddenSeries": false, | |
"id": 28, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"options": { | |
"dataLinks": [] | |
}, | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [ | |
{ | |
"alias": "limit", | |
"color": "#FF7383", | |
"dashes": true, | |
"lines": false, | |
"linewidth": 2, | |
"stack": false | |
} | |
], | |
"spaceLength": 10, | |
"stack": true, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "sum(rate(container_cpu_user_seconds_total{job=\"kubernetes-nodes-cadvisor\", namespace=\"default\", name=~\".*push-notifications.*\"}[5m]))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "user", | |
"refId": "A" | |
}, | |
{ | |
"expr": "sum(rate(container_cpu_system_seconds_total{job=\"kubernetes-nodes-cadvisor\", namespace=\"default\", name=~\".*push-notifications.*\"}[5m]))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "system", | |
"refId": "B" | |
}, | |
{ | |
"expr": "sum(rate(container_cpu_cfs_throttled_seconds_total{job=\"kubernetes-nodes-cadvisor\", namespace=\"default\", name=~\".*push-notifications.*\"}[5m]))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "throttled", | |
"refId": "C" | |
}, | |
{ | |
"expr": "sum (container_spec_cpu_quota{job=\"kubernetes-nodes-cadvisor\", namespace=\"default\", name=~\".*push-notifications.*\"}/container_spec_cpu_period{job=\"kubernetes-nodes-cadvisor\", namespace=\"default\", name=~\".*push-notifications.*\"})", | |
"interval": "", | |
"legendFormat": "limit", | |
"refId": "D" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Total CPU", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "s", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": { | |
"usage": "rgb(0, 0, 0)" | |
}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"description": "* swap+pagecache+RSS+kernel = usage\n* swap+pagecache+RSS are stacked.\n* memory mapped and working set are separate, hence not stacked. So is usage. \n* Working set is the one used by Out of Memory killer", | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 7, | |
"w": 8, | |
"x": 8, | |
"y": 83 | |
}, | |
"hiddenSeries": false, | |
"id": 25, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"options": { | |
"dataLinks": [] | |
}, | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [ | |
{ | |
"alias": "swap", | |
"stack": true | |
}, | |
{ | |
"alias": "pagecache", | |
"stack": true | |
}, | |
{ | |
"alias": "RSS", | |
"stack": true | |
}, | |
{ | |
"alias": "limit", | |
"color": "#FF7383", | |
"dashes": true, | |
"lines": false, | |
"linewidth": 2 | |
} | |
], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "sum(container_memory_swap{namespace=\"default\", name=~\".*push-notifications.*\", container!=\"POD\"})", | |
"hide": false, | |
"intervalFactor": 2, | |
"legendFormat": "swap", | |
"refId": "A" | |
}, | |
{ | |
"expr": "sum(container_memory_cache{namespace=\"default\", name=~\".*push-notifications.*\", container!=\"POD\"})", | |
"hide": false, | |
"intervalFactor": 2, | |
"legendFormat": "pagecache", | |
"refId": "B" | |
}, | |
{ | |
"expr": "sum(container_memory_rss{namespace=\"default\", name=~\".*push-notifications.*\", container!=\"POD\"})", | |
"intervalFactor": 2, | |
"legendFormat": "RSS", | |
"refId": "D" | |
}, | |
{ | |
"expr": "sum(container_memory_mapped_file{namespace=\"push_notifications\", site=\"$site\", prometheus=\"$prometheus\", pod_name=~\"push_notifications.*\", container_name!=\"POD\"})", | |
"hide": false, | |
"intervalFactor": 2, | |
"legendFormat": "memory mapped", | |
"refId": "C" | |
}, | |
{ | |
"expr": "sum(container_memory_usage_bytes{namespace=\"default\", name=~\".*push-notifications.*\", container!=\"POD\"})", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "usage", | |
"refId": "E" | |
}, | |
{ | |
"expr": "sum(container_memory_working_set_bytes{namespace=\"default\", name=~\".*push-notifications.*\", container!=\"POD\"})", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "working set", | |
"refId": "F" | |
}, | |
{ | |
"expr": "sum (container_spec_memory_limit_bytes{namespace=\"default\", name=~\".*push-notifications.*\", container!=\"POD\"})", | |
"interval": "", | |
"legendFormat": "limit", | |
"refId": "G" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Total Memory", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "decbytes", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 7, | |
"w": 8, | |
"x": 16, | |
"y": 83 | |
}, | |
"hiddenSeries": false, | |
"id": 27, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"options": { | |
"dataLinks": [] | |
}, | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "sum(rate(container_network_transmit_bytes_total{job=\"kubernetes-nodes-cadvisor\", namespace=\"default\",name=~\".*push-notifications.*\"}[5m]))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "Transmit", | |
"refId": "A", | |
"target": "" | |
}, | |
{ | |
"expr": "sum(rate(container_network_receive_bytes_total{job=\"kubernetes-nodes-cadvisor\", namespace=\"default\",name=~\".*push-notifications.*\"}[5m]))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "Receive", | |
"refId": "B", | |
"target": "" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Total Network", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "decbytes", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 9, | |
"w": 8, | |
"x": 0, | |
"y": 90 | |
}, | |
"hiddenSeries": false, | |
"id": 41, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"options": { | |
"dataLinks": [] | |
}, | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "sum by (event) (rate(nodejs_gc_major_duration_seconds_count{service=\"push_notifications\"}[5m]))", | |
"format": "time_series", | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "{{event}}", | |
"refId": "A", | |
"target": "" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Garbage Collections", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 9, | |
"w": 8, | |
"x": 8, | |
"y": 90 | |
}, | |
"hiddenSeries": false, | |
"id": 43, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"options": { | |
"dataLinks": [] | |
}, | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "avg by (event) (rate(nodejs_gc_major_duration_seconds_sum{service=\"push_notifications\"}[5m]))/avg by (event) (rate(nodejs_gc_major_duration_seconds_count{service=\"push_notifications\"}[5m]))", | |
"format": "time_series", | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "{{event}} - avg", | |
"refId": "A", | |
"target": "" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "GC duration", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "µs", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 9, | |
"w": 8, | |
"x": 16, | |
"y": 90 | |
}, | |
"hiddenSeries": false, | |
"id": 45, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"options": { | |
"dataLinks": [] | |
}, | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "histogram_quantile(0.5, sum by (le, event) (rate(nodejs_gc_major_duration_seconds_bucket{service=\"push_notifications\"}[5m])))", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "{{ event }} - p50", | |
"refId": "A", | |
"target": "" | |
}, | |
{ | |
"expr": "histogram_quantile(0.9, sum by (le, event) (rate(nodejs_gc_major_duration_seconds_bucket{service=\"push_notifications\"}[5m])))", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "{{ event }} - p90", | |
"refId": "B", | |
"target": "" | |
}, | |
{ | |
"expr": "histogram_quantile(0.99, sum by (le, event) (rate(nodejs_gc_major_duration_seconds_bucket{service=\"push_notifications\"}[5m])))", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "{{ event }} - p99", | |
"refId": "C", | |
"target": "" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "GC Quantiles", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "µs", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"collapsed": false, | |
"datasource": null, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 99 | |
}, | |
"id": 81, | |
"panels": [], | |
"repeat": "container_name", | |
"title": "Saturation for container $container_name", | |
"type": "row" | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"description": "Note this is user CPU in seconds, not percentage. It's averaged across all pods", | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 10, | |
"w": 12, | |
"x": 0, | |
"y": 100 | |
}, | |
"hiddenSeries": false, | |
"id": 78, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"options": { | |
"dataLinks": [] | |
}, | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"repeatDirection": "h", | |
"scopedVars": { | |
"container_name": { | |
"selected": false, | |
"text": "mobileapps-nontls", | |
"value": "mobileapps-nontls" | |
} | |
}, | |
"seriesOverrides": [ | |
{ | |
"alias": "/limit/", | |
"color": "#FF7383", | |
"dashes": true, | |
"lines": false, | |
"linewidth": 2, | |
"stack": false | |
} | |
], | |
"spaceLength": 10, | |
"stack": true, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "avg by (pod)(rate(container_cpu_user_seconds_total{job=\"kubernetes-nodes-cadvisor\", namespace=\"default\", name=~\".*push-notifications.*\"}[5m]))", | |
"format": "time_series", | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "user - {{pod}}", | |
"refId": "A" | |
}, | |
{ | |
"expr": "avg by (pod)(rate(container_cpu_system_seconds_total{job=\"kubernetes-nodes-cadvisor\", namespace=\"default\", name=~\".*push-notifications.*\"}[5m]))", | |
"format": "time_series", | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "system - {{pod}}", | |
"refId": "C" | |
}, | |
{ | |
"expr": "avg by (pod)(rate(container_cpu_cfs_throttled_seconds_total{job=\"kubernetes-nodes-cadvisor\", namespace=\"default\", name=~\".*push-notifications.*\"}[5m]))", | |
"format": "time_series", | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "throttled - {{pod}}", | |
"refId": "B" | |
}, | |
{ | |
"expr": "max by (pod) (container_spec_cpu_quota{job=\"kubernetes-nodes-cadvisor\", namespace=\"default\", name=~\".*push-notifications.*\"}/container_spec_cpu_period{job=\"kubernetes-nodes-cadvisor\", namespace=\"default\", name=~\".*push-notifications.*\"})", | |
"format": "time_series", | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "limit - {{pod}}", | |
"refId": "D" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "avg CPU $container_name", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "s", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"description": "Note this is user CPU in seconds, not percentage. It's averaged across all pods", | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 10, | |
"w": 12, | |
"x": 12, | |
"y": 100 | |
}, | |
"hiddenSeries": false, | |
"id": 94, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"options": { | |
"dataLinks": [] | |
}, | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"repeatDirection": "h", | |
"scopedVars": { | |
"container_name": { | |
"selected": false, | |
"text": "mobileapps-nontls", | |
"value": "mobileapps-nontls" | |
} | |
}, | |
"seriesOverrides": [ | |
{ | |
"alias": "/limit/", | |
"color": "#FF7383", | |
"dashes": true, | |
"lines": false, | |
"linewidth": 2, | |
"stack": false | |
} | |
], | |
"spaceLength": 10, | |
"stack": true, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "max by (pod)(rate(container_cpu_user_seconds_total{job=\"kubernetes-nodes-cadvisor\", namespace=\"default\", name=~\".*push-notifications.*\"}[5m]))", | |
"format": "time_series", | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "user - {{pod}}", | |
"refId": "A" | |
}, | |
{ | |
"expr": "max by (pod)(rate(container_cpu_system_seconds_total{job=\"kubernetes-nodes-cadvisor\", namespace=\"default\", name=~\".*push-notifications.*\"}[5m]))", | |
"format": "time_series", | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "system - {{pod}}", | |
"refId": "C" | |
}, | |
{ | |
"expr": "max by (pod)(rate(container_cpu_cfs_throttled_seconds_total{job=\"kubernetes-nodes-cadvisor\", namespace=\"default\", name=~\".*push-notifications.*\"}[5m]))", | |
"format": "time_series", | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "throttled - {{pod}}", | |
"refId": "B" | |
}, | |
{ | |
"expr": "max by (pod) (container_spec_cpu_quota{job=\"kubernetes-nodes-cadvisor\", namespace=\"default\", name=~\".*push-notifications.*\"}/container_spec_cpu_period{job=\"kubernetes-nodes-cadvisor\", namespace=\"default\", name=~\".*push-notifications.*\"})", | |
"interval": "", | |
"legendFormat": "limit - {{pod}}", | |
"refId": "D" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "max CPU $container_name", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "s", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": { | |
"usage": "rgb(0, 0, 0)" | |
}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"description": "* swap+pagecache+RSS+kernel = usage\n* swap+pagecache+RSS are stacked.\n* memory mapped and working set are separate, hence not stacked. So is usage. \n* Working set is the one used by Out of Memory killer\n* Averaged across all pods", | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 10, | |
"w": 12, | |
"x": 0, | |
"y": 110 | |
}, | |
"hiddenSeries": false, | |
"id": 79, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"maxPerRow": 4, | |
"nullPointMode": "null", | |
"options": { | |
"dataLinks": [] | |
}, | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"repeatDirection": "h", | |
"scopedVars": { | |
"container_name": { | |
"selected": false, | |
"text": "mobileapps-nontls", | |
"value": "mobileapps-nontls" | |
} | |
}, | |
"seriesOverrides": [ | |
{ | |
"alias": "/swap/", | |
"stack": true | |
}, | |
{ | |
"alias": "/pagecache/", | |
"stack": true | |
}, | |
{ | |
"alias": "/RSS/", | |
"stack": true | |
}, | |
{ | |
"alias": "/limit/", | |
"color": "#FF7383", | |
"dashes": true, | |
"fill": 0, | |
"lines": false, | |
"linewidth": 2 | |
} | |
], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "avg by (pod)(container_memory_swap{namespace=\"default\", name=~\".*push-notifications.*\"})", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "swap - {{pod}}", | |
"refId": "A" | |
}, | |
{ | |
"expr": "avg by (pod)(container_memory_cache{namespace=\"default\", name=~\".*push-notifications.*\"})", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "pagecache - {{pod}}", | |
"refId": "B" | |
}, | |
{ | |
"expr": "avg by (pod)(container_memory_rss{namespace=\"default\", name=~\".*push-notifications.*\"})", | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "RSS - {{pod}}", | |
"refId": "D" | |
}, | |
{ | |
"expr": "avg by (pod)(container_memory_mapped_file{namespace=\"default\", name=~\".*push-notifications.*\"})", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "memory mapped - {{pod}}", | |
"refId": "C" | |
}, | |
{ | |
"expr": "avg by (pod)(container_memory_usage_bytes{namespace=\"default\", name=~\".*push-notifications.*\"})", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "usage - {{pod}}", | |
"refId": "E" | |
}, | |
{ | |
"expr": "avg by (pod)(container_memory_working_set_bytes{namespace=\"default\", name=~\".*push-notifications.*\"})", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "working set - {{pod}}", | |
"refId": "F" | |
}, | |
{ | |
"expr": "avg by (pod)(container_spec_memory_limit_bytes{namespace=\"default\", name=~\".*push-notifications.*\"})", | |
"interval": "", | |
"intervalFactor": 10, | |
"legendFormat": "limit - {{pod}}", | |
"refId": "G" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "avg memory usage $container_name", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "decbytes", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "bytes", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": { | |
"usage": "rgb(0, 0, 0)" | |
}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"description": "* swap+pagecache+RSS+kernel = usage\n* swap+pagecache+RSS are stacked.\n* memory mapped and working set are separate, hence not stacked. So is usage. \n* Working set is the one used by Out of Memory killer\n* Averaged across all pods", | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 10, | |
"w": 12, | |
"x": 12, | |
"y": 110 | |
}, | |
"hiddenSeries": false, | |
"id": 95, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"maxPerRow": 4, | |
"nullPointMode": "null", | |
"options": { | |
"dataLinks": [] | |
}, | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"repeatDirection": "h", | |
"scopedVars": { | |
"container_name": { | |
"selected": false, | |
"text": "mobileapps-nontls", | |
"value": "mobileapps-nontls" | |
} | |
}, | |
"seriesOverrides": [ | |
{ | |
"alias": "/swap/", | |
"stack": true | |
}, | |
{ | |
"alias": "/pagecache/", | |
"stack": true | |
}, | |
{ | |
"alias": "/RSS/", | |
"stack": true | |
}, | |
{ | |
"alias": "/limit/", | |
"color": "#FF7383", | |
"dashes": true, | |
"fill": 0, | |
"lines": false, | |
"linewidth": 2 | |
} | |
], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "max by (pod)(container_memory_swap{namespace=\"default\", name=~\".*push-notifications.*\"})", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "swap - {{pod}}", | |
"refId": "A" | |
}, | |
{ | |
"expr": "max by (pod)(container_memory_cache{namespace=\"default\", name=~\".*push-notifications.*\"})", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "pagecache - {{pod}}", | |
"refId": "B" | |
}, | |
{ | |
"expr": "max by (pod)(container_memory_rss{namespace=\"default\", name=~\".*push-notifications.*\"})", | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "RSS - {{pod}}", | |
"refId": "D" | |
}, | |
{ | |
"expr": "max by (pod)(container_memory_mapped_file{namespace=\"default\", name=~\".*push-notifications.*\"})", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "memory mapped - {{pod}}", | |
"refId": "C" | |
}, | |
{ | |
"expr": "max by (pod)(container_memory_usage_bytes{namespace=\"default\", name=~\".*push-notifications.*\"})", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "usage - {{pod}}", | |
"refId": "E" | |
}, | |
{ | |
"expr": "max by (pod)(container_memory_working_set_bytes{namespace=\"default\", name=~\".*push-notifications.*\"})", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "working set - {{pod}}", | |
"refId": "F" | |
}, | |
{ | |
"expr": "max by (pod)(container_spec_memory_limit_bytes{namespace=\"default\", name=~\".*push-notifications.*\"})", | |
"interval": "", | |
"intervalFactor": 10, | |
"legendFormat": "limit - {{pod}}", | |
"refId": "G" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "max memory usage $container_name", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "decbytes", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "bytes", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
} | |
], | |
"refresh": false, | |
"schemaVersion": 16, | |
"style": "dark", | |
"tags": [ | |
"services", | |
"prometheus", | |
"kubernetes" | |
], | |
"templating": { | |
"list": [] | |
}, | |
"time": { | |
"from": "2020-09-02T13:00:34.000Z", | |
"to": "2020-09-02T14:25:34.000Z" | |
}, | |
"timepicker": { | |
"now": true, | |
"refresh_intervals": [ | |
"5s", | |
"10s", | |
"30s", | |
"1m", | |
"5m", | |
"15m", | |
"30m", | |
"1h", | |
"2h", | |
"1d" | |
], | |
"time_options": [ | |
"5m", | |
"15m", | |
"1h", | |
"6h", | |
"12h", | |
"24h", | |
"2d", | |
"7d", | |
"30d" | |
] | |
}, | |
"timezone": "utc", | |
"title": "Push-Notifications", | |
"uid": "5CmeRcnMz", | |
"version": 3 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment