Closed
Description
docker run --rm quay.io/prometheuscommunity/postgres-exporter:v0.12.0
ts=2023-03-24T18:45:04.199Z caller=main.go:86 level=error msg="Error loading config" err="Error opening config file \"postgres_exporter.yml\": open postgres_exporter.yml: no such file or directory"
ts=2023-03-24T18:45:04.199Z caller=proc.go:250 msg="Excluded databases" databases=[]
ts=2023-03-24T18:45:04.200Z caller=main.go:130 level=error msg="Failed to create PostgresCollector" err="empty dsn"
ts=2023-03-24T18:45:04.200Z caller=tls_config.go:232 level=info msg="Listening on" address=[::]:9187
ts=2023-03-24T18:45:04.200Z caller=tls_config.go:235 level=info msg="TLS is disabled." http2=false address=[::]:9187
According to the readme, this is the config that can be set via --config.file
. However, there is no mention of config.file
in Flags or Environment Variables.
If this is a problem, I would expect the application to exit. If it's not, as it seems, I would expect this to either be logged as warn
or not logged at all.
Metadata
Metadata
Assignees
Labels
No labels