Files
neon/compute/etc/sql_exporter/connection_counts.libsonnet
Tristan Partin 837c68b6df Track application_name in connection_counts metric
It will help us understand what applications are exhausting the number
of direct database connections.

Signed-off-by: Tristan Partin <tristan@neon.tech>
2024-11-14 10:20:27 -06:00

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',
}