Export Prometheus metrics from SQL queries
1M+
query-exporter is a Prometheus exporter which allows collecting metrics from database queries, at specified time intervals or upon request.
It can be run as follows:
docker run --rm -it -p 9560:9560/tcp -v "$CONFIG_DIR:/config" adonato/query-exporter:latest
where $CONFIG_DIR is the absolute path of a directory containing a
config.yaml file, the configuration file to use. Alternatively, a volume
name can be specified.
If, a .env file is present in the specified volume for /config, its
content is loaded and applied to the environment for the exporter. The location
of the dotenv file can be customized by setting the QE_DOTENV environment
variable.
The image has support for connecting the following databases:
postgresql://)mysql://)sqlite://)mssql://)db2://) (on x86_64 architecture)oracle://)clickhouse+native://)teradatasql://)Base images only contain the application without any database engine. They can be used to build customized images.
FROM adonato/query-exporter:X.Y.Z-base
or
FROM adonato/query-exporter:X-base
See the official repository for more details.
Content type
Image
Digest
sha256:b89b7f21b…
Size
415.3 MB
Last updated
28 days ago
docker pull adonato/query-exporter