yandex / odyssey

Scalable PostgreSQL connection pooler
BSD 3-Clause "New" or "Revised" License
3.21k stars 165 forks source link

How I can export metrics to prometheus? #650

Closed sheldygg closed 3 months ago

sheldygg commented 3 months ago

I add promhttp_server_port 3422 to my configuration and restart the server. When I try get metrics I receive

curl 127.0.0.1:3422/metrics
curl: (7) Failed to connect to 127.0.0.1 port 3422 after 0 ms: Connection refused

Whats wrong? Version: odyssey (git: 2143 3765e3b4 release)

sheldygg commented 3 months ago

As written in documentation, for exporting metrics to prometheus must be installed C Prometheus client library.