Files
Lotty/infrastructure/configs/grafana/provisioning/dashboards/Postgres/overview.json
T
2026-02-12 12:47:10 +03:00

1417 lines
50 KiB
JSON

{
"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": "A PostgreSQL dashboard.",
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 4,
"links": [],
"liveNow": true,
"panels": [
{
"datasource": {
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"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": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 20,
"x": 0,
"y": 0
},
"id": 1,
"options": {
"alertThreshold": true,
"legend": {
"calcs": ["mean", "max", "min"],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "12.0.2",
"targets": [
{
"alias": "fetched",
"datasource": {
"uid": "$datasource"
},
"dsType": "prometheus",
"expr": "sum(irate(pg_stat_database_tup_fetched{datname=~\"$db\",instance=~\"$instance\"}[5m]))",
"format": "time_series",
"groupBy": [
{
"params": ["$interval"],
"type": "time"
},
{
"params": ["null"],
"type": "fill"
}
],
"intervalFactor": 2,
"legendFormat": "fetched",
"measurement": "postgresql",
"policy": "default",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": ["tup_fetched"],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": ["10s"],
"type": "non_negative_derivative"
}
]
],
"step": 120,
"tags": [
{
"key": "instance",
"operator": "=~",
"value": "/^$instance$/"
}
]
},
{
"alias": "fetched",
"datasource": {
"uid": "$datasource"
},
"dsType": "prometheus",
"expr": "sum(irate(pg_stat_database_tup_returned{datname=~\"$db\",instance=~\"$instance\"}[5m]))",
"format": "time_series",
"groupBy": [
{
"params": ["$interval"],
"type": "time"
},
{
"params": ["null"],
"type": "fill"
}
],
"intervalFactor": 2,
"legendFormat": "returned",
"measurement": "postgresql",
"policy": "default",
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": ["tup_fetched"],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": ["10s"],
"type": "non_negative_derivative"
}
]
],
"step": 120,
"tags": [
{
"key": "instance",
"operator": "=~",
"value": "/^$instance$/"
}
]
},
{
"alias": "fetched",
"datasource": {
"uid": "$datasource"
},
"dsType": "prometheus",
"expr": "sum(irate(pg_stat_database_tup_inserted{datname=~\"$db\",instance=~\"$instance\"}[5m]))",
"format": "time_series",
"groupBy": [
{
"params": ["$interval"],
"type": "time"
},
{
"params": ["null"],
"type": "fill"
}
],
"intervalFactor": 2,
"legendFormat": "inserted",
"measurement": "postgresql",
"policy": "default",
"refId": "C",
"resultFormat": "time_series",
"select": [
[
{
"params": ["tup_fetched"],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": ["10s"],
"type": "non_negative_derivative"
}
]
],
"step": 120,
"tags": [
{
"key": "instance",
"operator": "=~",
"value": "/^$instance$/"
}
]
},
{
"alias": "fetched",
"datasource": {
"uid": "$datasource"
},
"dsType": "prometheus",
"expr": "sum(irate(pg_stat_database_tup_updated{datname=~\"$db\",instance=~\"$instance\"}[5m]))",
"format": "time_series",
"groupBy": [
{
"params": ["$interval"],
"type": "time"
},
{
"params": ["null"],
"type": "fill"
}
],
"intervalFactor": 2,
"legendFormat": "updated",
"measurement": "postgresql",
"policy": "default",
"refId": "D",
"resultFormat": "time_series",
"select": [
[
{
"params": ["tup_fetched"],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": ["10s"],
"type": "non_negative_derivative"
}
]
],
"step": 120,
"tags": [
{
"key": "instance",
"operator": "=~",
"value": "/^$instance$/"
}
]
},
{
"alias": "fetched",
"datasource": {
"uid": "$datasource"
},
"dsType": "prometheus",
"expr": "sum(irate(pg_stat_database_tup_deleted{datname=~\"$db\",instance=~\"$instance\"}[5m]))",
"format": "time_series",
"groupBy": [
{
"params": ["$interval"],
"type": "time"
},
{
"params": ["null"],
"type": "fill"
}
],
"intervalFactor": 2,
"legendFormat": "deleted",
"measurement": "postgresql",
"policy": "default",
"refId": "E",
"resultFormat": "time_series",
"select": [
[
{
"params": ["tup_fetched"],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": ["10s"],
"type": "non_negative_derivative"
}
]
],
"step": 120,
"tags": [
{
"key": "instance",
"operator": "=~",
"value": "/^$instance$/"
}
]
}
],
"title": "Rows",
"type": "timeseries"
},
{
"datasource": {
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "rgb(31, 120, 193)",
"mode": "fixed"
},
"decimals": 0,
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 4,
"x": 20,
"y": 0
},
"id": 11,
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": ["mean"],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.0.2",
"targets": [
{
"datasource": {
"uid": "$datasource"
},
"dsType": "prometheus",
"expr": "sum(irate(pg_stat_database_xact_commit{datname=~\"$db\",instance=~\"$instance\"}[5m])) + sum(irate(pg_stat_database_xact_rollback{datname=~\"$db\",instance=~\"$instance\"}[5m]))",
"format": "time_series",
"groupBy": [
{
"params": ["$interval"],
"type": "time"
},
{
"params": ["null"],
"type": "fill"
}
],
"intervalFactor": 2,
"measurement": "postgresql",
"policy": "default",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": ["xact_commit"],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": ["10s"],
"type": "non_negative_derivative"
}
]
],
"step": 1800,
"tags": [
{
"key": "instance",
"operator": "=~",
"value": "/^$instance$/"
}
]
}
],
"title": "QPS",
"transparent": true,
"type": "stat"
},
{
"datasource": {
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "rgb(31, 120, 193)",
"mode": "fixed"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 0,
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 24,
"x": 0,
"y": 7
},
"id": 14,
"maxDataPoints": 100,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "12.0.2",
"targets": [
{
"datasource": {
"uid": "$datasource"
},
"dsType": "prometheus",
"expr": "sum(irate(pg_stat_database_xact_commit{datname=~\"$db\",instance=~\"$instance\"}[5m])) + sum(irate(pg_stat_database_xact_rollback{datname=~\"$db\",instance=~\"$instance\"}[5m]))",
"format": "time_series",
"groupBy": [
{
"params": ["$interval"],
"type": "time"
},
{
"params": ["null"],
"type": "fill"
}
],
"intervalFactor": 2,
"measurement": "postgresql",
"policy": "default",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": ["xact_commit"],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": ["10s"],
"type": "non_negative_derivative"
}
]
],
"step": 1800,
"tags": [
{
"key": "instance",
"operator": "=~",
"value": "/^$instance$/"
}
]
}
],
"title": "QPS",
"type": "timeseries"
},
{
"datasource": {
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"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": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": [
{
"matcher": {
"id": "byValue",
"options": {
"op": "gte",
"reducer": "allIsZero",
"value": 0
}
},
"properties": [
{
"id": "custom.hideFrom",
"value": {
"legend": true,
"tooltip": true,
"viz": false
}
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 16
},
"id": 2,
"options": {
"alertThreshold": true,
"legend": {
"calcs": ["mean", "max", "min"],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "12.0.2",
"targets": [
{
"alias": "Buffers Allocated",
"datasource": {
"uid": "$datasource"
},
"dsType": "prometheus",
"expr": "irate(pg_stat_bgwriter_buffers_alloc{instance=~'$instance'}[5m])",
"format": "time_series",
"groupBy": [
{
"params": ["$interval"],
"type": "time"
},
{
"params": ["null"],
"type": "fill"
}
],
"intervalFactor": 2,
"legendFormat": "buffers_alloc",
"measurement": "postgresql",
"policy": "default",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": ["buffers_alloc"],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [],
"type": "difference"
}
]
],
"step": 240,
"tags": [
{
"key": "instance",
"operator": "=~",
"value": "/^$instance$/"
}
]
},
{
"alias": "Buffers Allocated",
"datasource": {
"uid": "$datasource"
},
"dsType": "prometheus",
"expr": "irate(pg_stat_bgwriter_buffers_backend_fsync{instance=~'$instance'}[5m])",
"format": "time_series",
"groupBy": [
{
"params": ["$interval"],
"type": "time"
},
{
"params": ["null"],
"type": "fill"
}
],
"intervalFactor": 2,
"legendFormat": "buffers_backend_fsync",
"measurement": "postgresql",
"policy": "default",
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": ["buffers_alloc"],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [],
"type": "difference"
}
]
],
"step": 240,
"tags": [
{
"key": "instance",
"operator": "=~",
"value": "/^$instance$/"
}
]
},
{
"alias": "Buffers Allocated",
"datasource": {
"uid": "$datasource"
},
"dsType": "prometheus",
"expr": "irate(pg_stat_bgwriter_buffers_backend{instance=~'$instance'}[5m])",
"format": "time_series",
"groupBy": [
{
"params": ["$interval"],
"type": "time"
},
{
"params": ["null"],
"type": "fill"
}
],
"intervalFactor": 2,
"legendFormat": "buffers_backend",
"measurement": "postgresql",
"policy": "default",
"refId": "C",
"resultFormat": "time_series",
"select": [
[
{
"params": ["buffers_alloc"],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [],
"type": "difference"
}
]
],
"step": 240,
"tags": [
{
"key": "instance",
"operator": "=~",
"value": "/^$instance$/"
}
]
},
{
"alias": "Buffers Allocated",
"datasource": {
"uid": "$datasource"
},
"dsType": "prometheus",
"expr": "irate(pg_stat_bgwriter_buffers_clean{instance=~'$instance'}[5m])",
"format": "time_series",
"groupBy": [
{
"params": ["$interval"],
"type": "time"
},
{
"params": ["null"],
"type": "fill"
}
],
"intervalFactor": 2,
"legendFormat": "buffers_clean",
"measurement": "postgresql",
"policy": "default",
"refId": "D",
"resultFormat": "time_series",
"select": [
[
{
"params": ["buffers_alloc"],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [],
"type": "difference"
}
]
],
"step": 240,
"tags": [
{
"key": "instance",
"operator": "=~",
"value": "/^$instance$/"
}
]
},
{
"alias": "Buffers Allocated",
"datasource": {
"uid": "$datasource"
},
"dsType": "prometheus",
"expr": "irate(pg_stat_bgwriter_buffers_checkpoint{instance=~'$instance'}[5m])",
"format": "time_series",
"groupBy": [
{
"params": ["$interval"],
"type": "time"
},
{
"params": ["null"],
"type": "fill"
}
],
"intervalFactor": 2,
"legendFormat": "buffers_checkpoint",
"measurement": "postgresql",
"policy": "default",
"refId": "E",
"resultFormat": "time_series",
"select": [
[
{
"params": ["buffers_alloc"],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [],
"type": "difference"
}
]
],
"step": 240,
"tags": [
{
"key": "instance",
"operator": "=~",
"value": "/^$instance$/"
}
]
}
],
"title": "Buffers",
"type": "timeseries"
},
{
"datasource": {
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 16
},
"id": 3,
"options": {
"alertThreshold": true,
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "12.0.2",
"targets": [
{
"alias": "conflicts",
"datasource": {
"uid": "$datasource"
},
"dsType": "prometheus",
"expr": "sum(rate(pg_stat_database_deadlocks{datname=~\"$db\",instance=~\"$instance\"}[5m]))",
"format": "time_series",
"groupBy": [
{
"params": ["$interval"],
"type": "time"
},
{
"params": ["null"],
"type": "fill"
}
],
"intervalFactor": 2,
"legendFormat": "deadlocks",
"measurement": "postgresql",
"policy": "default",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": ["conflicts"],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [],
"type": "difference"
}
]
],
"step": 240,
"tags": [
{
"key": "instance",
"operator": "=~",
"value": "/^$instance$/"
}
]
},
{
"alias": "deadlocks",
"datasource": {
"uid": "$datasource"
},
"dsType": "prometheus",
"expr": "sum(rate(pg_stat_database_conflicts{datname=~\"$db\",instance=~\"$instance\"}[5m]))",
"format": "time_series",
"groupBy": [
{
"params": ["$interval"],
"type": "time"
},
{
"params": ["null"],
"type": "fill"
}
],
"intervalFactor": 2,
"legendFormat": "conflicts",
"measurement": "postgresql",
"policy": "default",
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": ["deadlocks"],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [],
"type": "difference"
}
]
],
"step": 240,
"tags": [
{
"key": "instance",
"operator": "=~",
"value": "/^$instance$/"
}
]
}
],
"title": "Conflicts/Deadlocks",
"type": "timeseries"
},
{
"datasource": {
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percentunit"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 23
},
"id": 12,
"options": {
"alertThreshold": true,
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "12.0.2",
"targets": [
{
"datasource": {
"uid": "$datasource"
},
"expr": "sum(pg_stat_database_blks_hit{datname=~\"$db\",instance=~\"$instance\"}) / (sum(pg_stat_database_blks_hit{datname=~\"$db\",instance=~\"$instance\"}) + sum(pg_stat_database_blks_read{datname=~\"$db\",instance=~\"$instance\"}))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "cache hit rate",
"refId": "A",
"step": 240
}
],
"title": "Cache hit ratio",
"type": "timeseries"
},
{
"datasource": {
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 23
},
"id": 13,
"options": {
"alertThreshold": true,
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "12.0.2",
"targets": [
{
"datasource": {
"uid": "$datasource"
},
"expr": "pg_stat_database_numbackends{datname=~\"$db\",instance=~\"$instance\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{__name__}}",
"refId": "A",
"step": 240
}
],
"title": "Number of active connections",
"type": "timeseries"
}
],
"preload": false,
"refresh": "5s",
"schemaVersion": 41,
"tags": ["postgres"],
"templating": {
"list": [
{
"includeAll": false,
"label": "Data Source",
"name": "datasource",
"options": [],
"query": "prometheus",
"refresh": 1,
"regex": "",
"type": "datasource"
},
{
"allValue": ".*",
"datasource": "$datasource",
"definition": "",
"includeAll": true,
"label": "Instance",
"name": "instance",
"options": [],
"query": "label_values(up{job=~\"postgres.*\"},instance)",
"refresh": 1,
"regex": "",
"type": "query"
},
{
"allValue": ".*",
"datasource": "$datasource",
"definition": "label_values(pg_stat_database_tup_fetched{instance=~\"$instance\",datname!~\"template.*|postgres\"},datname)",
"includeAll": true,
"label": "Database",
"name": "db",
"options": [],
"query": "label_values(pg_stat_database_tup_fetched{instance=~\"$instance\",datname!~\"template.*|postgres\"},datname)",
"refresh": 1,
"regex": "",
"type": "query"
},
{
"datasource": "$datasource",
"definition": "label_values(pg_up, job)",
"includeAll": false,
"label": "Job",
"name": "job",
"options": [],
"query": "label_values(pg_up, job)",
"refresh": 1,
"regex": "",
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "Overview",
"uid": "postgres-overview",
"version": 2,
"weekStart": "monday"
}