需要安装postgresql10-contrib
在/var/lib/pgsql/10/data/postgresql.conf最后添加
shared_preload_libraries = 'pg_stat_statements'
pg_stat_statements.max = 10000
pg_stat_statements.track = all
在/var/lib/pgsql/10/data/pg_hba.conf添加
host all postgres 127.0.0.1/32 trust
host all postgres ::1/128 trust
创建extension
psql
CREATE EXTENSION pg_buffercache;
\c zabbix
create extension pg_buffercache;
create extension pg_stat_statements;
\c zabbix
create extension pg_stat_statements;
# EXTERNAL EXTENSIONS #
UserParameter=pgsql.buffercache.clear[*],psql -qAtX $1 -c "select count(*) from pg_buffercache where not isdirty"
UserParameter=pgsql.buffercache.dirty[*],psql -qAtX $1 -c "select count(*) from pg_buffercache where isdirty"
UserParameter=pgsql.buffercache.used[*],psql -qAtX $1 -c "select count(*) from pg_buffercache where reldatabase is not null"
UserParameter=pgsql.buffercache.total[*],psql -qAtX $1 -c "select count(*) from pg_buffercache"
# SIMPLE DISCOVERY #
UserParameter=pgsql.db.discovery[*],/bin/echo -n '{"data":['; for db in $(psql -qAtX $1 -c "select datname from pg_database where not datistemplate and datallowconn and datname!='postgres'"); do /bin/echo -n "{\"{#DBNAME}\": \"$db\"},"; done |sed -e 's:,$::'; /bin/echo -n ']}'
UserParameter=pgsql.table.discovery[*],/bin/echo -n '{"data":['; for table in $(psql -qAtX -F. $1 -c "select n.nspname,c.relname from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','s','') and n.nspname not in ('^pg_toast','information_schema','pg_catalog')"); do /bin/echo -n "{\"{#TABLENAME}\": \"$table\"},"; done |sed -e 's:\},$:\}:'; /bin/echo -n ']}'
UserParameter=pgsql.streaming.discovery[*],/bin/echo -n '{"data":['; for replica in $(psql -qAtX $1 -c "select client_addr from pg_stat_replication"); do /bin/echo -n "{\"{#HOTSTANDBY}\": \"$replica\"},"; done |sed -e 's:,$::'; /bin/echo -n ']}'
# GENERAL INFORMATION #
UserParameter=pgsql.ping[*],/bin/echo -e "\\\timing \n select 1" | psql -qAtX $1 | tail -1 | sed 's/:/ /g;s/:/ /g' | cut -d' ' -f2
UserParameter=pgsql.uptime[*],psql -qAtX $1 -c "select date_part('epoch', now() - pg_postmaster_start_time())::int"
UserParameter=pgsql.cache.hit[*],psql -qAtX $1 -c "select round(sum(blks_hit)*100/sum(blks_hit+blks_read), 2) from pg_stat_database"
UserParameter=pgsql.version[*],psql -qAtX $1 -c "SELECT version() AS pg_version"
# OTHER INFORMATION #
UserParameter=pgsql.table.tuples[*],psql -qAtX $1 -c "select count(*) from $2"
UserParameter=pgsql.setting[*],psql -qAtX $1 -c "select current_setting('$2')"
UserParameter=pgsql.trigger[*],psql -qAtX $1 -c "select count(*) from pg_trigger where tgenabled='O' and tgname='$2'"
UserParameter=pgsql.wal.write[*],psql -qAtX $1 -c "select pg_xlog_location_diff(pg_current_xlog_location(),'0/00000000')"
UserParameter=pgsql.wal.count[*],psql -qAtX $1 -c "select count(*) from pg_ls_dir('pg_wal')"
# BACKGROUND WRITER STATS #
UserParameter=pgsql.bgwriter.checkpoints_timed[*],psql -qAtX $1 -c "select checkpoints_timed from pg_stat_bgwriter"
UserParameter=pgsql.bgwriter.checkpoints_req[*],psql -qAtX $1 -c "select checkpoints_req from pg_stat_bgwriter"
UserParameter=pgsql.bgwriter.checkpoint_write_time[*],psql -qAtX $1 -c "select checkpoint_write_time from pg_stat_bgwriter"
UserParameter=pgsql.bgwriter.checkpoint_sync_time[*],psql -qAtX $1 -c "select checkpoint_sync_time from pg_stat_bgwriter"
UserParameter=pgsql.bgwriter.buffers_checkpoint[*],psql -qAtX $1 -c "select buffers_checkpoint from pg_stat_bgwriter"
UserParameter=pgsql.bgwriter.buffers_clean[*],psql -qAtX $1 -c "select buffers_clean from pg_stat_bgwriter"
UserParameter=pgsql.bgwriter.maxwritten_clean[*],psql -qAtX $1 -c "select maxwritten_clean from pg_stat_bgwriter"
UserParameter=pgsql.bgwriter.buffers_backend[*],psql -qAtX $1 -c "select buffers_backend from pg_stat_bgwriter"
UserParameter=pgsql.bgwriter.buffers_backend_fsync[*],psql -qAtX $1 -c "select buffers_backend_fsync from pg_stat_bgwriter"
UserParameter=pgsql.bgwriter.buffers_alloc[*],psql -qAtX $1 -c "select buffers_alloc from pg_stat_bgwriter"
# CONNECTIONS #
UserParameter=pgsql.connections.active[*],psql -qAtX $1 -c "select count(*) from pg_stat_activity where state = 'active'"
UserParameter=pgsql.connections.idle[*],psql -qAtX $1 -c "select count(*) from pg_stat_activity where state = 'idle'"
UserParameter=pgsql.connections.idle_in_transaction[*],psql -qAtX $1 -c "select count(*) from pg_stat_activity where state = 'idle in transaction'"
UserParameter=pgsql.connections.total[*],psql -qAtX $1 -c "select count(*) from pg_stat_activity"
UserParameter=pgsql.connections.total_pct[*],psql -qAtX $1 -c "select count(*)*100/(select current_setting('max_connections')::int) from pg_stat_activity"
UserParameter=pgsql.connections.waiting[*],psql -qAtX $1 -c "select count (*) from pg_stat_activity where wait_event IS NOT NULL"
UserParameter=pgsql.connections.prepared[*],psql -qAtX $1 -c "select count(*) from pg_prepared_xacts"
# TRANSACTIONS #
UserParameter=pgsql.transactions.idle[*],psql -qAtX $1 -c "select coalesce(extract(epoch from max(age(now(), query_start))), 0) from pg_stat_activity where state='idle in transaction'"
UserParameter=pgsql.transactions.active[*],psql -qAtX $1 -c "select coalesce(extract(epoch from max(age(now(), query_start))), 0) from pg_stat_activity where state <> 'idle in transaction' and state <> 'idle'"
UserParameter=pgsql.transactions.waiting[*],psql -qAtX $1 -c "select coalesce(extract(epoch from max(age(now(), query_start))), 0) from pg_stat_activity where wait_event IS NOT NULL"
UserParameter=pgsql.transactions.prepared[*],psql -qAtX $1 -c "select coalesce(extract(epoch from max(age(now(), prepared))), 0) from pg_prepared_xacts"
UserParameter=pgsql.pgstatstatements.avg_query_time[*],psql -qAtX $1 -c "select round((sum(total_time) / sum(calls))::numeric,2) from pg_stat_statements"
# SUMMARY DATABASE STATS #
UserParameter=pgsql.dbstat.sum.numbackends[*],psql -qAtX $1 -c "select sum(numbackends) from pg_stat_database"
UserParameter=pgsql.dbstat.sum.xact_commit[*],psql -qAtX $1 -c "select sum(xact_commit) from pg_stat_database"
UserParameter=pgsql.dbstat.sum.xact_rollback[*],psql -qAtX $1 -c "select sum(xact_rollback) from pg_stat_database"
UserParameter=pgsql.dbstat.sum.blks_read[*],psql -qAtX $1 -c "select sum(blks_read) from pg_stat_database"
UserParameter=pgsql.dbstat.sum.blks_hit[*],psql -qAtX $1 -c "select sum(blks_hit) from pg_stat_database"
UserParameter=pgsql.dbstat.sum.tup_returned[*],psql -qAtX $1 -c "select sum(tup_returned) from pg_stat_database"
UserParameter=pgsql.dbstat.sum.tup_fetched[*],psql -qAtX $1 -c "select sum(tup_fetched) from pg_stat_database"
UserParameter=pgsql.dbstat.sum.tup_inserted[*],psql -qAtX $1 -c "select sum(tup_inserted) from pg_stat_database"
UserParameter=pgsql.dbstat.sum.tup_updated[*],psql -qAtX $1 -c "select sum(tup_updated) from pg_stat_database"
UserParameter=pgsql.dbstat.sum.tup_deleted[*],psql -qAtX $1 -c "select sum(tup_deleted) from pg_stat_database"
UserParameter=pgsql.dbstat.sum.conflicts[*],psql -qAtX $1 -c "select sum(conflicts) from pg_stat_database"
UserParameter=pgsql.dbstat.sum.temp_files[*],psql -qAtX $1 -c "select sum(temp_files) from pg_stat_database"
UserParameter=pgsql.dbstat.sum.temp_bytes[*],psql -qAtX $1 -c "select sum(temp_bytes) from pg_stat_database"
UserParameter=pgsql.dbstat.sum.deadlocks[*],psql -qAtX $1 -c "select sum(deadlocks) from pg_stat_database"
# SPECIFIED DATABASE STATS - TODO: CREATE LLD #
UserParameter=pgsql.dbstat.numbackends[*],psql -qAtX $1 -c "select numbackends from pg_stat_database where datname = '$2'"
UserParameter=pgsql.dbstat.xact_commit[*],psql -qAtX $1 -c "select xact_commit from pg_stat_database where datname = '$2'"
UserParameter=pgsql.dbstat.xact_rollback[*],psql -qAtX $1 -c "select xact_rollback from pg_stat_database where datname = '$2'"
UserParameter=pgsql.dbstat.blks_read[*],psql -qAtX $1 -c "select blks_read from pg_stat_database where datname = '$2'"
UserParameter=pgsql.dbstat.blks_hit[*],psql -qAtX $1 -c "select blks_hit from pg_stat_database where datname = '$2'"
UserParameter=pgsql.dbstat.tup_returned[*],psql -qAtX $1 -c "select tup_returned from pg_stat_database where datname = '$2'"
UserParameter=pgsql.dbstat.tup_fetched[*],psql -qAtX $1 -c "select tup_fetched from pg_stat_database where datname = '$2'"
UserParameter=pgsql.dbstat.tup_inserted[*],psql -qAtX $1 -c "select tup_inserted from pg_stat_database where datname = '$2'"
UserParameter=pgsql.dbstat.tup_updated[*],psql -qAtX $1 -c "select tup_updated from pg_stat_database where datname = '$2'"
UserParameter=pgsql.dbstat.tup_deleted[*],psql -qAtX $1 -c "select tup_deleted from pg_stat_database where datname = '$2'"
UserParameter=pgsql.dbstat.conflicts[*],psql -qAtX $1 -c "select conflicts from pg_stat_database where datname = '$2'"
UserParameter=pgsql.dbstat.temp_files[*],psql -qAtX $1 -c "select temp_files from pg_stat_database where datname = '$2'"
UserParameter=pgsql.dbstat.temp_bytes[*],psql -qAtX $1 -c "select temp_bytes from pg_stat_database where datname = '$2'"
UserParameter=pgsql.dbstat.deadlocks[*],psql -qAtX $1 -c "select deadlocks from pg_stat_database where datname = '$2'"
# DATABASE/TABLE/INDEXES SIZE - TODO: CREATE LLD #
UserParameter=pgsql.db.size[*],psql -qAtX $1 -c "select pg_database_size('$2')"
UserParameter=pgsql.table.size[*],psql -qAtX $1 -c "select pg_relation_size('$2')"
UserParameter=pgsql.index.size[*],psql -qAtX $1 -c "select pg_total_relation_size('$2') - pg_relation_size('$2')"
# TABLE STATS #
UserParameter=pgsql.table.stat.heap_blks_read[*],psql -qAtX $1 -c "select coalesce(heap_blks_read,0) from pg_statio_user_tables where (schemaname || '.' || relname) = '$2'"
UserParameter=pgsql.table.stat.heap_blks_hit[*],psql -qAtX $1 -c "select coalesce(heap_blks_hit,0) from pg_statio_user_tables where (schemaname || '.' || relname) = '$2'"
UserParameter=pgsql.table.stat.idx_blks_read[*],psql -qAtX $1 -c "select coalesce(idx_blks_read,0) from pg_statio_user_tables where (schemaname || '.' || relname) = '$2'"
UserParameter=pgsql.table.stat.idx_blks_hit[*],psql -qAtX $1 -c "select coalesce(idx_blks_hit,0) from pg_statio_user_tables where (schemaname || '.' || relname) = '$2'"
UserParameter=pgsql.table.stat.toast_blks_read[*],psql -qAtX $1 -c "select coalesce(toast_blks_read,0) from pg_statio_user_tables where (schemaname || '.' || relname) = '$2'"
UserParameter=pgsql.table.stat.toast_blks_hit[*],psql -qAtX $1 -c "select coalesce(toast_blks_hit,0) from pg_statio_user_tables where (schemaname || '.' || relname) = '$2'"
UserParameter=pgsql.table.stat.tidx_blks_read[*],psql -qAtX $1 -c "select coalesce(tidx_blks_read,0) from pg_statio_user_tables where (schemaname || '.' || relname) = '$2'"
UserParameter=pgsql.table.stat.tidx_blks_hit[*],psql -qAtX $1 -c "select coalesce(tidx_blks_hit,0) from pg_statio_user_tables where (schemaname || '.' || relname) = '$2'"
UserParameter=pgsql.table.stat.seq_scan[*],psql -qAtX $1 -c "select coalesce(seq_scan,0) from pg_stat_user_tables where (schemaname || '.' || relname) = '$2'"
UserParameter=pgsql.table.stat.seq_tup_read[*],psql -qAtX $1 -c "select coalesce(seq_tup_read,0) from pg_stat_user_tables where (schemaname || '.' || relname) = '$2'"
UserParameter=pgsql.table.stat.idx_scan[*],psql -qAtX $1 -c "select coalesce(idx_scan,0) from pg_stat_user_tables where (schemaname || '.' || relname) = '$2'"
UserParameter=pgsql.table.stat.idx_tup_fetch[*],psql -qAtX $1 -c "select coalesce(idx_tup_fetch,0) from pg_stat_user_tables where (schemaname || '.' || relname) = '$2'"
UserParameter=pgsql.table.stat.n_tup_ins[*],psql -qAtX $1 -c "select coalesce(n_tup_ins,0) from pg_stat_user_tables where (schemaname || '.' || relname) = '$2'"
UserParameter=pgsql.table.stat.n_tup_del[*],psql -qAtX $1 -c "select coalesce(n_tup_del,0) from pg_stat_user_tables where (schemaname || '.' || relname) = '$2'"
UserParameter=pgsql.table.stat.n_tup_upd[*],psql -qAtX $1 -c "select coalesce(n_tup_upd,0) from pg_stat_user_tables where (schemaname || '.' || relname) = '$2'"
UserParameter=pgsql.table.stat.n_tup_hot_upd[*],psql -qAtX $1 -c "select coalesce(n_tup_hot_upd,0) from pg_stat_user_tables where (schemaname || '.' || relname) = '$2'"
UserParameter=pgsql.table.stat.n_live_tup[*],psql -qAtX $1 -c "select coalesce(n_live_tup,0) from pg_stat_user_tables where (schemaname || '.' || relname) = '$2'"
UserParameter=pgsql.table.stat.n_dead_tup[*],psql -qAtX $1 -c "select coalesce(n_dead_tup,0) from pg_stat_user_tables where (schemaname || '.' || relname) = '$2'"
UserParameter=pgsql.table.stat.vacuum_count[*],psql -qAtX $1 -c "select coalesce(vacuum_count,0) from pg_stat_user_tables where (schemaname || '.' || relname) = '$2'"
UserParameter=pgsql.table.stat.autovacuum_count[*],psql -qAtX $1 -c "select coalesce(autovacuum_count,0) from pg_stat_user_tables where (schemaname || '.' || relname) = '$2'"
UserParameter=pgsql.table.stat.analyze_count[*],psql -qAtX $1 -c "select coalesce(analyze_count,0) from pg_stat_user_tables where (schemaname || '.' || relname) = '$2'"
UserParameter=pgsql.table.stat.autoanalyze_count[*],psql -qAtX $1 -c "select coalesce(autoanalyze_count,0) from pg_stat_user_tables where (schemaname || '.' || relname) = '$2'"
# STREAMING REPLICATION #
UserParameter=pgsql.streaming.count[*],psql -qAtX $1 -c "select count(*) from pg_stat_replication"
UserParameter=pgsql.streaming.state[*],psql -qAtX $1 -c "select pg_is_in_recovery()"
#UserParameter=pgsql.streaming.lag.bytes[*],psql -qAtX $1 -c "select greatest(0,pg_xlog_location_diff(pg_current_xlog_location(), replay_location)) from pg_stat_replication where client_addr = '$2'"
UserParameter=pgsql.streaming.lag.bytes[*],psql -qAtX $1 -c "select pg_wal_lsn_diff(sent_lsn,replay_lsn) from pg_stat_replication where client_addr = '$2';"
UserParameter=pgsql.streaming.lag.seconds[*],psql -qAtX -h $2 $1 -c "select extract(epoch from now() - pg_last_xact_replay_timestamp())"
3.4
2018-01-17T07:06:43Z
EQUINIX.TESTE
PostgreSQL Simple Template
PostgreSQL Simple Template
EQUINIX.TESTE
Background Writer
Buffers & Caches
Configuration
Connections
Databases
Database Status
General Information
Operations
PostgreSQL
Streaming Replication
Table Info
Transactions
Write-Ahead Logging
-
buffers allocated
7
pgsql.bgwriter.buffers_alloc[{$PG_CONNINFO}]
60
30d
180d
0
3
B
0
0
0
0
0
Background Writer
10
1
8192
-
buffers written directly by a backend
7
pgsql.bgwriter.buffers_backend[{$PG_CONNINFO}]
60
30d
180d
0
3
B
0
0
0
0
0
Background Writer
10
1
8192
-
times a backend had to execute its own fsync
7
pgsql.bgwriter.buffers_backend_fsync[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
0
Background Writer
9
-
buffers written during checkpoints
7
pgsql.bgwriter.buffers_checkpoint[{$PG_CONNINFO}]
60
30d
180d
0
3
B
0
0
0
0
0
Background Writer
10
1
8192
-
buffers written by the bgwriter
7
pgsql.bgwriter.buffers_clean[{$PG_CONNINFO}]
60
30d
180d
0
3
B
0
0
0
0
0
Background Writer
10
1
8192
-
required checkpoints
7
pgsql.bgwriter.checkpoints_req[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
0
Background Writer
9
-
checkpoints by timeout
7
pgsql.bgwriter.checkpoints_timed[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
0
Background Writer
9
-
sync time
7
pgsql.bgwriter.checkpoint_sync_time[{$PG_CONNINFO}]
30
30d
180d
0
3
ms
0
0
0
0
0
Background Writer
9
-
write time
7
pgsql.bgwriter.checkpoint_write_time[{$PG_CONNINFO}]
60
30d
180d
0
3
ms
0
0
0
0
0
Background Writer
9
-
max written
7
pgsql.bgwriter.maxwritten_clean[{$PG_CONNINFO}]
60
30d
180d
0
3
ms
0
0
0
0
0
Background Writer
9
-
clear buffers
7
pgsql.buffercache.clear[{$PG_CONNINFO}]
60
30d
180d
0
3
B
0
0
0
0
0
Buffers & Caches
1
8192
-
dirty buffers
7
pgsql.buffercache.dirty[{$PG_CONNINFO}]
60
30d
180d
0
3
B
0
0
0
0
0
Buffers & Caches
1
8192
-
total buffers
7
pgsql.buffercache.total[{$PG_CONNINFO}]
60
30d
180d
0
3
B
0
0
0
0
0
Buffers & Caches
1
8192
-
used buffers
7
pgsql.buffercache.used[{$PG_CONNINFO}]
60
30d
180d
0
3
B
0
0
0
0
0
Buffers & Caches
1
8192
-
cache hit ratio
7
pgsql.cache.hit[{$PG_CONNINFO}]
60
30d
180d
0
0
%
0
0
0
0
Check cache hit ratio in %.
0
Buffers & Caches
-
number of active connections
7
pgsql.connections.active[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
Total count of active clients who connected to the PostgreSQL service and performing work.
0
Connections
-
number of idle connections
7
pgsql.connections.idle[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
Total count of idle clients connected to the PostgreSQL service.
0
Connections
-
number of idle in transaction connections
7
pgsql.connections.idle_in_transaction[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
Total count of idle clients who connected to the PostgreSQL service and have unfinished transaction. This client must be disconnected.
0
Connections
-
number of prepared connections
7
pgsql.connections.prepared[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
Total count of clients connected to the PostgreSQL service and blocked by others clients.
0
Connections
-
total connections
7
pgsql.connections.total[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
Total count of clients connected to the PostgreSQL service.
0
Connections
-
total connections (%)
7
pgsql.connections.total_pct[{$PG_CONNINFO}]
60
30d
180d
0
3
%
0
0
0
0
Connections percentage of the maximum number of allowed connections (max_connections).
0
Connections
-
number of waiting connections
7
pgsql.connections.waiting[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
Total count of clients connected to the PostgreSQL service and blocked by others clients.
0
Connections
-
blocks hit per second
7
pgsql.dbstat.sum.blks_hit[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
Number of times disk blocks were found already in the buffer cache, so that a read was not necessary (this only includes hits in the PostgreSQL buffer cache, not the operating system's file system cache)
0
Database Status
10
-
blocks read per second
7
pgsql.dbstat.sum.blks_read[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
Number of disk blocks read
0
Database Status
10
-
registered conflicts
7
pgsql.dbstat.sum.conflicts[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
Number of queries canceled due to conflicts with recovery in this database. (Conflicts occur only on standby servers; see pg_stat_database_conflicts for details.).
0
Database Status
9
-
registered deadlocks
7
pgsql.dbstat.sum.deadlocks[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
Number of deadlocks detected.
0
Database Status
9
-
temp_bytes written
7
pgsql.dbstat.sum.temp_bytes[{$PG_CONNINFO}]
60
30d
180d
0
3
b
0
0
0
0
Total amount of data written to temporary files by queries. All temporary files are counted, regardless of why the temporary file was created, and regardless of the log_temp_files setting.
0
Database Status
9
-
temp_files created
7
pgsql.dbstat.sum.temp_files[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
Number of temporary files created by queries. All temporary files are counted, regardless of why the temporary file was created (e.g., sorting or hashing), and regardless of the log_temp_files setting.
0
Database Status
9
-
tuples deleted per second
7
pgsql.dbstat.sum.tup_deleted[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
Number of rows deleted by queries.
0
Database Status
10
-
tuples fetched per second
7
pgsql.dbstat.sum.tup_fetched[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
Number of rows fetched by queries.
0
Database Status
10
-
tuples inserted per second
7
pgsql.dbstat.sum.tup_inserted[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
Number of rows inserted by queries.
0
Database Status
10
-
tuples returned per second
7
pgsql.dbstat.sum.tup_returned[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
Number of rows returned by queries.
0
Database Status
10
-
tuples updated per second
7
pgsql.dbstat.sum.tup_updated[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
Number of rows updated by queries.
0
Database Status
10
-
commits per second
7
pgsql.dbstat.sum.xact_commit[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
Number of transactions that have been committed.
0
Database Status
10
-
rollbacks per second
7
pgsql.dbstat.sum.xact_rollback[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
Number of transactions that have been rolled back.
0
Database Status
10
-
pg_stat_statements: average query time
7
pgsql.pgstatstatements.avg_query_time[{$PG_CONNINFO}]
60
30d
180d
0
0
ms
0
0
0
0
0
Operations
-
ping
7
pgsql.ping[{$PG_CONNINFO}]
30
30d
180d
0
0
ms
0
0
0
0
0
Connections
-
$2
7
pgsql.setting[{$PG_CONNINFO},fsync]
30
30d
0
0
1
0
0
0
0
http://www.postgresql.org/docs/9.2/static/runtime-config-wal.html#GUC-FSYNC
0
Configuration
-
$2
7
pgsql.setting[{$PG_CONNINFO},full_page_writes]
60
30d
0
0
1
0
0
0
0
http://www.postgresql.org/docs/9.2/static/runtime-config-wal.html#GUC-FULL-PAGE-WRITES
0
Configuration
-
$2
7
pgsql.setting[{$PG_CONNINFO},synchronous_commit]
60
30d
0
0
1
0
0
0
0
http://www.postgresql.org/docs/9.2/static/runtime-config-wal.html#GUC-SYNCHRONOUS-COMMIT
0
Configuration
-
stand-by count
7
pgsql.streaming.count[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
Streaming replication stand-bys count.
0
Streaming Replication
-
recovery state
7
pgsql.streaming.state[{$PG_CONNINFO}]
60
30d
0
0
1
0
0
0
0
Streaming replication state: t (true) if service is in recovery mode, and f (false) if server in master mode.
0
Streaming Replication
-
current max active transaction time
7
pgsql.transactions.active[{$PG_CONNINFO}]
60
30d
180d
0
0
s
0
0
0
0
0
Transactions
-
current max idle transaction time
7
pgsql.transactions.idle[{$PG_CONNINFO}]
60
30d
180d
0
0
s
0
0
0
0
0
Transactions
-
current max prepared transaction time
7
pgsql.transactions.prepared[{$PG_CONNINFO}]
60
30d
180d
0
0
s
0
0
0
0
0
Transactions
-
current max waiting transaction time
7
pgsql.transactions.waiting[{$PG_CONNINFO}]
60
30d
180d
0
0
s
0
0
0
0
0
Transactions
-
service uptime
7
pgsql.uptime[{$PG_CONNINFO}]
30
30d
180d
0
3
uptime
0
0
0
0
0
General Information
-
postgresql version
7
pgsql.version[{$PG_CONNINFO}]
3600
30d
0
0
4
0
0
0
0
Connections percentage of the maximum number of allowed connections (max_connections).
0
General Information
-
WAL segments count
7
pgsql.wal.count[{$PG_CONNINFO}]
60
30d
180d
0
3
0
0
0
0
Number of WAL segments stored in pg_xlog directory.
0
Write-Ahead Logging
-
WAL write
7
pgsql.wal.write[{$PG_CONNINFO}]
60
30d
180d
0
3
b
0
0
0
0
WAL write in bytes,.
0
Write-Ahead Logging
9
-
number of running processes $1
7
proc.num[{$PG_PROCESS_NAME}]
60
30d
180d
0
3
0
0
0
0
0
General Information
PostgreSQL databases discovery
7
pgsql.db.discovery[{$PG_CONNINFO}]
600
0
0
0
0
0
0
{#DBNAME}
(zabbix|db_.*)
8
A
7d
PostgreSQL database discovery. Use regular expressions to configure search.
database {#DBNAME} size
7
pgsql.db.size[{$PG_CONNINFO},{#DBNAME}]
600
30d
180d
0
3
B
0
0
0
0
Single database size.
0
Databases
{PostgreSQL Simple Template:pgsql.db.size[{$PG_CONNINFO},{#DBNAME}].last()}>{$PG_DATABASE_SIZE_THRESHOLD}
0
PostgreSQL database {#DBNAME} to large on {HOSTNAME} (size={ITEM.LASTVALUE})}
0
0
3
0
0
PostgreSQL: database {#DBNAME} size
900
200
0.0000
100.0000
1
1
0
1
0
0.0000
0.0000
1
0
0
0
0
0
00BB00
1
2
0
-
PostgreSQL Simple Template
pgsql.db.size[{$PG_CONNINFO},{#DBNAME}]
PostgreSQL streaming stand-by discovery
7
pgsql.streaming.discovery[{$PG_CONNINFO}]
600
0
0
0
0
0
0
{#HOTSTANDBY}
8
A
1d
Low level discovery for streaming replication servers which connected to this server.
packet loss with {#HOTSTANDBY}, %
3
icmppingloss[{#HOTSTANDBY},10,100,,]
30
30d
180d
0
3
%
0
0
0
0
0
Streaming Replication
streaming lag with {#HOTSTANDBY} in bytes
7
pgsql.streaming.lag.bytes[{$PG_CONNINFO},{#HOTSTANDBY}]
30
30d
180d
0
3
b
0
0
0
0
0
Streaming Replication
streaming lag with {#HOTSTANDBY} in seconds
7
pgsql.streaming.lag.seconds[{$PG_CONNINFO_STANDBY},{#HOTSTANDBY}]
30
30d
180d
0
0
s
0
0
0
0
ATTENTION: This check requires access to the remote server postgresql service, respectively, should be determined access in pg_hba.conf on remote server.
Example:
host zabbix postgres 1.2.3.4/32 trust
0
Streaming Replication
{PostgreSQL Simple Template:icmppingloss[{#HOTSTANDBY},10,100,,].last()}>{$PG_SR_PACKET_LOSS}
0
PostgreSQL packet loss between {HOSTNAME} and {#HOTSTANDBY} to high ({ITEM.LASTVALUE})
0
0
3
0
0
{PostgreSQL Simple Template:pgsql.streaming.lag.bytes[{$PG_CONNINFO},{#HOTSTANDBY}].last()}>{$PG_SR_LAG_BYTE}
0
PostgreSQL streaming lag between {HOSTNAME} and {#HOTSTANDBY} to high ({ITEM.LASTVALUE})
0
0
3
0
0
{PostgreSQL Simple Template:pgsql.streaming.lag.seconds[{$PG_CONNINFO_STANDBY},{#HOTSTANDBY}].last()}>{$PG_SR_LAG_SEC}
0
PostgreSQL streaming lag between {HOSTNAME} and {#HOTSTANDBY} to high ({ITEM.LASTVALUE})
0
0
3
0
0
PostgreSQL streaming replication lag with {#HOTSTANDBY}
900
200
0.0000
100.0000
1
1
0
1
0
0.0000
0.0000
1
0
0
0
0
5
0000CC
1
2
0
-
PostgreSQL Simple Template
pgsql.streaming.lag.bytes[{$PG_CONNINFO},{#HOTSTANDBY}]
1
0
00CC00
0
2
0
-
PostgreSQL Simple Template
pgsql.streaming.lag.seconds[{$PG_CONNINFO_STANDBY},{#HOTSTANDBY}]
PostgreSQL database tables discovery
7
pgsql.table.discovery[{$PG_CONNINFO}]
600
0
0
0
0
0
0
{#TABLENAME}
^public.(products|customers|sessions)$
8
A
1d
PostgreSQL tables discovery. Use regular expressions to configure search.
Disabled by default because may add too many items.
table {#TABLENAME} indexes size
7
pgsql.index.size[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
0
b
0
0
0
0
PostgreSQL all indexes size which belongs to a single table.
0
Table Info
table {#TABLENAME} size
7
pgsql.table.size[{$PG_CONNINFO},{#TABLENAME}]
600
30d
180d
0
0
b
0
0
0
0
PostgreSQL single table size.
0
Table Info
table {#TABLENAME} stat: analyzes
7
pgsql.table.stat.analyze_count[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
3
0
0
0
0
Number of analyze operations performed on this table.
0
Table Info
9
table {#TABLENAME} stat: autoanalyzes
7
pgsql.table.stat.autoanalyze_count[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
3
0
0
0
0
Number of autoanalyze operations performed on this table.
0
Table Info
9
table {#TABLENAME} stat: autovacuums
7
pgsql.table.stat.autovacuum_count[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
3
0
0
0
0
Number of autovacuum operations performed on this table.
0
Table Info
9
table {#TABLENAME} stat: cache blocks hits per second
7
pgsql.table.stat.heap_blks_hit[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
3
0
0
0
0
Number of buffer hits in this table
0
Table Info
10
table {#TABLENAME} stat: cache blocks read per second
7
pgsql.table.stat.heap_blks_read[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
3
0
0
0
0
Number of disk blocks read from this table.
0
Table Info
10
table {#TABLENAME} stat: index blocks hit per second
7
pgsql.table.stat.idx_blks_hit[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
3
0
0
0
0
Number of buffer hits in all indexes on this table.
0
Table Info
10
table {#TABLENAME} stat: index blocks read per second
7
pgsql.table.stat.idx_blks_read[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
3
0
0
0
0
Number of disk blocks read from all indexes on this table.
0
Table Info
10
table {#TABLENAME} stat: index scans
7
pgsql.table.stat.idx_scan[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
3
0
0
0
0
Number of index scans initiated on this table.
0
Table Info
9
table {#TABLENAME} stat: tuples read per second by index scans
7
pgsql.table.stat.idx_tup_fetch[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
3
0
0
0
0
Number of live rows fetched by index scans.
0
Table Info
10
table {#TABLENAME} stat: dead rows
7
pgsql.table.stat.n_dead_tup[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
3
0
0
0
0
Estimated number of dead rows.
0
Table Info
9
table {#TABLENAME} stat: live rows
7
pgsql.table.stat.n_live_tup[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
3
0
0
0
0
Estimated number of live rows.
0
Table Info
9
table {#TABLENAME} stat: rows deleted per second
7
pgsql.table.stat.n_tup_del[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
3
0
0
0
0
Number of rows deleted.
0
Table Info
10
table {#TABLENAME} stat: rows HOT updated per second
7
pgsql.table.stat.n_tup_hot_upd[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
3
0
0
0
0
Number of rows HOT updated (i.e., with no separate index update required).
0
Table Info
10
table {#TABLENAME} stat: rows inserted per second
7
pgsql.table.stat.n_tup_ins[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
3
0
0
0
0
Number of rows inserted.
0
Table Info
10
table {#TABLENAME} stat: rows updated per second
7
pgsql.table.stat.n_tup_upd[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
3
0
0
0
0
Number of rows updated.
0
Table Info
10
table {#TABLENAME} stat: sequential scans
7
pgsql.table.stat.seq_scan[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
3
0
0
0
0
Number of sequential scans initiated on this table.
0
Table Info
9
table {#TABLENAME} stat: tuples read per second by sequential scans
7
pgsql.table.stat.seq_tup_read[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
3
0
0
0
0
Number of live rows fetched by sequential scans.
0
Table Info
10
table {#TABLENAME} stat: disk blocks hits per second from TOAST indexes
7
pgsql.table.stat.tidx_blks_hit[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
3
0
0
0
0
Number of buffer hits in this table's TOAST table index (if any).
0
Table Info
10
table {#TABLENAME} stat: disk blocks read per second from TOAST indexes
7
pgsql.table.stat.tidx_blks_read[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
3
0
0
0
0
Number of disk blocks read from this table's TOAST table index (if any).
0
Table Info
10
table {#TABLENAME} stat: disk blocks hits per second from TOAST
7
pgsql.table.stat.toast_blks_hit[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
3
0
0
0
0
Number of buffer hits in this table's TOAST table (if any).
0
Table Info
10
table {#TABLENAME} stat: disk blocks read per second from TOAST
7
pgsql.table.stat.toast_blks_read[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
3
0
0
0
0
Number of disk blocks read from this table's TOAST table (if any).
0
Table Info
10
table {#TABLENAME} stat: vacuums
7
pgsql.table.stat.vacuum_count[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
3
0
0
0
0
Number of vacuum operations performed on this table.
0
Table Info
9
table {#TABLENAME} rows count
7
pgsql.table.tuples[{$PG_CONNINFO},{#TABLENAME}]
60
30d
180d
0
0
0
0
0
0
PostgreSQL single table rows count.
0
Table Info
PostgreSQL table {#TABLENAME} maintenance
900
200
0.0000
100.0000
1
1
0
1
0
0.0000
0.0000
1
0
0
0
0
0
00CC00
1
2
0
-
PostgreSQL Simple Template
pgsql.table.stat.analyze_count[{$PG_CONNINFO},{#TABLENAME}]
1
0
0000CC
1
2
0
-
PostgreSQL Simple Template
pgsql.table.stat.autoanalyze_count[{$PG_CONNINFO},{#TABLENAME}]
2
0
CC0000
1
2
0
-
PostgreSQL Simple Template
pgsql.table.stat.autovacuum_count[{$PG_CONNINFO},{#TABLENAME}]
3
0
CCCC00
1
2
0
-
PostgreSQL Simple Template
pgsql.table.stat.vacuum_count[{$PG_CONNINFO},{#TABLENAME}]
PostgreSQL table {#TABLENAME} read stats
900
200
0.0000
100.0000
1
1
0
1
0
0.0000
0.0000
1
0
0
0
0
0
00CC00
1
2
0
-
PostgreSQL Simple Template
pgsql.table.stat.heap_blks_hit[{$PG_CONNINFO},{#TABLENAME}]
1
0
000000
1
2
0
-
PostgreSQL Simple Template
pgsql.table.stat.heap_blks_read[{$PG_CONNINFO},{#TABLENAME}]
2
0
99FFFF
1
2
0
-
PostgreSQL Simple Template
pgsql.table.stat.toast_blks_hit[{$PG_CONNINFO},{#TABLENAME}]
3
0
FFFF99
1
2
0
-
PostgreSQL Simple Template
pgsql.table.stat.tidx_blks_hit[{$PG_CONNINFO},{#TABLENAME}]
4
0
00CCCC
1
2
0
-
PostgreSQL Simple Template
pgsql.table.stat.toast_blks_read[{$PG_CONNINFO},{#TABLENAME}]
5
0
CCCC00
1
2
0
-
PostgreSQL Simple Template
pgsql.table.stat.tidx_blks_read[{$PG_CONNINFO},{#TABLENAME}]
6
0
0000CC
1
2
0
-
PostgreSQL Simple Template
pgsql.table.stat.idx_blks_hit[{$PG_CONNINFO},{#TABLENAME}]
7
0
CC0000
1
2
0
-
PostgreSQL Simple Template
pgsql.table.stat.idx_blks_read[{$PG_CONNINFO},{#TABLENAME}]
PostgreSQL table {#TABLENAME} rows
900
200
0.0000
100.0000
1
1
0
1
0
0.0000
0.0000
1
0
0
0
0
5
00CC00
1
2
0
-
PostgreSQL Simple Template
pgsql.table.stat.n_live_tup[{$PG_CONNINFO},{#TABLENAME}]
1
5
666666
1
2
0
-
PostgreSQL Simple Template
pgsql.table.stat.n_dead_tup[{$PG_CONNINFO},{#TABLENAME}]
2
0
0000CC
1
2
0
-
PostgreSQL Simple Template
pgsql.table.stat.n_tup_del[{$PG_CONNINFO},{#TABLENAME}]
3
0
CC0000
1
2
0
-
PostgreSQL Simple Template
pgsql.table.stat.n_tup_hot_upd[{$PG_CONNINFO},{#TABLENAME}]
4
0
00CCCC
1
2
0
-
PostgreSQL Simple Template
pgsql.table.stat.n_tup_ins[{$PG_CONNINFO},{#TABLENAME}]
5
0
CCCC00
1
2
0
-
PostgreSQL Simple Template
pgsql.table.stat.n_tup_upd[{$PG_CONNINFO},{#TABLENAME}]
PostgreSQL table {#TABLENAME} scans
900
200
0.0000
100.0000
1
1
0
1
0
0.0000
0.0000
1
0
0
0
0
0
00CC00
0
2
0
-
PostgreSQL Simple Template
pgsql.table.stat.idx_scan[{$PG_CONNINFO},{#TABLENAME}]
1
0
000000
0
2
0
-
PostgreSQL Simple Template
pgsql.table.stat.seq_scan[{$PG_CONNINFO},{#TABLENAME}]
2
0
0000CC
1
2
0
-
PostgreSQL Simple Template
pgsql.table.stat.idx_tup_fetch[{$PG_CONNINFO},{#TABLENAME}]
3
0
CC0000
1
2
0
-
PostgreSQL Simple Template
pgsql.table.stat.seq_tup_read[{$PG_CONNINFO},{#TABLENAME}]
PostgreSQL table {#TABLENAME} size
900
200
0.0000
100.0000
1
1
0
1
0
0.0000
0.0000
1
0
0
0
0
5
0000CC
1
2
0
-
PostgreSQL Simple Template
pgsql.table.size[{$PG_CONNINFO},{#TABLENAME}]
1
0
CC0000
1
2
0
-
PostgreSQL Simple Template
pgsql.index.size[{$PG_CONNINFO},{#TABLENAME}]
2
0
00CC00
0
2
0
-
PostgreSQL Simple Template
pgsql.table.tuples[{$PG_CONNINFO},{#TABLENAME}]
{$PG_CACHE_HIT_RATIO}
90
{$PG_CHECKPOINTS_REQ_THRESHOLD}
5
{$PG_CONFLICTS_THRESHOLD}
0
{$PG_CONNINFO}
-h 127.0.0.1 -p 5432 -U postgres -d monitor
{$PG_CONNINFO_STANDBY}
-p 5432 -U postgres -d monitor
{$PG_CONN_IDLE_IN_TRANSACTION}
3
{$PG_CONN_TOTAL_PCT}
90
{$PG_CONN_WAITING}
0
{$PG_DATABASE_SIZE_THRESHOLD}
100000000000
{$PG_DEADLOCKS_THRESHOLD}
0
{$PG_LONG_QUERY_THRESHOLD}
30
{$PG_PING_THRESHOLD_MS}
1000
{$PG_PROCESS_NAME}
postmaster
{$PG_SR_LAG_BYTE}
50000000
{$PG_SR_LAG_SEC}
600
{$PG_SR_PACKET_LOSS}
10
{$PG_UPTIME_THRESHOLD}
600
{PostgreSQL Simple Template:pgsql.transactions.active[{$PG_CONNINFO}].last()}>{$PG_LONG_QUERY_THRESHOLD}
0
PostgreSQL active transaction to long on {HOSTNAME} (time={ITEM.LASTVALUE})
0
0
3
0
0
{PostgreSQL Simple Template:pgsql.cache.hit[{$PG_CONNINFO}].last()}<{$PG_CACHE_HIT_RATIO}
0
PostgreSQL cache hit ratio too low on {HOSTNAME} ({ITEM.LASTVALUE})
0
0
2
0
0
{PostgreSQL Simple Template:pgsql.dbstat.sum.deadlocks[{$PG_CONNINFO}].last()}>{$PG_DEADLOCKS_THRESHOLD}
0
PostgreSQL deadlock occured on {HOSTNAME}
0
0
3
0
0
{PostgreSQL Simple Template:pgsql.connections.idle_in_transaction[{$PG_CONNINFO}].last()}>{$PG_CONN_IDLE_IN_TRANSACTION}
0
PostgreSQL idle in transaction connections to high on {HOSTNAME} ({ITEM.LASTVALUE})
0
0
3
0
0
{PostgreSQL Simple Template:pgsql.transactions.idle[{$PG_CONNINFO}].last()}>{$PG_LONG_QUERY_THRESHOLD}
0
PostgreSQL idle transaction to long on {HOSTNAME} ({ITEM.LASTVALUE})
0
0
3
0
0
{PostgreSQL Simple Template:pgsql.connections.waiting[{$PG_CONNINFO}].last()}>{$PG_CONN_WAITING}
0
PostgreSQL number of waiting connections to high on {HOSTNAME} ({ITEM.LASTVALUE})
0
0
3
0
0
{PostgreSQL Simple Template:pgsql.dbstat.sum.conflicts[{$PG_CONNINFO}].last()}>{$PG_CONFLICTS_THRESHOLD}
0
PostgreSQL recovery conflict occured on {HOSTNAME}
0
0
3
0
0
{PostgreSQL Simple Template:pgsql.bgwriter.checkpoints_req[{$PG_CONNINFO}].last()}>{$PG_CHECKPOINTS_REQ_THRESHOLD}
0
PostgreSQL required checkpoints occurs to frequently on {HOSTNAME}
0
0
3
0
0
{PostgreSQL Simple Template:pgsql.ping[{$PG_CONNINFO}].last()}>{$PG_PING_THRESHOLD_MS}
0
PostgreSQL response to long on {HOSTNAME} ({ITEM.LASTVALUE}
0
0
3
0
0
{PostgreSQL Simple Template:proc.num[{$PG_PROCESS_NAME}].last()}=0
0
PostgreSQL service not running on {HOSTNAME}
0
0
4
0
0
{PostgreSQL Simple Template:pgsql.uptime[{$PG_CONNINFO}].last()}<{$PG_UPTIME_THRESHOLD}
0
PostgreSQL service was restarted on {HOSTNAME} (uptime={ITEM.LASTVALUE})
0
0
3
0
0
{PostgreSQL Simple Template:pgsql.connections.total_pct[{$PG_CONNINFO}].last()}>{$PG_CONN_TOTAL_PCT}
0
PostgreSQL total number of connections to high on {HOSTNAME} ({ITEM.LASTVALUE})
0
0
3
0
0
{PostgreSQL Simple Template:pgsql.transactions.waiting[{$PG_CONNINFO}].last()}>{$PG_LONG_QUERY_THRESHOLD}
0
PostgreSQL waiting transaction to long on {HOSTNAME} ({ITEM.LASTVALUE})
0
0
3
0
0
PostgreSQL bgwriter
900
200
0.0000
100.0000
1
1
0
1
0
0.0000
0.0000
1
0
0
0
0
0
00CC00
1
2
0
-
PostgreSQL Simple Template
pgsql.bgwriter.buffers_alloc[{$PG_CONNINFO}]
1
0
0000CC
1
2
0
-
PostgreSQL Simple Template
pgsql.bgwriter.buffers_clean[{$PG_CONNINFO}]
2
0
CC0000
1
2
0
-
PostgreSQL Simple Template
pgsql.bgwriter.buffers_backend[{$PG_CONNINFO}]
3
0
CCCC00
1
2
0
-
PostgreSQL Simple Template
pgsql.bgwriter.buffers_checkpoint[{$PG_CONNINFO}]
4
0
777777
0
2
0
-
PostgreSQL Simple Template
pgsql.bgwriter.maxwritten_clean[{$PG_CONNINFO}]
5
0
CC00CC
0
2
0
-
PostgreSQL Simple Template
pgsql.bgwriter.buffers_backend_fsync[{$PG_CONNINFO}]
PostgreSQL buffers
900
200
0.0000
100.0000
0
0
0
1
0
0.0000
0.0000
0
0
0
0
0
5
EEEEEE
1
2
0
-
PostgreSQL Simple Template
pgsql.buffercache.total[{$PG_CONNINFO}]
1
1
0000EE
1
2
0
-
PostgreSQL Simple Template
pgsql.buffercache.used[{$PG_CONNINFO}]
2
1
00EE00
1
2
0
-
PostgreSQL Simple Template
pgsql.buffercache.clear[{$PG_CONNINFO}]
3
1
EE0000
1
2
0
-
PostgreSQL Simple Template
pgsql.buffercache.dirty[{$PG_CONNINFO}]
PostgreSQL checkpoints
900
200
0.0000
100.0000
1
1
0
1
0
0.0000
0.0000
1
0
0
0
0
0
00CC00
0
2
0
-
PostgreSQL Simple Template
pgsql.bgwriter.checkpoints_timed[{$PG_CONNINFO}]
1
0
CC0000
0
2
0
-
PostgreSQL Simple Template
pgsql.bgwriter.checkpoints_req[{$PG_CONNINFO}]
2
0
000000
1
2
0
-
PostgreSQL Simple Template
pgsql.bgwriter.checkpoint_sync_time[{$PG_CONNINFO}]
3
0
0000CC
1
2
0
-
PostgreSQL Simple Template
pgsql.bgwriter.checkpoint_write_time[{$PG_CONNINFO}]
PostgreSQL connections
900
200
0.0000
100.0000
1
1
0
1
0
0.0000
0.0000
1
0
0
0
0
0
EEEEEE
1
2
0
-
PostgreSQL Simple Template
pgsql.connections.total[{$PG_CONNINFO}]
1
0
00BB00
1
2
0
-
PostgreSQL Simple Template
pgsql.connections.active[{$PG_CONNINFO}]
2
0
0000BB
1
2
0
-
PostgreSQL Simple Template
pgsql.connections.idle[{$PG_CONNINFO}]
3
0
CC00CC
1
2
0
-
PostgreSQL Simple Template
pgsql.connections.idle_in_transaction[{$PG_CONNINFO}]
4
0
BB0000
1
2
0
-
PostgreSQL Simple Template
pgsql.connections.waiting[{$PG_CONNINFO}]
5
0
888800
0
2
0
-
PostgreSQL Simple Template
pgsql.connections.total_pct[{$PG_CONNINFO}]
PostgreSQL service response
900
200
0.0000
100.0000
1
1
0
1
0
0.0000
0.0000
0
0
0
0
0
5
00CC00
1
2
0
-
PostgreSQL Simple Template
pgsql.ping[{$PG_CONNINFO}]
1
0
CC0000
1
2
0
-
PostgreSQL Simple Template
pgsql.pgstatstatements.avg_query_time[{$PG_CONNINFO}]
PostgreSQL summary db stats: block hit/read
900
200
0.0000
100.0000
1
1
0
1
0
0.0000
0.0000
1
0
0
0
0
0
00CC00
1
2
0
-
PostgreSQL Simple Template
pgsql.dbstat.sum.blks_hit[{$PG_CONNINFO}]
1
0
CC0000
1
2
0
-
PostgreSQL Simple Template
pgsql.dbstat.sum.blks_read[{$PG_CONNINFO}]
PostgreSQL summary db stats: events
900
200
0.0000
100.0000
1
1
0
1
0
0.0000
0.0000
1
0
0
0
0
5
00CC00
1
2
0
-
PostgreSQL Simple Template
pgsql.dbstat.sum.xact_commit[{$PG_CONNINFO}]
1
0
0000CC
1
2
0
-
PostgreSQL Simple Template
pgsql.dbstat.sum.conflicts[{$PG_CONNINFO}]
2
0
000000
1
2
0
-
PostgreSQL Simple Template
pgsql.dbstat.sum.deadlocks[{$PG_CONNINFO}]
3
0
CC0000
1
2
0
-
PostgreSQL Simple Template
pgsql.dbstat.sum.xact_rollback[{$PG_CONNINFO}]
PostgreSQL summary db stats: temp files
900
200
0.0000
100.0000
1
1
0
1
0
0.0000
0.0000
1
0
0
0
0
5
CC0000
0
2
0
-
PostgreSQL Simple Template
pgsql.dbstat.sum.temp_bytes[{$PG_CONNINFO}]
1
0
0000CC
1
2
0
-
PostgreSQL Simple Template
pgsql.dbstat.sum.temp_files[{$PG_CONNINFO}]
PostgreSQL summary db stats: tuples
900
200
0.0000
100.0000
1
1
0
1
0
0.0000
0.0000
1
0
0
0
0
0
000000
1
2
0
-
PostgreSQL Simple Template
pgsql.dbstat.sum.tup_deleted[{$PG_CONNINFO}]
1
0
00CC00
1
2
0
-
PostgreSQL Simple Template
pgsql.dbstat.sum.tup_inserted[{$PG_CONNINFO}]
2
0
CC0000
1
2
0
-
PostgreSQL Simple Template
pgsql.dbstat.sum.tup_updated[{$PG_CONNINFO}]
3
0
0000CC
1
2
0
-
PostgreSQL Simple Template
pgsql.dbstat.sum.tup_fetched[{$PG_CONNINFO}]
4
0
CC00CC
1
2
0
-
PostgreSQL Simple Template
pgsql.dbstat.sum.tup_returned[{$PG_CONNINFO}]
PostgreSQL transactions
900
200
0.0000
100.0000
1
1
0
1
0
0.0000
0.0000
1
0
0
0
0
0
00CC00
1
2
0
-
PostgreSQL Simple Template
pgsql.transactions.active[{$PG_CONNINFO}]
1
0
000000
1
2
0
-
PostgreSQL Simple Template
pgsql.transactions.idle[{$PG_CONNINFO}]
2
0
00CCCC
1
2
0
-
PostgreSQL Simple Template
pgsql.transactions.prepared[{$PG_CONNINFO}]
3
0
CC0000
1
2
0
-
PostgreSQL Simple Template
pgsql.transactions.waiting[{$PG_CONNINFO}]
PostgreSQL uptime
900
200
0.0000
100.0000
1
1
0
1
0
0.0000
0.0000
1
0
0
0
0
0
00CC00
0
2
0
-
PostgreSQL Simple Template
pgsql.cache.hit[{$PG_CONNINFO}]
1
0
0000CC
1
2
0
-
PostgreSQL Simple Template
pgsql.uptime[{$PG_CONNINFO}]
PostgreSQL write-ahead log
900
200
0.0000
100.0000
1
1
0
1
0
0.0000
0.0000
1
0
0
0
0
0
0000CC
1
2
0
-
PostgreSQL Simple Template
pgsql.wal.count[{$PG_CONNINFO}]
1
0
00CC00
0
2
0
-
PostgreSQL Simple Template
pgsql.wal.write[{$PG_CONNINFO}]