4.0.2129760.5 MB
GPL-3.0+
strict
core24
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
the command, managed via a Systemd service.
To run the latter:
- create or edit
- run
Currently supported databases are:
- PostgreSQL (
- MySQL (
- SQLite (
- Microsoft SQL Server (
- IBM DB2 (
NOTE: The snap is no longer maintained, please consider switching to [Docker image](https://hub.docker.com/r/adonato/query-exporter) for newer releases.
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 ofthe 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-exporterCurrently 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 → 12975 Apr 2026, 08:57 UTC
4.0.1 (1274) → 4.0.2 (1297)4 Mar 2026, 13:21 UTC
21 Feb 2019, 10:45 UTC
4 Mar 2026, 13:06 UTC
13 Dec 2025, 09:47 UTC