Skip to content

Commit 2c68bc4

Browse files
author
CloudNativePG Automated Updates
committed
chore: sync API
1 parent 8f5558e commit 2c68bc4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pkg/api/v1/cluster_types.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ const (
110110
// PGBouncerPoolerUserName is the name of the role to be used for
111111
PGBouncerPoolerUserName = "cnpg_pooler_pgbouncer"
112112

113+
// MetricsExporterUserName is the name of the dedicated role used by the
114+
// metrics exporter to connect to PostgreSQL. This role has pg_monitor
115+
// granted and is never a superuser, so session_user never escalates via
116+
// RESET ROLE.
117+
MetricsExporterUserName = "cnpg_metrics_exporter"
118+
113119
// MissingWALDiskSpaceExitCode is the exit code the instance manager
114120
// will use to signal that there's no more WAL disk space
115121
MissingWALDiskSpaceExitCode = 4

0 commit comments

Comments
 (0)