4 "name": "DS_PROMETHEUS",
8 "pluginId": "prometheus",
9 "pluginName": "Prometheus"
29 "name": "Graph (old)",
49 "datasource": "-- Grafana --",
52 "iconColor": "rgba(0, 211, 255, 1)",
53 "name": "Annotations & Alerts",
64 "description": "Dashbord works with postgres_exporter for prometheus",
66 "fiscalYearStartMonth": 0,
70 "iteration": 1678370081292,
77 "uid": "${DS_PROMETHEUS}"
101 "color": "rgba(50, 172, 45, 0.97)",
105 "color": "rgba(237, 129, 40, 0.89)",
109 "color": "rgba(245, 54, 54, 0.9)",
126 "maxDataPoints": 100,
128 "orientation": "horizontal",
133 "fields": "/^iowait$/",
136 "showThresholdLabels": false,
137 "showThresholdMarkers": true
139 "pluginVersion": "8.4.5",
142 "expr": "sum(rate(node_cpu_seconds_total{instance=\"$host\", mode=\"iowait\"}[$interval])) by (mode)* 100 / scalar(count(node_cpu_seconds_total{mode=\"user\", instance=\"$host\"})) or sum(irate(node_cpu_seconds_total{instance=\"$host\", mode=\"iowait\"}[5m])) by (mode) * 100 / scalar(count(node_cpu_seconds_total{mode=\"user\", instance=\"$host\"}))",
143 "format": "time_series",
146 "legendFormat": "{{mode}}",
151 "title": "Current IOwait",
156 "type": "prometheus",
157 "uid": "${DS_PROMETHEUS}"
181 "color": "rgba(50, 172, 45, 0.97)",
185 "color": "rgba(237, 129, 40, 0.89)",
189 "color": "rgba(245, 54, 54, 0.9)",
206 "maxDataPoints": 100,
208 "orientation": "horizontal",
213 "fields": "/^user$/",
216 "showThresholdLabels": false,
217 "showThresholdMarkers": true
219 "pluginVersion": "8.4.5",
222 "expr": "sum(rate(node_cpu_seconds_total{instance=\"$host\", mode=\"user\"}[$interval])) by (mode)* 100 / scalar(count(node_cpu_seconds_total{mode=\"user\", instance=\"$host\"})) or sum(irate(node_cpu_seconds_total{instance=\"$host\", mode=\"user\"}[5m])) by (mode) * 100 / scalar(count(node_cpu_seconds_total{mode=\"user\", instance=\"$host\"}))",
223 "format": "time_series",
224 "interval": "$interval",
226 "legendFormat": "{{mode}}",
231 "title": "Current CPU",
236 "type": "prometheus",
237 "uid": "${DS_PROMETHEUS}"
259 "color": "rgba(50, 172, 45, 0.97)",
263 "color": "rgba(237, 129, 40, 0.89)",
267 "color": "rgba(245, 54, 54, 0.9)",
284 "maxDataPoints": 100,
286 "colorMode": "background",
288 "justifyMode": "auto",
289 "orientation": "horizontal",
294 "fields": "/^Used$/",
299 "pluginVersion": "8.4.5",
302 "expr": "(node_memory_MemTotal_bytes{instance=\"$host\"} - (node_memory_MemFree_bytes{instance=\"$host\"} + node_memory_Buffers_bytes{instance=\"$host\"} + node_memory_Cached_bytes{instance=\"$host\"})) / node_memory_MemTotal_bytes{instance=\"$host\"} * 100",
303 "format": "time_series",
304 "interval": "$interval",
306 "legendFormat": "Used",
316 "type": "prometheus",
317 "uid": "${DS_PROMETHEUS}"
339 "color": "rgba(245, 54, 54, 0.9)",
343 "color": "rgba(237, 129, 40, 0.89)",
347 "color": "rgba(50, 172, 45, 0.97)",
364 "maxDataPoints": 100,
366 "colorMode": "background",
368 "justifyMode": "auto",
369 "orientation": "horizontal",
374 "fields": "/^Used$/",
379 "pluginVersion": "8.4.5",
382 "expr": "(node_memory_Cached_bytes{instance=\"$host\"} * 100) / node_memory_MemTotal_bytes{instance=\"$host\"}",
383 "format": "time_series",
384 "interval": "$interval",
386 "legendFormat": "Used",
391 "title": "RAM cached",
396 "type": "prometheus",
397 "uid": "${DS_PROMETHEUS}"
440 "maxDataPoints": 100,
444 "justifyMode": "auto",
445 "orientation": "horizontal",
455 "pluginVersion": "8.4.5",
458 "expr": "SUM(pg_stat_database_tup_fetched{datname=~\"$datname\", instance=~\"$instance\"})",
459 "format": "time_series",
465 "title": "Current fetch data",
470 "type": "prometheus",
471 "uid": "${DS_PROMETHEUS}"
514 "maxDataPoints": 100,
518 "justifyMode": "auto",
519 "orientation": "horizontal",
529 "pluginVersion": "8.4.5",
532 "expr": "SUM(pg_stat_database_tup_inserted{datname=~\"$datname\", instance=~\"$instance\"})",
533 "format": "time_series",
539 "title": "Current insert data",
544 "type": "prometheus",
545 "uid": "${DS_PROMETHEUS}"
588 "maxDataPoints": 100,
592 "justifyMode": "auto",
593 "orientation": "horizontal",
603 "pluginVersion": "8.4.5",
606 "expr": "SUM(pg_stat_database_tup_updated{datname=~\"$datname\", instance=~\"$instance\"})",
607 "format": "time_series",
613 "title": "Current update data",
622 "type": "prometheus",
623 "uid": "${DS_PROMETHEUS}"
633 "hiddenSeries": false,
636 "alignAsTable": true,
650 "nullPointMode": "null",
652 "alertThreshold": true
655 "pluginVersion": "8.4.5",
659 "seriesOverrides": [],
662 "steppedLine": false,
665 "expr": "pg_stat_database_tup_fetched{datname=~\"$datname\", instance=~\"$instance\"} != 0",
666 "format": "time_series",
668 "legendFormat": "{{instance}}, {{datname}}",
675 "title": "Fetch data (SELECT)",
679 "value_type": "individual"
709 "type": "prometheus",
710 "uid": "${DS_PROMETHEUS}"
720 "hiddenSeries": false,
723 "alignAsTable": true,
737 "nullPointMode": "null",
739 "alertThreshold": true
742 "pluginVersion": "8.4.5",
746 "seriesOverrides": [],
749 "steppedLine": false,
752 "expr": "pg_stat_database_tup_inserted{datname=~\"$datname\", instance=~\"$instance\"} != 0",
753 "format": "time_series",
755 "legendFormat": "{{instance}}, {{datname}}",
762 "title": "Insert data",
766 "value_type": "individual"
796 "type": "prometheus",
797 "uid": "${DS_PROMETHEUS}"
807 "hiddenSeries": false,
810 "alignAsTable": true,
824 "nullPointMode": "null",
826 "alertThreshold": true
829 "pluginVersion": "8.4.5",
833 "seriesOverrides": [],
836 "steppedLine": false,
839 "expr": "pg_stat_database_tup_updated{datname=~\"$datname\", instance=~\"$instance\"} != 0",
840 "format": "time_series",
842 "legendFormat": "{{instance}}, {{datname}}",
849 "title": "Update data",
853 "value_type": "individual"
883 "type": "prometheus",
884 "uid": "${DS_PROMETHEUS}"
894 "hiddenSeries": false,
897 "alignAsTable": true,
911 "nullPointMode": "connected",
913 "alertThreshold": true
916 "pluginVersion": "8.4.5",
920 "seriesOverrides": [],
923 "steppedLine": false,
926 "expr": "pg_stat_activity_count{datname=~\"$datname\", instance=~\"$instance\", state=\"active\"} !=0",
927 "format": "time_series",
930 "legendFormat": "{{instance}},{{datname}},state : {{state}}",
937 "title": "Active sessions",
941 "value_type": "individual"
972 "type": "prometheus",
973 "uid": "${DS_PROMETHEUS}"
983 "hiddenSeries": false,
986 "alignAsTable": true,
1000 "nullPointMode": "null",
1002 "alertThreshold": true
1004 "percentage": false,
1005 "pluginVersion": "8.4.5",
1009 "seriesOverrides": [],
1012 "steppedLine": false,
1015 "expr": "pg_stat_activity_count{datname=~\"$datname\", instance=~\"$instance\", state=~\"idle|idle in transaction|idle in transaction (aborted)\"} !=0",
1016 "format": "time_series",
1017 "intervalFactor": 2,
1018 "legendFormat": "{{instance}},{{datname}},state : {{state}}",
1025 "title": "Idle sessions",
1029 "value_type": "individual"
1059 "type": "prometheus",
1060 "uid": "${DS_PROMETHEUS}"
1070 "hiddenSeries": false,
1073 "alignAsTable": true,
1087 "nullPointMode": "null",
1089 "alertThreshold": true
1091 "percentage": false,
1092 "pluginVersion": "8.4.5",
1096 "seriesOverrides": [],
1099 "steppedLine": true,
1102 "expr": "rate(node_disk_io_time_seconds_total{device=~\"$device\", instance=\"$host\"}[$interval])/10 or irate(node_disk_io_time_seconds_total{device=~\"$device\", instance=\"$host\"}[5m])/10",
1103 "format": "time_series",
1104 "interval": "$interval",
1105 "intervalFactor": 2,
1106 "legendFormat": "{{ device }}",
1113 "title": "Disk IO Utilization",
1117 "value_type": "individual"
1127 "$$hashKey": "object:333",
1128 "format": "percent",
1134 "$$hashKey": "object:334",
1151 "type": "prometheus",
1152 "uid": "${DS_PROMETHEUS}"
1162 "hiddenSeries": false,
1165 "alignAsTable": true,
1179 "nullPointMode": "null",
1180 "percentage": false,
1181 "pluginVersion": "8.4.5",
1185 "seriesOverrides": [],
1188 "steppedLine": false,
1191 "expr": "pg_stat_database_tup_deleted{datname=~\"$datname\", instance=~\"$instance\"} != 0",
1192 "format": "time_series",
1193 "intervalFactor": 2,
1194 "legendFormat": "{{instance}}, {{datname}}",
1201 "title": "Delete data",
1205 "value_type": "individual"
1235 "type": "prometheus",
1236 "uid": "${DS_PROMETHEUS}"
1246 "hiddenSeries": false,
1249 "alignAsTable": true,
1263 "nullPointMode": "null",
1264 "percentage": false,
1265 "pluginVersion": "8.4.5",
1269 "seriesOverrides": [],
1272 "steppedLine": false,
1275 "expr": "pg_stat_database_tup_returned{datname=~\"$datname\", instance=~\"$instance\"} != 0",
1276 "format": "time_series",
1277 "intervalFactor": 2,
1278 "legendFormat": "{{instance}}, {{datname}}",
1285 "title": "Return data",
1289 "value_type": "individual"
1319 "type": "prometheus",
1320 "uid": "${DS_PROMETHEUS}"
1330 "hiddenSeries": false,
1333 "alignAsTable": true,
1349 "nullPointMode": "null",
1350 "percentage": false,
1351 "pluginVersion": "8.4.5",
1355 "seriesOverrides": [],
1358 "steppedLine": false,
1361 "expr": "pg_locks_count{datname=~\"$datname\", instance=~\"$instance\", mode=~\"$mode\"} != 0",
1362 "format": "time_series",
1363 "intervalFactor": 2,
1364 "legendFormat": "{{instance}},{{datname}},{{mode}}",
1371 "title": "Lock tables",
1375 "value_type": "individual"
1385 "$$hashKey": "object:386",
1393 "$$hashKey": "object:387",
1409 "type": "prometheus",
1410 "uid": "${DS_PROMETHEUS}"
1420 "hiddenSeries": false,
1423 "alignAsTable": true,
1438 "nullPointMode": "null",
1439 "percentage": false,
1440 "pluginVersion": "8.4.5",
1444 "seriesOverrides": [],
1447 "steppedLine": false,
1450 "expr": "1 - node_filesystem_free_bytes{instance=~\"$host\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\"} / node_filesystem_size_bytes{fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\"}",
1451 "format": "time_series",
1453 "intervalFactor": 2,
1454 "legendFormat": "{{instance}} , {{mountpoint}}",
1461 "title": "Disk Use",
1465 "value_type": "individual"
1475 "$$hashKey": "object:173",
1476 "format": "percentunit",
1481 "$$hashKey": "object:174",
1497 "type": "prometheus",
1498 "uid": "${DS_PROMETHEUS}"
1508 "hiddenSeries": false,
1511 "alignAsTable": true,
1528 "nullPointMode": "null",
1529 "percentage": false,
1530 "pluginVersion": "8.4.5",
1534 "seriesOverrides": [],
1537 "steppedLine": false,
1540 "expr": "(rate(node_disk_read_time_seconds_total{device=~\"$device\", instance=\"$host\"}[$interval]) / rate(node_disk_reads_completed_total{device=~\"$device\", instance=\"$host\"}[$interval])) or (irate(node_disk_read_seconds_total{device=~\"$device\", instance=\"$host\"}[5m]) / irate(node_disk_reads_completed_total{device=~\"$device\", instance=\"$host\"}[5m]))",
1541 "format": "time_series",
1543 "interval": "$interval",
1544 "intervalFactor": 1,
1545 "legendFormat": "Read: {{ device }}",
1550 "expr": "(rate(node_disk_write_time_seconds_total{device=~\"$device\", instance=\"$host\"}[$interval]) / rate(node_disk_writes_completed_total{device=~\"$device\", instance=\"$host\"}[$interval])) or (irate(node_disk_write_time_seconds_total{device=~\"$device\", instance=\"$host\"}[5m]) / irate(node_disk_writes_completed_total{device=~\"$device\", instance=\"$host\"}[5m]))",
1551 "format": "time_series",
1552 "interval": "$interval",
1553 "intervalFactor": 1,
1554 "legendFormat": "Write: {{ device }}",
1561 "title": "Disk Latency",
1565 "value_type": "individual"
1575 "$$hashKey": "object:437",
1581 "$$hashKey": "object:438",
1593 "schemaVersion": 35,
1607 "value": "$__auto_interval_interval"
1610 "label": "Interval",
1616 "value": "$__auto_interval_interval"
1654 "query": "1s,5s,1m,5m,1h,6h,1d",
1657 "skipUrlSync": false,
1663 "type": "prometheus",
1664 "uid": "${DS_PROMETHEUS}"
1666 "definition": "label_values(node_disk_reads_completed_total, instance)",
1668 "includeAll": false,
1674 "query": "label_values(node_disk_reads_completed_total, instance)",
1675 "refId": "Prometheus-host-Variable-Query"
1679 "skipUrlSync": false,
1681 "tagValuesQuery": "",
1689 "type": "prometheus",
1690 "uid": "${DS_PROMETHEUS}"
1692 "definition": "label_values(node_disk_reads_completed_total{instance=\"$host\", device!~\"dm-.+\"}, device)",
1700 "query": "label_values(node_disk_reads_completed_total{instance=\"$host\", device!~\"dm-.+\"}, device)",
1701 "refId": "Prometheus-device-Variable-Query"
1705 "skipUrlSync": false,
1707 "tagValuesQuery": "",
1715 "type": "prometheus",
1716 "uid": "${DS_PROMETHEUS}"
1721 "label": "Instance",
1726 "query": "label_values({job=~\"postgresql|postgresql01|postgresql02|postgresql03\"}, instance)",
1727 "refId": "Prometheus-instance-Variable-Query"
1731 "skipUrlSync": false,
1733 "tagValuesQuery": "",
1741 "type": "prometheus",
1742 "uid": "${DS_PROMETHEUS}"
1747 "label": "Database",
1752 "query": "label_values(datname)",
1753 "refId": "Prometheus-datname-Variable-Query"
1757 "skipUrlSync": false,
1759 "tagValuesQuery": "",
1767 "type": "prometheus",
1768 "uid": "${DS_PROMETHEUS}"
1773 "label": "Lock table",
1778 "query": "label_values({mode=~\"accessexclusivelock|accesssharelock|exclusivelock|rowexclusivelock|rowsharelock|sharelock|sharerowexclusivelock|shareupdateexclusivelock\"}, mode)",
1779 "refId": "Prometheus-mode-Variable-Query"
1783 "skipUrlSync": false,
1785 "tagValuesQuery": "",
1797 "refresh_intervals": [
1822 "title": "Postgres exporter",
1823 "uid": "PGExporterDashboard",