infra/services/monitoring/lgtm/dashboards/postgres2.json

3032 lines
72 KiB
JSON
Raw Permalink Normal View History

2024-07-05 12:51:26 +00:00
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"description": "This dashboard works with postgres_exporter for prometheus",
"editable": true,
"fiscalYearStartMonth": 0,
"gnetId": 9628,
"graphTooltip": 0,
"links": [],
"liveNow": false,
"panels": [
{
"collapsed": false,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 34,
"panels": [],
"targets": [
{
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"refId": "A"
}
],
"title": "General Counters, CPU, Memory and File Descriptor Stats",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "none"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
"h": 2,
"w": 4,
"x": 0,
"y": 1
},
"id": 36,
"maxDataPoints": 100,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
2024-07-05 12:51:26 +00:00
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "name",
"wideLayout": true
},
"pluginVersion": "11.2.1",
2024-07-05 12:51:26 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "pg_static{tenant=\"$tenant\",hostname=\"$hostname\"}",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"instant": true,
"intervalFactor": 1,
"legendFormat": "{{short_version}}",
"refId": "A"
}
],
"title": "Version",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"description": "start time of the process",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "dateTimeFromNow"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
"h": 2,
"w": 4,
"x": 4,
"y": 1
},
"id": 28,
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
2024-07-05 12:51:26 +00:00
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.2.1",
2024-07-05 12:51:26 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "pg_postmaster_start_time_seconds{tenant=\"$tenant\",hostname=\"$hostname\"} * 1000",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "",
"refId": "A"
}
],
"title": "Start Time",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "decbytes"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
"h": 2,
"w": 4,
"x": 8,
"y": 1
},
"id": 10,
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
2024-07-05 12:51:26 +00:00
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.2.1",
2024-07-05 12:51:26 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "SUM(pg_stat_database_tup_fetched{datname=~\"$datname\", tenant=\"$tenant\",hostname=~\"$hostname\"})",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 2,
"refId": "A",
"step": 4
}
],
"title": "Current fetch data",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "decbytes"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
"h": 2,
"w": 4,
"x": 12,
"y": 1
},
"id": 11,
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
2024-07-05 12:51:26 +00:00
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.2.1",
2024-07-05 12:51:26 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "SUM(pg_stat_database_tup_inserted{datname=~\"$datname\", tenant=\"$tenant\",hostname=~\"$hostname\"})",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 2,
"refId": "A",
"step": 4
}
],
"title": "Current insert data",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "decbytes"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
"h": 2,
"w": 4,
"x": 16,
"y": 1
},
"id": 12,
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
2024-07-05 12:51:26 +00:00
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.2.1",
2024-07-05 12:51:26 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "SUM(pg_stat_database_tup_updated{datname=~\"$datname\", tenant=\"$tenant\",hostname=~\"$hostname\"})",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 2,
"refId": "A",
"step": 4
}
],
"title": "Current update data",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "none"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
"h": 2,
"w": 4,
"x": 20,
"y": 1
},
"id": 38,
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
2024-07-05 12:51:26 +00:00
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.2.1",
2024-07-05 12:51:26 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "pg_settings_max_connections{tenant=\"$tenant\",hostname=\"$hostname\"}",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
}
],
"title": "Max Connections",
"type": "stat"
},
2024-07-08 08:43:57 +00:00
{
"collapsed": false,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 3
},
"id": 32,
"panels": [],
"targets": [
{
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"refId": "A"
}
],
"title": "Settings",
"type": "row"
},
2024-07-05 12:51:26 +00:00
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
2024-07-08 08:43:57 +00:00
"mode": "thresholds"
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
2024-07-05 12:51:26 +00:00
}
2024-07-08 08:43:57 +00:00
],
2024-07-05 12:51:26 +00:00
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "bytes"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
2024-07-08 08:43:57 +00:00
"h": 3,
"w": 3,
2024-07-05 12:51:26 +00:00
"x": 0,
2024-07-08 08:43:57 +00:00
"y": 4
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"id": 40,
"maxDataPoints": 100,
2024-07-05 12:51:26 +00:00
"options": {
2024-07-08 08:43:57 +00:00
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
2024-07-08 08:43:57 +00:00
"reduceOptions": {
2024-07-05 12:51:26 +00:00
"calcs": [
2024-07-08 08:43:57 +00:00
"lastNotNull"
2024-07-05 12:51:26 +00:00
],
2024-07-08 08:43:57 +00:00
"fields": "",
"values": false
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
2024-07-05 12:51:26 +00:00
},
"pluginVersion": "11.2.1",
2024-07-05 12:51:26 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "pg_settings_shared_buffers_bytes{tenant=\"$tenant\",hostname=\"$hostname\"}",
2024-07-05 12:51:26 +00:00
"format": "time_series",
2024-07-08 08:43:57 +00:00
"intervalFactor": 1,
2024-07-05 12:51:26 +00:00
"refId": "A"
}
],
2024-07-08 08:43:57 +00:00
"title": "Shared Buffers",
"type": "stat"
2024-07-05 12:51:26 +00:00
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
2024-07-08 08:43:57 +00:00
"mode": "thresholds"
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
2024-07-05 12:51:26 +00:00
}
2024-07-08 08:43:57 +00:00
],
2024-07-05 12:51:26 +00:00
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "bytes"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
2024-07-08 08:43:57 +00:00
"h": 3,
"w": 3,
"x": 3,
"y": 4
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"id": 42,
"maxDataPoints": 100,
2024-07-05 12:51:26 +00:00
"options": {
2024-07-08 08:43:57 +00:00
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
2024-07-08 08:43:57 +00:00
"reduceOptions": {
2024-07-05 12:51:26 +00:00
"calcs": [
2024-07-08 08:43:57 +00:00
"lastNotNull"
2024-07-05 12:51:26 +00:00
],
2024-07-08 08:43:57 +00:00
"fields": "",
"values": false
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
2024-07-05 12:51:26 +00:00
},
"pluginVersion": "11.2.1",
2024-07-05 12:51:26 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "pg_settings_effective_cache_size_bytes{tenant=\"$tenant\",hostname=\"$hostname\"}",
2024-07-05 12:51:26 +00:00
"format": "time_series",
2024-07-08 08:43:57 +00:00
"intervalFactor": 1,
2024-07-05 12:51:26 +00:00
"refId": "A"
}
],
2024-07-08 08:43:57 +00:00
"title": "Effective Cache",
"type": "stat"
2024-07-05 12:51:26 +00:00
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
2024-07-08 08:43:57 +00:00
"mode": "thresholds"
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
2024-07-05 12:51:26 +00:00
}
2024-07-08 08:43:57 +00:00
],
2024-07-05 12:51:26 +00:00
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "bytes"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
2024-07-08 08:43:57 +00:00
"h": 3,
"w": 3,
"x": 6,
"y": 4
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"id": 44,
"maxDataPoints": 100,
2024-07-05 12:51:26 +00:00
"options": {
2024-07-08 08:43:57 +00:00
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
2024-07-08 08:43:57 +00:00
"reduceOptions": {
2024-07-05 12:51:26 +00:00
"calcs": [
2024-07-08 08:43:57 +00:00
"lastNotNull"
2024-07-05 12:51:26 +00:00
],
2024-07-08 08:43:57 +00:00
"fields": "",
"values": false
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
2024-07-05 12:51:26 +00:00
},
"pluginVersion": "11.2.1",
2024-07-05 12:51:26 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "pg_settings_maintenance_work_mem_bytes{tenant=\"$tenant\",hostname=\"$hostname\"}",
2024-07-05 12:51:26 +00:00
"format": "time_series",
2024-07-08 08:43:57 +00:00
"intervalFactor": 1,
2024-07-05 12:51:26 +00:00
"refId": "A"
}
],
2024-07-08 08:43:57 +00:00
"title": "Maintenance Work Mem",
"type": "stat"
2024-07-05 12:51:26 +00:00
},
{
"datasource": {
2024-07-08 08:43:57 +00:00
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bytes"
},
"overrides": []
2024-07-05 12:51:26 +00:00
},
"gridPos": {
2024-07-08 08:43:57 +00:00
"h": 3,
"w": 3,
"x": 9,
"y": 4
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"id": 46,
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
2024-07-08 08:43:57 +00:00
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.2.1",
2024-07-05 12:51:26 +00:00
"targets": [
{
"datasource": {
2024-07-08 08:43:57 +00:00
"type": "prometheus",
"uid": "mimir"
2024-07-05 12:51:26 +00:00
},
"expr": "pg_settings_work_mem_bytes{tenant=\"$tenant\",hostname=\"$hostname\"}",
2024-07-08 08:43:57 +00:00
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "",
2024-07-05 12:51:26 +00:00
"refId": "A"
}
],
2024-07-08 08:43:57 +00:00
"title": "Work Mem",
"type": "stat"
2024-07-05 12:51:26 +00:00
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
2024-07-08 08:43:57 +00:00
"decimals": 1,
2024-07-05 12:51:26 +00:00
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "bytes"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 3,
2024-07-08 08:43:57 +00:00
"x": 12,
"y": 4
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"id": 48,
2024-07-05 12:51:26 +00:00
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
2024-07-05 12:51:26 +00:00
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.2.1",
2024-07-05 12:51:26 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "pg_settings_max_wal_size_bytes{tenant=\"$tenant\",hostname=\"$hostname\"}",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
}
],
2024-07-08 08:43:57 +00:00
"title": "Max WAL Size",
2024-07-05 12:51:26 +00:00
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "none"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 3,
2024-07-08 08:43:57 +00:00
"x": 15,
"y": 4
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"id": 50,
2024-07-05 12:51:26 +00:00
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
2024-07-05 12:51:26 +00:00
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.2.1",
2024-07-05 12:51:26 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "pg_settings_random_page_cost{tenant=\"$tenant\",hostname=\"$hostname\"}",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
}
],
2024-07-08 08:43:57 +00:00
"title": "Random Page Cost",
2024-07-05 12:51:26 +00:00
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "none"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
"h": 3,
2024-07-08 08:43:57 +00:00
"w": 2,
"x": 18,
"y": 4
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"id": 52,
2024-07-05 12:51:26 +00:00
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
2024-07-05 12:51:26 +00:00
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.2.1",
2024-07-05 12:51:26 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
2024-07-08 08:43:57 +00:00
"expr": "pg_settings_seq_page_cost",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
}
],
2024-07-08 08:43:57 +00:00
"title": "Seq Page Cost",
2024-07-05 12:51:26 +00:00
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "none"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
"h": 3,
2024-07-08 08:43:57 +00:00
"w": 2,
"x": 20,
"y": 4
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"id": 54,
2024-07-05 12:51:26 +00:00
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
2024-07-05 12:51:26 +00:00
"reduceOptions": {
"calcs": [
2024-07-08 08:43:57 +00:00
"mean"
2024-07-05 12:51:26 +00:00
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.2.1",
2024-07-05 12:51:26 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "pg_settings_max_worker_processes{tenant=\"$tenant\",hostname=\"$hostname\"}",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
}
],
2024-07-08 08:43:57 +00:00
"title": "Max Worker Processes",
2024-07-05 12:51:26 +00:00
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
2024-07-08 08:43:57 +00:00
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 22,
"y": 4
},
"id": 56,
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
2024-07-08 08:43:57 +00:00
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.2.1",
2024-07-08 08:43:57 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "pg_settings_max_parallel_workers{tenant=\"$tenant\",hostname=\"$hostname\"}",
2024-07-08 08:43:57 +00:00
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
}
],
"title": "Max Parallel Workers",
"type": "stat"
},
{
"collapsed": false,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 7
},
"id": 30,
"panels": [],
"targets": [
{
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"refId": "A"
}
],
"title": "Database Stats",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
2024-07-08 08:43:57 +00:00
"drawStyle": "points",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 8,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "always",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 0,
"mappings": [],
2024-07-05 12:51:26 +00:00
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "none"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
2024-07-08 08:43:57 +00:00
"h": 7,
"w": 8,
"x": 0,
"y": 8
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"id": 1,
2024-07-05 12:51:26 +00:00
"options": {
2024-07-08 08:43:57 +00:00
"legend": {
2024-07-05 12:51:26 +00:00
"calcs": [
2024-07-08 08:43:57 +00:00
"mean",
"lastNotNull",
"max"
2024-07-05 12:51:26 +00:00
],
2024-07-08 08:43:57 +00:00
"displayMode": "table",
"placement": "right",
"showLegend": true
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"tooltip": {
"maxHeight": 600,
"mode": "multi",
"sort": "none"
}
2024-07-05 12:51:26 +00:00
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "pg_stat_activity_count{datname=~\"$datname\", tenant=\"$tenant\",hostname=~\"$hostname\", state=\"active\"} !=0",
2024-07-05 12:51:26 +00:00
"format": "time_series",
2024-07-08 08:43:57 +00:00
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{datname}}, s: {{state}}",
"refId": "A",
"step": 2
2024-07-05 12:51:26 +00:00
}
],
2024-07-08 08:43:57 +00:00
"title": "Active sessions",
"type": "timeseries"
2024-07-05 12:51:26 +00:00
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
2024-07-08 08:43:57 +00:00
"mode": "palette-classic"
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
2024-07-08 08:43:57 +00:00
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
2024-07-05 12:51:26 +00:00
}
2024-07-08 08:43:57 +00:00
},
"mappings": [],
2024-07-05 12:51:26 +00:00
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "short"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
2024-07-08 08:43:57 +00:00
"h": 7,
"w": 8,
"x": 8,
"y": 8
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"id": 60,
2024-07-05 12:51:26 +00:00
"options": {
2024-07-08 08:43:57 +00:00
"legend": {
2024-07-05 12:51:26 +00:00
"calcs": [
2024-07-08 08:43:57 +00:00
"mean",
"lastNotNull",
"sum"
2024-07-05 12:51:26 +00:00
],
2024-07-08 08:43:57 +00:00
"displayMode": "table",
"placement": "right",
"showLegend": true
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"tooltip": {
"maxHeight": 600,
"mode": "multi",
"sort": "none"
}
2024-07-05 12:51:26 +00:00
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "irate(pg_stat_database_xact_commit{tenant=\"$tenant\",hostname=\"$hostname\", datname=~\"$datname\"}[5m])",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 1,
2024-07-08 08:43:57 +00:00
"legendFormat": "{{datname}} commits",
2024-07-05 12:51:26 +00:00
"refId": "A"
2024-07-08 08:43:57 +00:00
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "irate(pg_stat_database_xact_rollback{tenant=\"$tenant\",hostname=\"$hostname\", datname=~\"$datname\"}[5m])",
2024-07-08 08:43:57 +00:00
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{datname}} rollbacks",
"refId": "B"
2024-07-05 12:51:26 +00:00
}
],
2024-07-08 08:43:57 +00:00
"title": "Transactions",
"type": "timeseries"
2024-07-05 12:51:26 +00:00
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
2024-07-08 08:43:57 +00:00
"mode": "palette-classic"
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
2024-07-08 08:43:57 +00:00
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
2024-07-05 12:51:26 +00:00
}
2024-07-08 08:43:57 +00:00
},
"mappings": [],
2024-07-05 12:51:26 +00:00
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "bytes"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
2024-07-08 08:43:57 +00:00
"h": 7,
"w": 8,
"x": 16,
"y": 8
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"id": 8,
2024-07-05 12:51:26 +00:00
"options": {
2024-07-08 08:43:57 +00:00
"legend": {
2024-07-05 12:51:26 +00:00
"calcs": [
2024-07-08 08:43:57 +00:00
"mean",
"lastNotNull",
"sum"
2024-07-05 12:51:26 +00:00
],
2024-07-08 08:43:57 +00:00
"displayMode": "table",
"placement": "right",
"showLegend": true
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"tooltip": {
"maxHeight": 600,
"mode": "multi",
"sort": "none"
}
2024-07-05 12:51:26 +00:00
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "pg_stat_database_tup_updated{datname=~\"$datname\", tenant=\"$tenant\",hostname=~\"$hostname\"} != 0",
2024-07-05 12:51:26 +00:00
"format": "time_series",
2024-07-08 08:43:57 +00:00
"intervalFactor": 2,
"legendFormat": "{{datname}}",
"refId": "A",
"step": 2
2024-07-05 12:51:26 +00:00
}
],
2024-07-08 08:43:57 +00:00
"title": "Update data",
"type": "timeseries"
2024-07-05 12:51:26 +00:00
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
2024-07-08 08:43:57 +00:00
"mode": "palette-classic"
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
2024-07-08 08:43:57 +00:00
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
2024-07-05 12:51:26 +00:00
}
2024-07-08 08:43:57 +00:00
},
"mappings": [],
2024-07-05 12:51:26 +00:00
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "bytes"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
2024-07-08 08:43:57 +00:00
"h": 7,
"w": 8,
"x": 0,
"y": 15
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"id": 5,
2024-07-05 12:51:26 +00:00
"options": {
2024-07-08 08:43:57 +00:00
"legend": {
2024-07-05 12:51:26 +00:00
"calcs": [
2024-07-08 08:43:57 +00:00
"mean",
"lastNotNull",
"sum"
2024-07-05 12:51:26 +00:00
],
2024-07-08 08:43:57 +00:00
"displayMode": "table",
"placement": "right",
"showLegend": true
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"tooltip": {
"maxHeight": 600,
"mode": "multi",
"sort": "none"
}
2024-07-05 12:51:26 +00:00
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "pg_stat_database_tup_fetched{datname=~\"$datname\", tenant=\"$tenant\",hostname=~\"$hostname\"} != 0",
2024-07-05 12:51:26 +00:00
"format": "time_series",
2024-07-08 08:43:57 +00:00
"intervalFactor": 2,
"legendFormat": "{{datname}}",
"refId": "A",
"step": 2
2024-07-05 12:51:26 +00:00
}
],
2024-07-08 08:43:57 +00:00
"title": "Fetch data (SELECT)",
"type": "timeseries"
2024-07-05 12:51:26 +00:00
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
2024-07-08 08:43:57 +00:00
"mode": "palette-classic"
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
2024-07-08 08:43:57 +00:00
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
2024-07-05 12:51:26 +00:00
}
2024-07-08 08:43:57 +00:00
},
"mappings": [],
2024-07-05 12:51:26 +00:00
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "bytes"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
2024-07-08 08:43:57 +00:00
"h": 7,
"w": 8,
"x": 8,
"y": 15
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"id": 6,
2024-07-05 12:51:26 +00:00
"options": {
2024-07-08 08:43:57 +00:00
"legend": {
2024-07-05 12:51:26 +00:00
"calcs": [
2024-07-08 08:43:57 +00:00
"mean",
"lastNotNull",
"sum"
2024-07-05 12:51:26 +00:00
],
2024-07-08 08:43:57 +00:00
"displayMode": "table",
"placement": "right",
"showLegend": true
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"tooltip": {
"maxHeight": 600,
"mode": "multi",
"sort": "none"
}
2024-07-05 12:51:26 +00:00
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "pg_stat_database_tup_inserted{datname=~\"$datname\", tenant=\"$tenant\",hostname=~\"$hostname\"} != 0",
2024-07-05 12:51:26 +00:00
"format": "time_series",
2024-07-08 08:43:57 +00:00
"intervalFactor": 2,
"legendFormat": "{{datname}}",
"refId": "A",
"step": 2
2024-07-05 12:51:26 +00:00
}
],
2024-07-08 08:43:57 +00:00
"title": "Insert data",
"type": "timeseries"
2024-07-05 12:51:26 +00:00
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
2024-07-08 08:43:57 +00:00
"drawStyle": "line",
2024-07-05 12:51:26 +00:00
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
2024-07-08 08:43:57 +00:00
"pointSize": 5,
2024-07-05 12:51:26 +00:00
"scaleDistribution": {
"type": "linear"
},
2024-07-08 08:43:57 +00:00
"showPoints": "never",
"spanNulls": false,
2024-07-05 12:51:26 +00:00
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 0,
"mappings": [],
2024-07-08 08:43:57 +00:00
"min": 0,
2024-07-05 12:51:26 +00:00
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "short"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 8,
2024-07-08 08:43:57 +00:00
"x": 16,
2024-07-05 12:51:26 +00:00
"y": 15
},
2024-07-08 08:43:57 +00:00
"id": 3,
2024-07-05 12:51:26 +00:00
"options": {
"legend": {
"calcs": [
"mean",
"lastNotNull",
2024-07-08 08:43:57 +00:00
"sum"
2024-07-05 12:51:26 +00:00
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
2024-07-08 08:43:57 +00:00
"maxHeight": 600,
2024-07-05 12:51:26 +00:00
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "pg_locks_count{datname=~\"$datname\", tenant=\"$tenant\",hostname=~\"$hostname\", mode=~\"$mode\"} != 0",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 2,
2024-07-08 08:43:57 +00:00
"legendFormat": "{{datname}},{{mode}}",
2024-07-05 12:51:26 +00:00
"refId": "A",
"step": 2
}
],
2024-07-08 08:43:57 +00:00
"title": "Lock tables",
2024-07-05 12:51:26 +00:00
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
2024-07-05 12:51:26 +00:00
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "bytes"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 8,
2024-07-08 08:43:57 +00:00
"x": 0,
"y": 22
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"id": 14,
2024-07-05 12:51:26 +00:00
"options": {
"legend": {
"calcs": [
"mean",
"lastNotNull",
"sum"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
2024-07-08 08:43:57 +00:00
"maxHeight": 600,
2024-07-05 12:51:26 +00:00
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "pg_stat_database_tup_returned{datname=~\"$datname\", tenant=\"$tenant\",hostname=~\"$hostname\"} != 0",
2024-07-05 12:51:26 +00:00
"format": "time_series",
2024-07-08 08:43:57 +00:00
"intervalFactor": 2,
"legendFormat": "{{datname}}",
"refId": "A",
"step": 2
2024-07-05 12:51:26 +00:00
}
],
2024-07-08 08:43:57 +00:00
"title": "Return data",
2024-07-05 12:51:26 +00:00
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
2024-07-08 08:43:57 +00:00
"min": 0,
2024-07-05 12:51:26 +00:00
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
2024-07-05 12:51:26 +00:00
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "short"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 8,
2024-07-08 08:43:57 +00:00
"x": 8,
"y": 22
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"id": 4,
2024-07-05 12:51:26 +00:00
"options": {
"legend": {
"calcs": [
"lastNotNull",
2024-07-08 08:43:57 +00:00
"max"
2024-07-05 12:51:26 +00:00
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
2024-07-08 08:43:57 +00:00
"maxHeight": 600,
2024-07-05 12:51:26 +00:00
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "pg_stat_activity_count{datname=~\"$datname\", tenant=\"$tenant\",hostname=~\"$hostname\", state=~\"idle|idle in transaction|idle in transaction (aborted)\"}",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 2,
2024-07-08 08:43:57 +00:00
"legendFormat": "{{datname}}, s: {{state}}",
2024-07-05 12:51:26 +00:00
"refId": "A",
"step": 2
}
],
2024-07-08 08:43:57 +00:00
"title": "Idle sessions",
2024-07-05 12:51:26 +00:00
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
2024-07-05 12:51:26 +00:00
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "bytes"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 8,
2024-07-08 08:43:57 +00:00
"x": 16,
2024-07-05 12:51:26 +00:00
"y": 22
},
2024-07-08 08:43:57 +00:00
"id": 7,
2024-07-05 12:51:26 +00:00
"options": {
"legend": {
"calcs": [
"mean",
"lastNotNull",
"sum"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
2024-07-08 08:43:57 +00:00
"maxHeight": 600,
2024-07-05 12:51:26 +00:00
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "pg_stat_database_tup_deleted{datname=~\"$datname\", tenant=\"$tenant\",hostname=~\"$hostname\"} != 0",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{datname}}",
"refId": "A",
"step": 2
}
],
2024-07-08 08:43:57 +00:00
"title": "Delete data",
2024-07-05 12:51:26 +00:00
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
2024-07-08 08:43:57 +00:00
"decimals": 4,
2024-07-05 12:51:26 +00:00
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
2024-07-05 12:51:26 +00:00
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "percentunit"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 8,
2024-07-08 08:43:57 +00:00
"x": 0,
"y": 29
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"id": 62,
2024-07-05 12:51:26 +00:00
"options": {
"legend": {
"calcs": [
"mean",
2024-07-08 08:43:57 +00:00
"lastNotNull"
2024-07-05 12:51:26 +00:00
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
2024-07-08 08:43:57 +00:00
"maxHeight": 600,
2024-07-05 12:51:26 +00:00
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "pg_stat_database_blks_hit{tenant=\"$tenant\",hostname=\"$hostname\", datname=~\"$datname\"} / (pg_stat_database_blks_read{tenant=\"$tenant\",hostname=\"$hostname\", datname=~\"$datname\"} + pg_stat_database_blks_hit{tenant=\"$tenant\",hostname=\"$hostname\", datname=~\"$datname\"})",
2024-07-05 12:51:26 +00:00
"format": "time_series",
2024-07-08 08:43:57 +00:00
"intervalFactor": 1,
"legendFormat": "{{ datname }}",
"refId": "A"
2024-07-05 12:51:26 +00:00
}
],
2024-07-08 08:43:57 +00:00
"title": "Cache Hit Rate",
2024-07-05 12:51:26 +00:00
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
2024-07-05 12:51:26 +00:00
},
{
"color": "red",
"value": 80
}
]
},
2024-07-08 08:43:57 +00:00
"unit": "short"
2024-07-05 12:51:26 +00:00
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 8,
2024-07-08 08:43:57 +00:00
"x": 8,
"y": 29
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"id": 64,
2024-07-05 12:51:26 +00:00
"options": {
"legend": {
"calcs": [
"mean",
"lastNotNull",
2024-07-08 08:43:57 +00:00
"max",
"min"
2024-07-05 12:51:26 +00:00
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
2024-07-08 08:43:57 +00:00
"maxHeight": 600,
2024-07-05 12:51:26 +00:00
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "irate(pg_stat_bgwriter_buffers_backend{tenant=\"$tenant\",hostname=\"$hostname\"}[5m])",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "buffers_backend",
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "irate(pg_stat_bgwriter_buffers_alloc{tenant=\"$tenant\",hostname=\"$hostname\"}[5m])",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "buffers_alloc",
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "irate(pg_stat_bgwriter_buffers_backend_fsync{tenant=\"$tenant\",hostname=\"$hostname\"}[5m])",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "backend_fsync",
"refId": "C"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "irate(pg_stat_bgwriter_buffers_checkpoint{tenant=\"$tenant\",hostname=\"$hostname\"}[5m])",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "buffers_checkpoint",
"refId": "D"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "irate(pg_stat_bgwriter_buffers_clean{tenant=\"$tenant\",hostname=\"$hostname\"}[5m])",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "buffers_clean",
"refId": "E"
}
],
"title": "Buffers (bgwriter)",
2024-07-08 08:43:57 +00:00
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
2024-07-08 08:43:57 +00:00
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
2024-07-05 12:51:26 +00:00
},
2024-07-08 08:43:57 +00:00
"overrides": []
2024-07-05 12:51:26 +00:00
},
"gridPos": {
"h": 7,
"w": 8,
"x": 16,
2024-07-08 08:43:57 +00:00
"y": 29
2024-07-05 12:51:26 +00:00
},
"id": 66,
2024-07-08 08:43:57 +00:00
"options": {
"legend": {
"calcs": [
"mean",
"lastNotNull",
"sum"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "multi",
"sort": "none"
}
},
2024-07-05 12:51:26 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "irate(pg_stat_database_conflicts{tenant=\"$tenant\",hostname=\"$hostname\", datname=~\"$datname\"}[5m])",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{datname}} conflicts",
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "irate(pg_stat_database_deadlocks{tenant=\"$tenant\",hostname=\"$hostname\", datname=~\"$datname\"}[5m])",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{datname}} deadlocks",
"refId": "A"
}
],
"title": "Conflicts/Deadlocks",
2024-07-08 08:43:57 +00:00
"type": "timeseries"
2024-07-05 12:51:26 +00:00
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"description": "Total amount of data written to temporary files by queries in this database. All temporary files are counted, regardless of why the temporary file was created, and regardless of the log_temp_files setting.",
2024-07-08 08:43:57 +00:00
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
2024-07-08 08:43:57 +00:00
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bytes"
},
"overrides": []
},
2024-07-05 12:51:26 +00:00
"gridPos": {
"h": 7,
"w": 8,
"x": 0,
2024-07-08 08:43:57 +00:00
"y": 36
2024-07-05 12:51:26 +00:00
},
"id": 68,
2024-07-08 08:43:57 +00:00
"options": {
"legend": {
"calcs": [
"mean",
"lastNotNull",
"sum"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "multi",
"sort": "none"
}
},
2024-07-05 12:51:26 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "irate(pg_stat_database_temp_bytes{tenant=\"$tenant\",hostname=\"$hostname\", datname=~\"$datname\"}[5m])",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{datname}}",
"refId": "A"
}
],
"title": "Temp File (Bytes)",
2024-07-08 08:43:57 +00:00
"type": "timeseries"
2024-07-05 12:51:26 +00:00
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
2024-07-08 08:43:57 +00:00
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
2024-07-08 08:43:57 +00:00
},
{
"color": "red",
"value": 80
}
]
},
"unit": "ms"
},
"overrides": []
},
2024-07-05 12:51:26 +00:00
"gridPos": {
"h": 7,
"w": 16,
"x": 8,
2024-07-08 08:43:57 +00:00
"y": 36
2024-07-05 12:51:26 +00:00
},
"id": 70,
2024-07-08 08:43:57 +00:00
"options": {
"legend": {
"calcs": [
"mean",
"lastNotNull",
"max",
"min"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "multi",
"sort": "none"
}
},
2024-07-05 12:51:26 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "irate(pg_stat_bgwriter_checkpoint_write_time{tenant=\"$tenant\",hostname=\"$hostname\"}[5m])",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "write_time - Total amount of time that has been spent in the portion of checkpoint processing where files are written to disk.",
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"expr": "irate(pg_stat_bgwriter_checkpoint_sync_time{tenant=\"$tenant\",hostname=\"$hostname\"}[5m])",
2024-07-05 12:51:26 +00:00
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "sync_time - Total amount of time that has been spent in the portion of checkpoint processing where files are synchronized to disk.",
"refId": "A"
}
],
"title": "Checkpoint Stats",
2024-07-08 08:43:57 +00:00
"type": "timeseries"
2024-07-05 12:51:26 +00:00
}
],
"refresh": "10s",
"schemaVersion": 39,
"tags": [
"postgres",
"db",
"stats"
],
"templating": {
"list": [
{
"current": {
"selected": false,
2024-07-08 08:43:57 +00:00
"text": "Mimir",
2024-07-05 12:51:26 +00:00
"value": "mimir"
},
"hide": 0,
"includeAll": false,
"label": "datasource",
"multi": false,
"name": "DS_PROMETHEUS",
"options": [],
"query": "prometheus",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "datasource"
},
{
"auto": true,
"auto_count": 200,
"auto_min": "1s",
"current": {
"selected": false,
2024-07-08 08:43:57 +00:00
"text": "1m",
"value": "1m"
2024-07-05 12:51:26 +00:00
},
"hide": 0,
"label": "Interval",
"name": "interval",
"options": [
{
2024-07-08 08:43:57 +00:00
"selected": false,
2024-07-05 12:51:26 +00:00
"text": "auto",
"value": "$__auto_interval_interval"
},
{
"selected": false,
"text": "1s",
"value": "1s"
},
{
"selected": false,
"text": "5s",
"value": "5s"
},
{
2024-07-08 08:43:57 +00:00
"selected": true,
2024-07-05 12:51:26 +00:00
"text": "1m",
"value": "1m"
},
{
"selected": false,
"text": "5m",
"value": "5m"
},
{
"selected": false,
"text": "1h",
"value": "1h"
},
{
"selected": false,
"text": "6h",
"value": "6h"
},
{
"selected": false,
"text": "1d",
"value": "1d"
}
],
"query": "1s,5s,1m,5m,1h,6h,1d",
2024-07-08 08:43:57 +00:00
"queryValue": "",
2024-07-05 12:51:26 +00:00
"refresh": 2,
"skipUrlSync": false,
"type": "interval"
},
{
"current": {
"selected": false,
"text": "fake",
"value": "fake"
},
"definition": "label_values(tenant)",
"hide": 0,
"includeAll": true,
"label": "Tenant",
"multi": true,
"name": "tenant",
"options": [],
"query": {
"qryType": 1,
"query": "label_values(tenant)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": "buildbot",
"value": "buildbot"
2024-07-05 12:51:26 +00:00
},
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
2024-07-08 08:43:57 +00:00
"definition": "label_values(pg_up,hostname)",
2024-07-05 12:51:26 +00:00
"hide": 0,
"includeAll": false,
2024-07-08 08:43:57 +00:00
"label": "Host",
2024-07-05 12:51:26 +00:00
"multi": false,
2024-07-08 08:43:57 +00:00
"name": "hostname",
2024-07-05 12:51:26 +00:00
"options": [],
2024-07-08 08:43:57 +00:00
"query": {
"qryType": 1,
"query": "label_values(pg_up,hostname)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
2024-07-05 12:51:26 +00:00
},
"refresh": 1,
2024-07-08 08:43:57 +00:00
"regex": "",
2024-07-05 12:51:26 +00:00
"skipUrlSync": false,
"sort": 1,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"current": {
2024-07-08 08:43:57 +00:00
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
2024-07-05 12:51:26 +00:00
},
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"definition": "",
"hide": 0,
"includeAll": true,
"label": "Database",
"multi": true,
"name": "datname",
"options": [],
"query": "label_values(datname)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"current": {
2024-07-08 08:43:57 +00:00
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
2024-07-05 12:51:26 +00:00
},
"datasource": {
"type": "prometheus",
"uid": "mimir"
},
"definition": "",
"hide": 0,
"includeAll": true,
"label": "Lock table",
"multi": true,
"name": "mode",
"options": [],
"query": "label_values({mode=~\"accessexclusivelock|accesssharelock|exclusivelock|rowexclusivelock|rowsharelock|sharelock|sharerowexclusivelock|shareupdateexclusivelock\"}, mode)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "",
"title": "PostgreSQL",
"uid": "000000039",
"version": 1,
"weekStart": ""
}