aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2016-03-05 19:14:14 +0000
committerChristopher Baines <mail@cbaines.net>2016-03-05 19:14:14 +0000
commitb7e3267134a7602c261fc2e5a30e2cb34bb5bd0f (patch)
treee075e5fce4868ed3b942c3dc26b48c65a5bb4110
parentcb8a33120fae5fea6d0af94e382c8c3aada9a094 (diff)
downloadprometheus-haproxy-log-exporter-b7e3267134a7602c261fc2e5a30e2cb34bb5bd0f.tar
prometheus-haproxy-log-exporter-b7e3267134a7602c261fc2e5a30e2cb34bb5bd0f.tar.gz
Specify and environment variable for the config path
-rw-r--r--prometheus_haproxy_log_exporter/cli.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/prometheus_haproxy_log_exporter/cli.py b/prometheus_haproxy_log_exporter/cli.py
index 079b7fc..24e085d 100644
--- a/prometheus_haproxy_log_exporter/cli.py
+++ b/prometheus_haproxy_log_exporter/cli.py
@@ -46,6 +46,7 @@ def get_argument_parser():
'--config',
is_config_file=True,
help="config file path",
+ env_var='CONFIG',
)
p.add(