Skip to content
Discussion options

You must be logged in to vote

Hi @majordhote,

sql_exporter doesn't scrape targets on its own, the scrapes are controlled and fully performed by a Prometheus instance. In other words, if Prometheus doesn't hit the /metrics endpoint of sql_exporter, nothing is scraped.

What can be done here (an idea):

  • There is an option in sql_exporter to organise jobs (can be multi-target if needed) and assign collectors to them. This way if you hit /metrics?jobs[]=myjob1, only collectors against the specified targets will be scraped. If you just hit /metrics, all jobs are scraped. Please check the readme for the Multiple database connections section. You can use the same target across multiple jobs. Here is the reference on job filte…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@majordhote
Comment options

Answer selected by burningalchemist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants