Vonng / pg_exporter

Advanced PostgreSQL & Pgbouncer Metrics Exporter for Prometheus
https://pigsty.io
Apache License 2.0
164 stars 42 forks source link

error with PG_EXPORTER_NAMESPACE="pg" #15

Closed erifet closed 3 years ago

erifet commented 3 years ago

Hi,

When in i put export PG_EXPORTER_NAMESPACE="pg" in default env file there is an error ..;pg_exporter[3999]: pg_exporter: error: strconv.ParseBool: parsing "pg": invalid syntax, try --help

If i exclude PG_EXPORTER_NAMESPACE but i set --namespace=pg in PG_EXPORTER_OPTS it work's PG_EXPORTER_OPTS='--namespace=pg --log.level=info --log.format="logger:syslog?appname=pg_exporter&local=7"'

Vonng commented 3 years ago

Thanks for the feedback. It is caused by a stupid copy/paste typo. And fixed by https://github.com/Vonng/pg_exporter/commit/f81e436413911b4a34207077c31198ba3d08e0a2

Vonng commented 3 years ago

I've updated compiled binary in v0.4.0beta release.