SQ

SQL Exporter

Database-agnostic Prometheus exporter driven by custom queries

Monitoring & Status ★ 596 stars Medium setup MIT

SQL Exporter is a configurable Prometheus exporter that runs arbitrary SQL queries against databases and turns the results into metrics. It supports MySQL, PostgreSQL, Microsoft SQL Server, Snowflake, and any database with a Go driver.

Key features

  • Custom SQL-driven metrics
  • Multiple database engines
  • Per-query scrape config
  • Prometheus and OpenMetrics output

Pros & cons

Strengths

  • Extremely flexible
  • Works across DB engines

Trade-offs

  • Query design is on the user
  • No bundled dashboards

Is SQL Exporter secure?

OSV.dev has no published security advisories for SQL Exporter's repository. No known vulnerabilities is not proof of security: it means none have been publicly catalogued.

Source: OSV.dev, checked 2026-10-14. How this is measured.

SQL Exporter replaces

Health badge

Maintain SQL Exporter? Add its health score to your README. The badge links back to this page.

SelfHostIndex: 80 · excellent

Markdown
[![SelfHostIndex health score for SQL Exporter](https://selfhostindex.com/badge/sql-exporter.svg)](https://selfhostindex.com/app/sql-exporter/)
HTML
<a href="https://selfhostindex.com/app/sql-exporter/"><img src="https://selfhostindex.com/badge/sql-exporter.svg" alt="SelfHostIndex health score for SQL Exporter"></a>
reStructuredText
.. image:: https://selfhostindex.com/badge/sql-exporter.svg
   :alt: SelfHostIndex health score for SQL Exporter
   :target: https://selfhostindex.com/app/sql-exporter/

The score is recomputed on every nightly rebuild from public repository data — see how it is calculated.

Similar monitoring & status apps