Skip to content

Service Metrics

This page lists the metrics a Managed PostgreSQL service exposes: the host-level series returned by exo dbaas metrics, and the metric names it exports to a Prometheus endpoint or a Managed Thanos service.

Note

The lists below were read from a PostgreSQL 18 service with one connection pool on 2026-11-10. The platform can add or rename metrics. Read the current list on your own service with the commands given in each section.

exo dbaas metrics

exo dbaas metrics SERVICE_NAME -z ZONE --period PERIOD

Parameters:

  • SERVICE_NAME: name of the Managed PostgreSQL service.
  • ZONE: zone the service runs in, for example ch-gva-2.
  • PERIOD: hour (the default), day, week, month or year. Any other value is rejected. hour returns one sample every 30 seconds.

The API operation is get-dbaas-service-metrics, with the period in the request body:

echo '{"period":"week"}' | exo api get-dbaas-service-metrics SERVICE_NAME -z ZONE

The response holds nine series, each with one column per node:

KeyTitle in hints.title
cpu_usageCPU usage %
disk_usageDisk space usage %
diskio_readDisk IOPS (reads)
diskio_writesDisk IOPS (writes)
load_averageLoad average (5 min)
mem_availableMemory available %
mem_usageMemory usage %
net_receiveNetwork receive (bytes/s)
net_sendNetwork transmit (bytes/s)

The layout of a series is described in Monitor a Managed PostgreSQL service. The API describes the response as an untyped object, so treat these keys as informative rather than as a contract.

Prometheus and Managed Thanos Metrics

A Prometheus external endpoint and a metrics integration to Managed Thanos receive the same metric names. Read the current list from Thanos:

curl -s -u "avnadmin:THANOS_PASSWORD" "https://THANOS_HOST:THANOS_PORT/api/v1/label/__name__/values"

Parameters:

  • THANOS_HOST, THANOS_PORT, THANOS_PASSWORD: the query endpoint and the avnadmin password of the Thanos service, as shown in Send metrics to Managed Thanos.

The labels carried by each series are listed in Send metrics to Managed Thanos.

PostgreSQL

Each name below is the prefix followed by one of the suffixes.

PrefixSuffixesSource
postgresql_database_size_database_sizeSize of each database
postgresql_pg_stat_activity_active_conn_count, conn_count, idle_conn_count, oldest_conn_agepg_stat_activity, per database
postgresql_pg_stat_bgwriter_buffers_alloc, buffers_backend, buffers_backend_fsync, buffers_checkpoint, buffers_clean, checkpoint_sync_time, checkpoint_write_time, checkpoints_req, checkpoints_timed, maxwritten_cleanpg_stat_bgwriter; on PostgreSQL 17 and up the checkpoint values come from pg_stat_checkpointer
postgresql_pg_stat_database_blks_hit, blks_read, deadlocks, temp_bytes, temp_files, tup_fetched, tup_returned, xact_commit, xact_rollbackpg_stat_database
postgresql_pg_stat_replication_flush_diff, replication_flush_lag_bytes, replication_sent_lag_bytes, replication_write_lag_bytes, reply_agepg_stat_replication, including the pghoard backup stream
postgresql_pg_stat_user_indexes_idx_scan, idx_tup_fetch, idx_tup_read, index_sizepg_stat_user_indexes
postgresql_pg_stat_user_tables_analyze_count, autoanalyze_count, autovacuum_count, idx_scan, idx_tup_fetch, n_dead_tup, n_live_tup, n_mod_since_analyze, n_tup_del, n_tup_hot_upd, n_tup_ins, n_tup_upd, seq_scan, seq_tup_read, table_size, table_size_total, vacuum_countpg_stat_user_tables
postgresql_pg_statio_user_tables_cache_hit_ratiopg_statio_user_tables
postgresql_transactions_freeze_limit, txnsTransaction ID age and the limit that triggers a forced vacuum

PgBouncer

pgbouncer_ series appear once a connection pool has served traffic, with the pool name in the db label. Each name is pgbouncer_avg_ or pgbouncer_total_ followed by one of:

bind_count, client_login_count, client_parse_count, query_count, query_time, server_assignment_count, server_parse_count, wait_time, xact_count, xact_time.

Two more names exist only as totals: pgbouncer_total_received and pgbouncer_total_sent.

Service Connections

service_connections_accepted, service_connections_dropped, service_connections_limit_avg_per_second and service_connections_limit_burst.

Node

The node metrics describe the machine that runs each node:

PrefixExamples
cpu_cpu_usage_user, cpu_usage_system, cpu_usage_iowait, cpu_usage_steal
mem_mem_available_percent, mem_used_percent, mem_cached
disk_disk_used_percent, disk_free, disk_total, disk_inodes_used_percent, with a path label
diskio_diskio_reads, diskio_writes, diskio_read_bytes, diskio_io_await
net_, netstat_net_bytes_recv, net_bytes_sent, netstat_tcp_established
system_, kernel_, processes_, swap_, procstat_system_load5, system_n_cpus, kernel_context_switches, processes_total, swap_used_percent, procstat_memory_rss

The disk that holds the data is the one with path="/var/lib/pgsql".

max_connections is not exported. Read it with SHOW max_connections;, or from the max-connections field of exo api get-dbaas-service-pg SERVICE_NAME -z ZONE.

Related Pages

Last updated on