1465 lines
37 KiB
YAML
1465 lines
37 KiB
YAML
|
apiVersion: v1
|
||
|
kind: ConfigMap
|
||
|
metadata:
|
||
|
name: grafana-dashboard-todo-list
|
||
|
namespace: kiamol-ch14-monitoring
|
||
|
data:
|
||
|
todo-list.json: |-
|
||
|
{
|
||
|
"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": 0,
|
||
|
"id": 2,
|
||
|
"links": [],
|
||
|
"panels": [
|
||
|
{
|
||
|
"collapsed": false,
|
||
|
"datasource": null,
|
||
|
"gridPos": {
|
||
|
"h": 1,
|
||
|
"w": 24,
|
||
|
"x": 0,
|
||
|
"y": 0
|
||
|
},
|
||
|
"id": 8,
|
||
|
"panels": [],
|
||
|
"title": "Todo Web",
|
||
|
"type": "row"
|
||
|
},
|
||
|
{
|
||
|
"datasource": "Prometheus",
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"custom": {},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "orange",
|
||
|
"value": 120
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 160
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 7,
|
||
|
"w": 4,
|
||
|
"x": 0,
|
||
|
"y": 1
|
||
|
},
|
||
|
"id": 17,
|
||
|
"options": {
|
||
|
"colorMode": "value",
|
||
|
"fieldOptions": {
|
||
|
"calcs": [
|
||
|
"mean"
|
||
|
],
|
||
|
"defaults": {
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"overrides": [],
|
||
|
"values": false
|
||
|
},
|
||
|
"graphMode": "area",
|
||
|
"justifyMode": "auto",
|
||
|
"orientation": "auto",
|
||
|
"reduceOptions": {
|
||
|
"calcs": [
|
||
|
"mean"
|
||
|
],
|
||
|
"fields": "",
|
||
|
"values": false
|
||
|
}
|
||
|
},
|
||
|
"pluginVersion": "6.7.4",
|
||
|
"targets": [
|
||
|
{
|
||
|
"expr": "sum without(job, method, instance) (http_requests_in_progress)",
|
||
|
"interval": "",
|
||
|
"legendFormat": "",
|
||
|
"refId": "A"
|
||
|
}
|
||
|
],
|
||
|
"timeFrom": null,
|
||
|
"timeShift": null,
|
||
|
"title": "Active Requests",
|
||
|
"type": "stat"
|
||
|
},
|
||
|
{
|
||
|
"aliasColors": {},
|
||
|
"bars": false,
|
||
|
"dashLength": 10,
|
||
|
"dashes": false,
|
||
|
"datasource": "Prometheus",
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"custom": {},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"fill": 1,
|
||
|
"fillGradient": 0,
|
||
|
"gridPos": {
|
||
|
"h": 7,
|
||
|
"w": 5,
|
||
|
"x": 4,
|
||
|
"y": 1
|
||
|
},
|
||
|
"hiddenSeries": false,
|
||
|
"id": 16,
|
||
|
"legend": {
|
||
|
"avg": false,
|
||
|
"current": false,
|
||
|
"max": false,
|
||
|
"min": false,
|
||
|
"show": true,
|
||
|
"total": false,
|
||
|
"values": false
|
||
|
},
|
||
|
"lines": true,
|
||
|
"linewidth": 1,
|
||
|
"nullPointMode": "null",
|
||
|
"options": {
|
||
|
"dataLinks": []
|
||
|
},
|
||
|
"percentage": false,
|
||
|
"pluginVersion": "7.0.3",
|
||
|
"pointradius": 2,
|
||
|
"points": false,
|
||
|
"renderer": "flot",
|
||
|
"seriesOverrides": [],
|
||
|
"spaceLength": 10,
|
||
|
"stack": false,
|
||
|
"steppedLine": false,
|
||
|
"targets": [
|
||
|
{
|
||
|
"expr": "sum(rate(http_request_duration_seconds_count[5m]))",
|
||
|
"interval": "",
|
||
|
"legendFormat": "{{instance}}",
|
||
|
"refId": "A"
|
||
|
}
|
||
|
],
|
||
|
"thresholds": [],
|
||
|
"timeFrom": null,
|
||
|
"timeRegions": [],
|
||
|
"timeShift": null,
|
||
|
"title": "HTTP Requests",
|
||
|
"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",
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"custom": {}
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"fill": 1,
|
||
|
"fillGradient": 0,
|
||
|
"gridPos": {
|
||
|
"h": 7,
|
||
|
"w": 5,
|
||
|
"x": 9,
|
||
|
"y": 1
|
||
|
},
|
||
|
"hiddenSeries": false,
|
||
|
"id": 2,
|
||
|
"legend": {
|
||
|
"avg": false,
|
||
|
"current": false,
|
||
|
"max": false,
|
||
|
"min": false,
|
||
|
"show": true,
|
||
|
"total": false,
|
||
|
"values": false
|
||
|
},
|
||
|
"lines": true,
|
||
|
"linewidth": 1,
|
||
|
"nullPointMode": "null",
|
||
|
"options": {
|
||
|
"dataLinks": []
|
||
|
},
|
||
|
"percentage": false,
|
||
|
"pointradius": 2,
|
||
|
"points": false,
|
||
|
"renderer": "flot",
|
||
|
"seriesOverrides": [],
|
||
|
"spaceLength": 10,
|
||
|
"stack": false,
|
||
|
"steppedLine": false,
|
||
|
"targets": [
|
||
|
{
|
||
|
"expr": "histogram_quantile(0.90, sum without(code, job, method) (rate(http_request_duration_seconds_bucket{code=\"200\"}[5m])))",
|
||
|
"interval": "",
|
||
|
"legendFormat": "{{instance}}",
|
||
|
"refId": "A"
|
||
|
}
|
||
|
],
|
||
|
"thresholds": [],
|
||
|
"timeFrom": null,
|
||
|
"timeRegions": [],
|
||
|
"timeShift": null,
|
||
|
"title": "90th Percentile Response",
|
||
|
"tooltip": {
|
||
|
"shared": true,
|
||
|
"sort": 0,
|
||
|
"value_type": "individual"
|
||
|
},
|
||
|
"type": "graph",
|
||
|
"xaxis": {
|
||
|
"buckets": null,
|
||
|
"mode": "time",
|
||
|
"name": null,
|
||
|
"show": true,
|
||
|
"values": []
|
||
|
},
|
||
|
"yaxes": [
|
||
|
{
|
||
|
"format": "dtdurations",
|
||
|
"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": "",
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"custom": {}
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"fill": 1,
|
||
|
"fillGradient": 0,
|
||
|
"gridPos": {
|
||
|
"h": 7,
|
||
|
"w": 5,
|
||
|
"x": 14,
|
||
|
"y": 1
|
||
|
},
|
||
|
"hiddenSeries": false,
|
||
|
"id": 4,
|
||
|
"legend": {
|
||
|
"avg": false,
|
||
|
"current": false,
|
||
|
"max": false,
|
||
|
"min": false,
|
||
|
"show": true,
|
||
|
"total": false,
|
||
|
"values": false
|
||
|
},
|
||
|
"lines": true,
|
||
|
"linewidth": 1,
|
||
|
"nullPointMode": "null",
|
||
|
"options": {
|
||
|
"dataLinks": []
|
||
|
},
|
||
|
"percentage": false,
|
||
|
"pointradius": 2,
|
||
|
"points": false,
|
||
|
"renderer": "flot",
|
||
|
"seriesOverrides": [],
|
||
|
"spaceLength": 10,
|
||
|
"stack": false,
|
||
|
"steppedLine": false,
|
||
|
"targets": [
|
||
|
{
|
||
|
"expr": "sum without(job) (rate(todo_tasks_created_total[5m]))",
|
||
|
"interval": "",
|
||
|
"legendFormat": "{{instance}}",
|
||
|
"refId": "A"
|
||
|
}
|
||
|
],
|
||
|
"thresholds": [],
|
||
|
"timeFrom": null,
|
||
|
"timeRegions": [],
|
||
|
"timeShift": null,
|
||
|
"title": "Tasks Created",
|
||
|
"tooltip": {
|
||
|
"shared": true,
|
||
|
"sort": 0,
|
||
|
"value_type": "individual"
|
||
|
},
|
||
|
"type": "graph",
|
||
|
"xaxis": {
|
||
|
"buckets": null,
|
||
|
"mode": "time",
|
||
|
"name": null,
|
||
|
"show": true,
|
||
|
"values": []
|
||
|
},
|
||
|
"yaxes": [
|
||
|
{
|
||
|
"format": "none",
|
||
|
"label": null,
|
||
|
"logBase": 1,
|
||
|
"max": null,
|
||
|
"min": "0",
|
||
|
"show": true
|
||
|
},
|
||
|
{
|
||
|
"format": "short",
|
||
|
"label": null,
|
||
|
"logBase": 1,
|
||
|
"max": null,
|
||
|
"min": null,
|
||
|
"show": true
|
||
|
}
|
||
|
],
|
||
|
"yaxis": {
|
||
|
"align": false,
|
||
|
"alignLevel": null
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"datasource": "Prometheus",
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"custom": {},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "percentage",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "orange",
|
||
|
"value": 60
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"unit": "decbytes"
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 4,
|
||
|
"w": 5,
|
||
|
"x": 19,
|
||
|
"y": 1
|
||
|
},
|
||
|
"id": 49,
|
||
|
"options": {
|
||
|
"fieldOptions": {
|
||
|
"calcs": [
|
||
|
"mean"
|
||
|
],
|
||
|
"defaults": {
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "orange",
|
||
|
"value": 60
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"unit": "decbytes"
|
||
|
},
|
||
|
"overrides": [],
|
||
|
"values": false
|
||
|
},
|
||
|
"orientation": "auto",
|
||
|
"reduceOptions": {
|
||
|
"calcs": [
|
||
|
"mean"
|
||
|
],
|
||
|
"fields": "",
|
||
|
"values": false
|
||
|
},
|
||
|
"showThresholdLabels": false,
|
||
|
"showThresholdMarkers": true
|
||
|
},
|
||
|
"pluginVersion": "6.7.4",
|
||
|
"targets": [
|
||
|
{
|
||
|
"expr": "sum(dotnet_total_memory_bytes{job=\"todo-web\"})",
|
||
|
"interval": "",
|
||
|
"legendFormat": "",
|
||
|
"refId": "A"
|
||
|
}
|
||
|
],
|
||
|
"timeFrom": null,
|
||
|
"timeShift": null,
|
||
|
"title": "Memory",
|
||
|
"type": "gauge"
|
||
|
},
|
||
|
{
|
||
|
"datasource": "Prometheus",
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"custom": {},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "percentage",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 90
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"unit": "s"
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 3,
|
||
|
"w": 5,
|
||
|
"x": 19,
|
||
|
"y": 5
|
||
|
},
|
||
|
"id": 33,
|
||
|
"options": {
|
||
|
"fieldOptions": {
|
||
|
"calcs": [
|
||
|
"mean"
|
||
|
],
|
||
|
"defaults": {
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"unit": "none"
|
||
|
},
|
||
|
"overrides": [],
|
||
|
"values": false
|
||
|
},
|
||
|
"orientation": "auto",
|
||
|
"reduceOptions": {
|
||
|
"calcs": [
|
||
|
"mean"
|
||
|
],
|
||
|
"fields": "",
|
||
|
"values": false
|
||
|
},
|
||
|
"showThresholdLabels": false,
|
||
|
"showThresholdMarkers": true
|
||
|
},
|
||
|
"pluginVersion": "6.7.4",
|
||
|
"targets": [
|
||
|
{
|
||
|
"expr": "sum(rate(process_cpu_seconds_total{job=\"todo-web\"}[5m]))",
|
||
|
"interval": "",
|
||
|
"legendFormat": "",
|
||
|
"refId": "A"
|
||
|
}
|
||
|
],
|
||
|
"timeFrom": null,
|
||
|
"timeShift": null,
|
||
|
"title": "CPU",
|
||
|
"type": "gauge"
|
||
|
},
|
||
|
{
|
||
|
"collapsed": false,
|
||
|
"datasource": null,
|
||
|
"gridPos": {
|
||
|
"h": 1,
|
||
|
"w": 24,
|
||
|
"x": 0,
|
||
|
"y": 8
|
||
|
},
|
||
|
"id": 35,
|
||
|
"panels": [],
|
||
|
"title": "Proxy",
|
||
|
"type": "row"
|
||
|
},
|
||
|
{
|
||
|
"aliasColors": {},
|
||
|
"bars": false,
|
||
|
"dashLength": 10,
|
||
|
"dashes": false,
|
||
|
"datasource": "Prometheus",
|
||
|
"fill": 1,
|
||
|
"fillGradient": 0,
|
||
|
"gridPos": {
|
||
|
"h": 7,
|
||
|
"w": 9,
|
||
|
"x": 0,
|
||
|
"y": 9
|
||
|
},
|
||
|
"hiddenSeries": false,
|
||
|
"id": 40,
|
||
|
"legend": {
|
||
|
"avg": false,
|
||
|
"current": false,
|
||
|
"max": false,
|
||
|
"min": false,
|
||
|
"show": false,
|
||
|
"total": false,
|
||
|
"values": false
|
||
|
},
|
||
|
"lines": true,
|
||
|
"linewidth": 1,
|
||
|
"nullPointMode": "null",
|
||
|
"options": {
|
||
|
"dataLinks": []
|
||
|
},
|
||
|
"percentage": false,
|
||
|
"pointradius": 2,
|
||
|
"points": false,
|
||
|
"renderer": "flot",
|
||
|
"seriesOverrides": [],
|
||
|
"spaceLength": 10,
|
||
|
"stack": false,
|
||
|
"steppedLine": false,
|
||
|
"targets": [
|
||
|
{
|
||
|
"expr": "sum(rate(nginx_http_requests_total{job=\"todo-proxy\"}[5m]))",
|
||
|
"interval": "",
|
||
|
"legendFormat": "",
|
||
|
"refId": "A"
|
||
|
}
|
||
|
],
|
||
|
"thresholds": [],
|
||
|
"timeFrom": null,
|
||
|
"timeRegions": [],
|
||
|
"timeShift": null,
|
||
|
"title": "Total Requests",
|
||
|
"tooltip": {
|
||
|
"shared": true,
|
||
|
"sort": 0,
|
||
|
"value_type": "individual"
|
||
|
},
|
||
|
"type": "graph",
|
||
|
"xaxis": {
|
||
|
"buckets": null,
|
||
|
"mode": "time",
|
||
|
"name": null,
|
||
|
"show": true,
|
||
|
"values": []
|
||
|
},
|
||
|
"yaxes": [
|
||
|
{
|
||
|
"format": "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": 7,
|
||
|
"w": 8,
|
||
|
"x": 9,
|
||
|
"y": 9
|
||
|
},
|
||
|
"hiddenSeries": false,
|
||
|
"id": 37,
|
||
|
"legend": {
|
||
|
"avg": false,
|
||
|
"current": false,
|
||
|
"max": false,
|
||
|
"min": false,
|
||
|
"show": true,
|
||
|
"total": false,
|
||
|
"values": false
|
||
|
},
|
||
|
"lines": true,
|
||
|
"linewidth": 1,
|
||
|
"nullPointMode": "null",
|
||
|
"options": {
|
||
|
"dataLinks": []
|
||
|
},
|
||
|
"percentage": false,
|
||
|
"pointradius": 2,
|
||
|
"points": false,
|
||
|
"renderer": "flot",
|
||
|
"seriesOverrides": [],
|
||
|
"spaceLength": 10,
|
||
|
"stack": false,
|
||
|
"steppedLine": false,
|
||
|
"targets": [
|
||
|
{
|
||
|
"expr": "sum(rate(nginx_connections_accepted{job=\"todo-proxy\"}[5m]))",
|
||
|
"interval": "",
|
||
|
"legendFormat": "accepted",
|
||
|
"refId": "A"
|
||
|
},
|
||
|
{
|
||
|
"expr": "sum(rate(nginx_connections_handled{job=\"todo-proxy\"}[5m]))",
|
||
|
"interval": "",
|
||
|
"legendFormat": "handled",
|
||
|
"refId": "B"
|
||
|
}
|
||
|
],
|
||
|
"thresholds": [],
|
||
|
"timeFrom": null,
|
||
|
"timeRegions": [],
|
||
|
"timeShift": null,
|
||
|
"title": "Connections (rate)",
|
||
|
"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": 7,
|
||
|
"w": 7,
|
||
|
"x": 17,
|
||
|
"y": 9
|
||
|
},
|
||
|
"hiddenSeries": false,
|
||
|
"id": 38,
|
||
|
"legend": {
|
||
|
"avg": false,
|
||
|
"current": false,
|
||
|
"max": false,
|
||
|
"min": false,
|
||
|
"show": true,
|
||
|
"total": false,
|
||
|
"values": false
|
||
|
},
|
||
|
"lines": true,
|
||
|
"linewidth": 1,
|
||
|
"nullPointMode": "null",
|
||
|
"options": {
|
||
|
"dataLinks": []
|
||
|
},
|
||
|
"percentage": false,
|
||
|
"pointradius": 2,
|
||
|
"points": false,
|
||
|
"renderer": "flot",
|
||
|
"seriesOverrides": [],
|
||
|
"spaceLength": 10,
|
||
|
"stack": false,
|
||
|
"steppedLine": false,
|
||
|
"targets": [
|
||
|
{
|
||
|
"expr": "nginx_connections_active{job=\"todo-proxy\"}",
|
||
|
"interval": "",
|
||
|
"legendFormat": "{{instance}}/active",
|
||
|
"refId": "A"
|
||
|
},
|
||
|
{
|
||
|
"expr": "nginx_connections_reading{job=\"todo-proxy\"}",
|
||
|
"interval": "",
|
||
|
"legendFormat": "{{instance}}/reading",
|
||
|
"refId": "B"
|
||
|
},
|
||
|
{
|
||
|
"expr": "nginx_connections_waiting{job=\"todo-proxy\"}",
|
||
|
"interval": "",
|
||
|
"legendFormat": "{{instance}}/waiting",
|
||
|
"refId": "C"
|
||
|
},
|
||
|
{
|
||
|
"expr": "nginx_connections_writing{job=\"todo-proxy\"}",
|
||
|
"interval": "",
|
||
|
"legendFormat": "{{instance}}/writing",
|
||
|
"refId": "D"
|
||
|
}
|
||
|
],
|
||
|
"thresholds": [],
|
||
|
"timeFrom": null,
|
||
|
"timeRegions": [],
|
||
|
"timeShift": null,
|
||
|
"title": "Active Connections",
|
||
|
"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
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"collapsed": false,
|
||
|
"datasource": null,
|
||
|
"gridPos": {
|
||
|
"h": 1,
|
||
|
"w": 24,
|
||
|
"x": 0,
|
||
|
"y": 16
|
||
|
},
|
||
|
"id": 42,
|
||
|
"panels": [],
|
||
|
"title": "Database",
|
||
|
"type": "row"
|
||
|
},
|
||
|
{
|
||
|
"aliasColors": {},
|
||
|
"bars": false,
|
||
|
"dashLength": 10,
|
||
|
"dashes": false,
|
||
|
"datasource": "Prometheus",
|
||
|
"fill": 1,
|
||
|
"fillGradient": 0,
|
||
|
"gridPos": {
|
||
|
"h": 7,
|
||
|
"w": 4,
|
||
|
"x": 0,
|
||
|
"y": 17
|
||
|
},
|
||
|
"hiddenSeries": false,
|
||
|
"id": 44,
|
||
|
"legend": {
|
||
|
"avg": false,
|
||
|
"current": false,
|
||
|
"max": false,
|
||
|
"min": false,
|
||
|
"show": true,
|
||
|
"total": false,
|
||
|
"values": false
|
||
|
},
|
||
|
"lines": false,
|
||
|
"linewidth": 1,
|
||
|
"nullPointMode": "null",
|
||
|
"options": {
|
||
|
"dataLinks": []
|
||
|
},
|
||
|
"percentage": false,
|
||
|
"pointradius": 3,
|
||
|
"points": true,
|
||
|
"renderer": "flot",
|
||
|
"seriesOverrides": [],
|
||
|
"spaceLength": 10,
|
||
|
"stack": false,
|
||
|
"steppedLine": false,
|
||
|
"targets": [
|
||
|
{
|
||
|
"expr": "pg_stat_activity_count{datname=\"todo\", state=\"active\"}",
|
||
|
"interval": "",
|
||
|
"legendFormat": "{{state}}",
|
||
|
"refId": "A"
|
||
|
}
|
||
|
],
|
||
|
"thresholds": [],
|
||
|
"timeFrom": null,
|
||
|
"timeRegions": [],
|
||
|
"timeShift": null,
|
||
|
"title": "Active Sessions",
|
||
|
"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": 7,
|
||
|
"w": 4,
|
||
|
"x": 4,
|
||
|
"y": 17
|
||
|
},
|
||
|
"hiddenSeries": false,
|
||
|
"id": 50,
|
||
|
"legend": {
|
||
|
"avg": false,
|
||
|
"current": false,
|
||
|
"max": false,
|
||
|
"min": false,
|
||
|
"show": true,
|
||
|
"total": false,
|
||
|
"values": false
|
||
|
},
|
||
|
"lines": false,
|
||
|
"linewidth": 1,
|
||
|
"nullPointMode": "null",
|
||
|
"options": {
|
||
|
"dataLinks": []
|
||
|
},
|
||
|
"percentage": false,
|
||
|
"pointradius": 3,
|
||
|
"points": true,
|
||
|
"renderer": "flot",
|
||
|
"seriesOverrides": [],
|
||
|
"spaceLength": 10,
|
||
|
"stack": false,
|
||
|
"steppedLine": false,
|
||
|
"targets": [
|
||
|
{
|
||
|
"expr": "pg_stat_activity_count{datname=\"todo\", state=~\"idle|idle in transaction|idle in transaction (aborted)\"}",
|
||
|
"interval": "",
|
||
|
"legendFormat": "{{state}}",
|
||
|
"refId": "A"
|
||
|
}
|
||
|
],
|
||
|
"thresholds": [],
|
||
|
"timeFrom": null,
|
||
|
"timeRegions": [],
|
||
|
"timeShift": null,
|
||
|
"title": "Idle Sessions",
|
||
|
"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": 7,
|
||
|
"w": 4,
|
||
|
"x": 8,
|
||
|
"y": 17
|
||
|
},
|
||
|
"hiddenSeries": false,
|
||
|
"id": 45,
|
||
|
"legend": {
|
||
|
"avg": false,
|
||
|
"current": false,
|
||
|
"max": false,
|
||
|
"min": false,
|
||
|
"show": true,
|
||
|
"total": false,
|
||
|
"values": false
|
||
|
},
|
||
|
"lines": false,
|
||
|
"linewidth": 1,
|
||
|
"nullPointMode": "null",
|
||
|
"options": {
|
||
|
"dataLinks": []
|
||
|
},
|
||
|
"percentage": false,
|
||
|
"pointradius": 3,
|
||
|
"points": true,
|
||
|
"renderer": "flot",
|
||
|
"seriesOverrides": [],
|
||
|
"spaceLength": 10,
|
||
|
"stack": false,
|
||
|
"steppedLine": false,
|
||
|
"targets": [
|
||
|
{
|
||
|
"expr": "rate(pg_stat_database_xact_rollback{datname=\"todo\"}[5m])",
|
||
|
"interval": "",
|
||
|
"legendFormat": "{{state}}",
|
||
|
"refId": "A"
|
||
|
}
|
||
|
],
|
||
|
"thresholds": [],
|
||
|
"timeFrom": null,
|
||
|
"timeRegions": [],
|
||
|
"timeShift": null,
|
||
|
"title": "Transactions",
|
||
|
"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": 7,
|
||
|
"w": 7,
|
||
|
"x": 12,
|
||
|
"y": 17
|
||
|
},
|
||
|
"hiddenSeries": false,
|
||
|
"id": 47,
|
||
|
"legend": {
|
||
|
"avg": false,
|
||
|
"current": false,
|
||
|
"max": false,
|
||
|
"min": false,
|
||
|
"show": true,
|
||
|
"total": false,
|
||
|
"values": false
|
||
|
},
|
||
|
"lines": true,
|
||
|
"linewidth": 1,
|
||
|
"nullPointMode": "null",
|
||
|
"options": {
|
||
|
"dataLinks": []
|
||
|
},
|
||
|
"percentage": false,
|
||
|
"pointradius": 2,
|
||
|
"points": false,
|
||
|
"renderer": "flot",
|
||
|
"seriesOverrides": [],
|
||
|
"spaceLength": 10,
|
||
|
"stack": false,
|
||
|
"steppedLine": false,
|
||
|
"targets": [
|
||
|
{
|
||
|
"expr": "sum(rate(pg_stat_database_tup_fetched{datname=\"todo\"}[5m]))",
|
||
|
"interval": "",
|
||
|
"legendFormat": "reads",
|
||
|
"refId": "A"
|
||
|
},
|
||
|
{
|
||
|
"expr": "sum(rate(pg_stat_database_tup_inserted{datname=\"todo\"}[5m]))",
|
||
|
"interval": "",
|
||
|
"legendFormat": "writes",
|
||
|
"refId": "B"
|
||
|
}
|
||
|
],
|
||
|
"thresholds": [],
|
||
|
"timeFrom": null,
|
||
|
"timeRegions": [],
|
||
|
"timeShift": null,
|
||
|
"title": "Data Queried",
|
||
|
"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": "decbytes",
|
||
|
"label": null,
|
||
|
"logBase": 1,
|
||
|
"max": null,
|
||
|
"min": null,
|
||
|
"show": false
|
||
|
}
|
||
|
],
|
||
|
"yaxis": {
|
||
|
"align": false,
|
||
|
"alignLevel": null
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"datasource": "Prometheus",
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"custom": {},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "percentage",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "orange",
|
||
|
"value": 60
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"unit": "decbytes"
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 4,
|
||
|
"w": 5,
|
||
|
"x": 19,
|
||
|
"y": 17
|
||
|
},
|
||
|
"id": 32,
|
||
|
"options": {
|
||
|
"fieldOptions": {
|
||
|
"calcs": [
|
||
|
"mean"
|
||
|
],
|
||
|
"defaults": {
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "orange",
|
||
|
"value": 150
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 200
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"unit": "decbytes"
|
||
|
},
|
||
|
"overrides": [],
|
||
|
"values": false
|
||
|
},
|
||
|
"orientation": "auto",
|
||
|
"reduceOptions": {
|
||
|
"calcs": [
|
||
|
"mean"
|
||
|
],
|
||
|
"fields": "",
|
||
|
"values": false
|
||
|
},
|
||
|
"showThresholdLabels": false,
|
||
|
"showThresholdMarkers": true
|
||
|
},
|
||
|
"pluginVersion": "6.7.4",
|
||
|
"targets": [
|
||
|
{
|
||
|
"expr": "sum(process_virtual_memory_bytes{job=\"todo-db\"})",
|
||
|
"interval": "",
|
||
|
"legendFormat": "",
|
||
|
"refId": "A"
|
||
|
}
|
||
|
],
|
||
|
"timeFrom": null,
|
||
|
"timeShift": null,
|
||
|
"title": "Memory",
|
||
|
"type": "gauge"
|
||
|
},
|
||
|
{
|
||
|
"datasource": "Prometheus",
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"custom": {},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "percentage",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 90
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"unit": "s"
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 3,
|
||
|
"w": 5,
|
||
|
"x": 19,
|
||
|
"y": 21
|
||
|
},
|
||
|
"id": 48,
|
||
|
"options": {
|
||
|
"fieldOptions": {
|
||
|
"calcs": [
|
||
|
"mean"
|
||
|
],
|
||
|
"defaults": {
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"unit": "none"
|
||
|
},
|
||
|
"overrides": [],
|
||
|
"values": false
|
||
|
},
|
||
|
"orientation": "auto",
|
||
|
"reduceOptions": {
|
||
|
"calcs": [
|
||
|
"mean"
|
||
|
],
|
||
|
"fields": "",
|
||
|
"values": false
|
||
|
},
|
||
|
"showThresholdLabels": false,
|
||
|
"showThresholdMarkers": true
|
||
|
},
|
||
|
"pluginVersion": "6.7.4",
|
||
|
"targets": [
|
||
|
{
|
||
|
"expr": "sum(rate(process_cpu_seconds_total{job=\"todo-db\"}[5m]))",
|
||
|
"interval": "",
|
||
|
"legendFormat": "",
|
||
|
"refId": "A"
|
||
|
}
|
||
|
],
|
||
|
"timeFrom": null,
|
||
|
"timeShift": null,
|
||
|
"title": "CPU",
|
||
|
"type": "gauge"
|
||
|
}
|
||
|
],
|
||
|
"refresh": "30s",
|
||
|
"schemaVersion": 22,
|
||
|
"style": "light",
|
||
|
"tags": [],
|
||
|
"templating": {
|
||
|
"list": []
|
||
|
},
|
||
|
"time": {
|
||
|
"from": "now-30m",
|
||
|
"to": "now"
|
||
|
},
|
||
|
"timepicker": {
|
||
|
"refresh_intervals": [
|
||
|
"10s",
|
||
|
"30s",
|
||
|
"1m",
|
||
|
"5m",
|
||
|
"15m",
|
||
|
"30m",
|
||
|
"1h",
|
||
|
"2h",
|
||
|
"1d"
|
||
|
]
|
||
|
},
|
||
|
"timezone": "",
|
||
|
"title": "TODO List",
|
||
|
"uid": "Eh0VF3iGz",
|
||
|
"variables": {
|
||
|
"list": []
|
||
|
},
|
||
|
"version": 3
|
||
|
}
|