# Prometheus Metrics ## Postgres
Metric Update frequency Type Description
pg_activity_countcontinuousgauge
pg_activity_maxevery hourgaugemax_connections
pg_blks_hitcontinuouscounter
pg_blks_readcontinuouscounter
pg_cluster_sizecontinuousgaugeCluster size
pg_database_sizeevery hourgaugeDatabase size
pg_deletes_totalcontinuouscounterTotal number of rows deleted from PostgreSQL
pg_errors_totalcontinuouscounterTotal number of PostgreSQL errors
pg_idx_scanevery minutecounterNumber of index scans on a table
pg_inserts_totalcontinuouscounterTotal number of rows inserted in PostgreSQL
pg_replication_flush_lag_bytescontinuousgaugeNumber of bytes standby lags behind primary in flush phase
pg_replication_flush_lag_secondscontinuousgaugeNumber of seconds standby lags behind primary in flush phase
pg_replication_pending_lag_bytescontinuousgaugeNumber of bytes standby lags behind primary in pending phase
pg_replication_replay_lag_bytescontinuousgaugeNumber of bytes standby lags behind primary in replay phase
pg_replication_replay_lag_secondscontinuousgaugeNumber of seconds standby lags behind primary in replay phase
pg_replication_total_lag_bytescontinuousgaugeNumber of bytes standby lags behind primary in total
pg_replication_total_lag_secondscontinuousgaugeNumber of seconds standby lags behind primary in total
pg_replication_write_lag_bytescontinuousgaugeNumber of bytes standby lags behind primary in write phase
pg_replication_write_lag_secondscontinuousgaugeNumber of seconds standby lags behind primary in write phase
pg_requests_duration_seconds_sumcontinuouscounterRequests duration sum
pg_requests_duration_seconds_totalcontinuouscounterRequests duration total
pg_requests_totalcontinuouscounterTotal number of PostgreSQL requests
pg_seq_scanevery minutecounterNumber of sequential scans on a table
pg_stat_statements_mean_execution_timeevery minutegaugeMean exec time
pg_stat_statements_stddev_execution_timeevery minutegaugestddev exec time
pg_stat_statements_total_callsevery minutecounterTotal calls
pg_table_sizeevery hourgaugeTable size
pg_tup_fetchedcontinuouscounterTotal number of tuples fetched from PostgreSQL
pg_tup_returnedcontinuouscounterTotal number of tuples returned from PostgreSQL
pg_updates_totalcontinuouscounterTotal number of rows updated in PostgreSQL
## JVM
Metric Update frequency Type Description
httpkit_core_sizeevery hourgaugeThe core number of threads in the pool
httpkit_max_sizeevery hourgaugeThe maximum number of threads allowed
jvm_available_processors_sizeevery hourgaugeThe maximum number of processors available
jvm_cpu_timecontinuouscounterCPU time used by the process on which the JVM is running
jvm_cpu_utilizationcontinuoushistogamRecent CPU utilization for the whole system as reported by the JVM
jvm_gc_countcontinuousgaugeThe total number of collections that have occurred
jvm_gc_durationcontinuoushistogramThe approximate accumulated collection elapsed time
jvm_gc_timecontinuousgaugeThe approximate accumulated collection elapsed time
jvm_heap_memorycontinuousgaugeThe current memory usage of the heap that is used for object allocation
jvm_max_memory_sizeevery hourgaugeThe maximum amount of memory that the JVM will attempt to use
jvm_non_heap_memorycontinuousgaugeThe current memory usage of non-heap memory that is used by the JVM
jvm_system_cpu_utilizationcontinuoushistogamRecent CPU utilization for the whole system as reported by the JVM
jvm_thread_by_state_countcontinuousgaugeNumber of executing platform threads by state
jvm_thread_countcontinuousgaugeThe current number of live threads
jvm_thread_daemon_countcontinuousgaugeThe current number of live daemon threads
jvm_thread_peak_countcontinuousgaugeThe peak live thread count
jvm_total_memory_sizeevery hourgaugeThe total amount of memory in the JVM
system_memory_utilizationcontinuousgauge
## HTTP
Metric Update frequency Type Description
aidbox_http_request_created_secondscontinuoushistogram
aidbox_http_request_duration_secondscontinuoushistogram
aidbox_http_request_used_secondscontinuoushistogram
aidbox_http_request_wait_secondscontinuoushistogram
httpkit_active_countcontinuousgaugeNumber of concurrent HTTP requests
httpkit_completed_totalcontinuouscounterNumber HTTP requests completed
httpkit_queue_countcontinuousgaugeNumber HTTP requests in the queue
## Hikari (Postgres connection pool)
Metric Update frequency Type Description
hikari_acquire_created_secondscontinuoushistogramThe time it took to create a new connection
hikari_acquire_used_secondscontinuoushistogramThe time between borrowing a connection and returning it to the pool
hikari_acquire_wait_secondscontinuoushistogramThe time it took to obtain an open connection from the pool
hikari_acquired_totalcontinuouscounter
hikari_active_countcontinuousgaugeThe number of active connections
hikari_closed_totalcontinuouscounter
hikari_idle_countcontinuousgaugeThe number of idle connections allowed
hikari_max_sizeevery hourgaugeThe maximum number of open connections allowed
hikari_timeout_totalcontinuouscounter