# Prometheus Metrics ## Postgres
| Metric | Update frequency | Type | Description |
|---|---|---|---|
pg_activity_count | continuous | gauge | |
pg_activity_max | every hour | gauge | max_connections |
pg_blks_hit | continuous | counter | |
pg_blks_read | continuous | counter | |
pg_cluster_size | continuous | gauge | Cluster size |
pg_database_size | every hour | gauge | Database size |
pg_deletes_total | continuous | counter | Total number of rows deleted from PostgreSQL |
pg_errors_total | continuous | counter | Total number of PostgreSQL errors |
pg_idx_scan | every minute | counter | Number of index scans on a table |
pg_inserts_total | continuous | counter | Total number of rows inserted in PostgreSQL |
pg_replication_flush_lag_bytes | continuous | gauge | Number of bytes standby lags behind primary in flush phase |
pg_replication_flush_lag_seconds | continuous | gauge | Number of seconds standby lags behind primary in flush phase |
pg_replication_pending_lag_bytes | continuous | gauge | Number of bytes standby lags behind primary in pending phase |
pg_replication_replay_lag_bytes | continuous | gauge | Number of bytes standby lags behind primary in replay phase |
pg_replication_replay_lag_seconds | continuous | gauge | Number of seconds standby lags behind primary in replay phase |
pg_replication_total_lag_bytes | continuous | gauge | Number of bytes standby lags behind primary in total |
pg_replication_total_lag_seconds | continuous | gauge | Number of seconds standby lags behind primary in total |
pg_replication_write_lag_bytes | continuous | gauge | Number of bytes standby lags behind primary in write phase |
pg_replication_write_lag_seconds | continuous | gauge | Number of seconds standby lags behind primary in write phase |
pg_requests_duration_seconds_sum | continuous | counter | Requests duration sum |
pg_requests_duration_seconds_total | continuous | counter | Requests duration total |
pg_requests_total | continuous | counter | Total number of PostgreSQL requests |
pg_seq_scan | every minute | counter | Number of sequential scans on a table |
pg_stat_statements_mean_execution_time | every minute | gauge | Mean exec time |
pg_stat_statements_stddev_execution_time | every minute | gauge | stddev exec time |
pg_stat_statements_total_calls | every minute | counter | Total calls |
pg_table_size | every hour | gauge | Table size |
pg_tup_fetched | continuous | counter | Total number of tuples fetched from PostgreSQL |
pg_tup_returned | continuous | counter | Total number of tuples returned from PostgreSQL |
pg_updates_total | continuous | counter | Total number of rows updated in PostgreSQL |
| Metric | Update frequency | Type | Description |
|---|---|---|---|
httpkit_core_size | every hour | gauge | The core number of threads in the pool |
httpkit_max_size | every hour | gauge | The maximum number of threads allowed |
jvm_available_processors_size | every hour | gauge | The maximum number of processors available |
jvm_cpu_time | continuous | counter | CPU time used by the process on which the JVM is running |
jvm_cpu_utilization | continuous | histogam | Recent CPU utilization for the whole system as reported by the JVM |
jvm_gc_count | continuous | gauge | The total number of collections that have occurred |
jvm_gc_duration | continuous | histogram | The approximate accumulated collection elapsed time |
jvm_gc_time | continuous | gauge | The approximate accumulated collection elapsed time |
jvm_heap_memory | continuous | gauge | The current memory usage of the heap that is used for object allocation |
jvm_max_memory_size | every hour | gauge | The maximum amount of memory that the JVM will attempt to use |
jvm_non_heap_memory | continuous | gauge | The current memory usage of non-heap memory that is used by the JVM |
jvm_system_cpu_utilization | continuous | histogam | Recent CPU utilization for the whole system as reported by the JVM |
jvm_thread_by_state_count | continuous | gauge | Number of executing platform threads by state |
jvm_thread_count | continuous | gauge | The current number of live threads |
jvm_thread_daemon_count | continuous | gauge | The current number of live daemon threads |
jvm_thread_peak_count | continuous | gauge | The peak live thread count |
jvm_total_memory_size | every hour | gauge | The total amount of memory in the JVM |
system_memory_utilization | continuous | gauge |
| Metric | Update frequency | Type | Description |
|---|---|---|---|
aidbox_http_request_created_seconds | continuous | histogram | |
aidbox_http_request_duration_seconds | continuous | histogram | |
aidbox_http_request_used_seconds | continuous | histogram | |
aidbox_http_request_wait_seconds | continuous | histogram | |
httpkit_active_count | continuous | gauge | Number of concurrent HTTP requests |
httpkit_completed_total | continuous | counter | Number HTTP requests completed |
httpkit_queue_count | continuous | gauge | Number HTTP requests in the queue |
| Metric | Update frequency | Type | Description |
|---|---|---|---|
hikari_acquire_created_seconds | continuous | histogram | The time it took to create a new connection |
hikari_acquire_used_seconds | continuous | histogram | The time between borrowing a connection and returning it to the pool |
hikari_acquire_wait_seconds | continuous | histogram | The time it took to obtain an open connection from the pool |
hikari_acquired_total | continuous | counter | |
hikari_active_count | continuous | gauge | The number of active connections |
hikari_closed_total | continuous | counter | |
hikari_idle_count | continuous | gauge | The number of idle connections allowed |
hikari_max_size | every hour | gauge | The maximum number of open connections allowed |
hikari_timeout_total | continuous | counter |