topfans/backend/scripts/loadgen/monitor/grafana-dashboards/03-postgres.json

27 lines
598 B
JSON

{
"title": "Load Test - Postgres Health",
"panels": [
{
"title": "Active Connections",
"type": "graph",
"targets": [
{ "expr": "pg_stat_activity_count" }
]
},
{
"title": "Cache Hit Ratio",
"type": "graph",
"targets": [
{ "expr": "rate(pg_stat_database_blks_hit[5m]) / (rate(pg_stat_database_blks_hit[5m]) + rate(pg_stat_database_blks_read[5m]))" }
]
},
{
"title": "Longest Transaction",
"type": "graph",
"targets": [
{ "expr": "pg_stat_activity_max_tx_duration" }
]
}
]
}