Closed
Description
What did you do?
Start dockerized postgres_exporter as per instructions for timescale DB.
What did you expect to see?
postgres_exporter running stable, and export metrics
What did you see instead? Under which circumstances?
postgres_exporter crashes as soon as it starts.
Environment
- Image sha -
docker inspect quay.io/prometheuscommunity/postgres-exporter| jq -r '.[].RepoDigests[]' | awk -F@ '{print $2}'
sha256:6999a7657e2f2fb0ca6ebf417213eebf6dc7d21b30708c622f6fcb11183a2bb0
-
PostgreSQL version:
-
Logs:
panic: "pg_settings_mem_guard_enable-auth-hook" is not a valid metric name
goroutine 52 [running]:
github.com/prometheus/client_golang/prometheus.MustNewConstMetric(...)
/go/pkg/mod/github.com/prometheus/[email protected]/prometheus/value.go:129
main.(*pgSetting).metric(0xc00020c640, 0xc00020a2a0)
/app/cmd/postgres_exporter/pg_setting.go:99 +0x2ff
main.querySettings(0xc00022e070, 0xc00025a000)
/app/cmd/postgres_exporter/pg_setting.go:55 +0x1d8
main.(*Server).Scrape(0xc00025a000, 0xc00022e070, 0x0?)
/app/cmd/postgres_exporter/server.go:120 +0xc8
main.(*Exporter).scrapeDSN(0xc000174000, 0xc00022e070, {0xc0000be140, 0x92})
/app/cmd/postgres_exporter/datasource.go:114 +0x132
main.(*Exporter).scrape(0xc000174000, 0xc00022e070)
/app/cmd/postgres_exporter/postgres_exporter.go:678 +0x16b
main.(*Exporter).Collect(0xc000174000, 0xc00022e070)
/app/cmd/postgres_exporter/postgres_exporter.go:567 +0x25
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:458 +0xe5
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather in goroutine 39
/go/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:548 +0xbab
Metadata
Metadata
Assignees
Labels
No labels