Sign inSign up

adonato/query-exporter

By adonato

•Updated 28 days ago

Export Prometheus metrics from SQL queries

Image
Monitoring & observability
4

1M+

adonato/query-exporter repository overview

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 (postgresql://)
  • MySQL (mysql://)
  • SQLite (sqlite://)
  • Microsoft SQL Server (mssql://)
  • IBM DB2 (db2://) (on x86_64 architecture)
  • Oracle (oracle://)
  • ClickHouse (clickhouse+native://)
  • Teradata (teradatasql://)

⁠Base images

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.

Tag summary

Content type

Image

Digest

sha256:b89b7f21b…

Size

415.3 MB

Last updated

28 days ago

docker pull adonato/query-exporter