diff options
author | Christopher Baines <mail@cbaines.net> | 2016-02-27 19:05:13 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2016-02-27 19:06:12 +0000 |
commit | ab6114a32013690cbc1609cd23a4c339321751ca (patch) | |
tree | 208d0e48d8054808ed70b0aa880ff045df7fcae9 | |
parent | 5263d9d933faeb51f366de29315dd270ba4c200c (diff) | |
download | prometheus-pgbouncer-exporter-ab6114a32013690cbc1609cd23a4c339321751ca.tar prometheus-pgbouncer-exporter-ab6114a32013690cbc1609cd23a4c339321751ca.tar.gz |
Allow the config file location to be set via a environmental variable
-rw-r--r-- | prometheus_pgbouncer_exporter/cli.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/prometheus_pgbouncer_exporter/cli.py b/prometheus_pgbouncer_exporter/cli.py index a0b023f..4f55f1e 100644 --- a/prometheus_pgbouncer_exporter/cli.py +++ b/prometheus_pgbouncer_exporter/cli.py @@ -45,6 +45,7 @@ def main(): '--config', is_config_file=True, help='config file path', + env_var='CONFIG', ) p.add( |