Version4.0.2
Revision1297
Size60.5 MB
LicenseGPL-3.0+
Confinementstrict
Basecore24

Export Prometheus metrics from SQL queries


query-exporter is a Prometheus exporter which allows collecting metrics from
database queries, at specified time intervals or when a request to the
metrics endpoint is performed.

Each query can be run on multiple databases, and update multiple metrics.

The snap provides both the query-exporter command and a deamon instance of
the command, managed via a Systemd service.
To run the latter:

- create or edit /var/snap/query-exporter/current/config.yaml with the
 configuration

- run sudo snap restart query-exporter

Currently supported databases are:

- PostgreSQL (postgresql://)
- MySQL (mysql://)
- SQLite (sqlite://)
- Microsoft SQL Server (mssql://)
- IBM DB2 (db2://) on supported architectures (x86_64, ppc64le and
 s390x)


NOTE: The snap is no longer maintained, please consider switching to [Docker image](https://hub.docker.com/r/adonato/query-exporter) for newer releases.

Update History

4.0.2 1297 → 1297
5 Apr 2026, 08:57 UTC
4.0.1 (1274)4.0.2 (1297)
4 Mar 2026, 13:21 UTC

Published21 Feb 2019, 10:45 UTC

Last updated4 Mar 2026, 13:06 UTC

First seen13 Dec 2025, 09:47 UTC