mirror of
https://github.com/neondatabase/neon.git
synced 2026-07-09 23:20:39 +00:00
It will help us understand what applications are exhausting the number of direct database connections. Signed-off-by: Tristan Partin <tristan@neon.tech>
15 lines
246 B
Jsonnet
15 lines
246 B
Jsonnet
{
|
|
metric_name: 'connection_counts',
|
|
type: 'gauge',
|
|
help: 'Connection counts',
|
|
key_labels: [
|
|
'datname',
|
|
'application_name',
|
|
'state',
|
|
],
|
|
values: [
|
|
'count',
|
|
],
|
|
query: importstr 'sql_exporter/connection_counts.sql',
|
|
}
|