Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusion over enabling queries via environment variable #1033

Open
matthughes opened this issue May 13, 2024 · 0 comments
Open

Confusion over enabling queries via environment variable #1033

matthughes opened this issue May 13, 2024 · 0 comments

Comments

@matthughes
Copy link

The docs say you can enable/disable different metrics using environment variable rather than flag which is helpful for running under systemd.

[no-]collector.stat_wal_receiver Enable the stat_wal_receiver collector (default: disabled).
Settings set by environment variables starting with PG_ will be overwritten by the corresponding CLI flag if given.

I tried a couple permutations of env var and was not able to get the wal queries to return:

PG_STAT_WAL_RECEIVER=true
PG_COLLECTOR_STAT_WAL_RECEIVER=true
PG_COLLECTOR.STAT_WAL_RECEIVER=true

And neither expose the additional metrics I see when I instead pass this same flag in the cli.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant