We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f5558e commit 2c68bc4Copy full SHA for 2c68bc4
1 file changed
pkg/api/v1/cluster_types.go
@@ -110,6 +110,12 @@ const (
110
// PGBouncerPoolerUserName is the name of the role to be used for
111
PGBouncerPoolerUserName = "cnpg_pooler_pgbouncer"
112
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
+
119
// MissingWALDiskSpaceExitCode is the exit code the instance manager
120
// will use to signal that there's no more WAL disk space
121
MissingWALDiskSpaceExitCode = 4
0 commit comments