2

I'm trying to use Prometheus to monitor my MySQL database but can't seem to find an area to add SQL queries. For example, I'd like to run a SQL query which returns a value and then add that value to the graph/send an alert. Is there a way to have Prometheus send SQL queries and retrieve the output?

Thank you

iso123
  • 89
  • 1
  • 3
  • 9

1 Answers1

5

https://github.com/chop-dbhi/prometheus-sql will allow queries to be run against any SQL database that can then be scraped as metrics.

brian-brazil
  • 31,678
  • 6
  • 93
  • 86