Closed hoangquochung1110 closed 7 months ago
Are there any running queries in your PG instance?
Yes I tried to make a few queries to my postgres instances
Don't really have the resources to debug individual issues but here's some hints. Try to run it without Docker and see if it can reach your PG instance, run a simple count(*) query to force it to always have results, watch the logs and see if there's any issues when it's running the cron job.
it was docker networking issue. thanks for the hint
Despite recommendation of running SQL Exporter in k8s
I'd like to dockerize postgres db, prometheus and SQL Exporter.
My docker compose:
config.yml (I copied exactly as in README)
My logs
The problem is that I can't find any metric named
running_queries
as defined in config.yml athttp://localhost:9237/metrics
and prometheus dashboard (tried with and w/osql_
prefix). The only metric (except ones from Go) I got issql_exporter_build_info