Query-exporter

Latest version: v3.2.0

Safety actively analyzes 723954 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 8

3.2.0

===================

- Run queries in explicit transactions, deprecate ``autocommit`` flag (232)
- Add builtin ``query_interval`` metric. (225)

**NOTE**:
The ``autocommit`` flag for ``database`` entries is now deprecated and not
used anymore. Queries are always run in a separate transaction with explicit
commit/rollback. Queries in the ``connect-sql`` config are all run in a
single transaction.

3.1.0

===================

- Support passing multiple configuration files (108).
- Support YAML tags for ``env``, ``file``, and ``include`` (188).

**NOTE**:
The ``env:`` and ``file:`` prefixes for DSNs string form is now deprecated in
favor of the corresponding tags, and will be dropped in the next major release.

3.0.0

===================

- Convert all logging to structured (199).
- Look for ``config.yaml`` configuration file by default, configuration file
can be optionally specified with ``--config``.
- Support passing configuration options via environment variables.
- Support loading ``.env`` file with environment variables for configuration.
- [docker] Run exporter from the ``/config`` directory, supporting having
``.env`` file there.
- [snap] Run exporter from the ``$SNAP_DATA`` directory, supporting having
``.env`` file there.

**NOTE**:
This release introduces a few breaking changes from the 2.x series,
specificially:

- The ``--log-level`` option now takes lowercase names for levels.
- The configuration file is no longer a required option, since
``config.yaml`` in the current directory is looked up automatically. If a
different file is specified, it should be done as an optional parameter
with ``--config``.
- Metrics of type ``counter`` are now set by default to values returned by
queries. To preserve the old default behavior of incrementing it by the
returned value, ``increment`` should be set to ``true`` in the metric
configuration.

2.11.1

====================

- Update ``prometheus-aioexporter`` dependency range.

2.11.0

====================

- Switch to SQLAlchemy 2.
- Require Python 3.11.
- [docker] Use Python 3.13 on Debian Bookwork as base image.
- [snap] Rebase on core24.

2.10.0

====================

- Fix columns names in InvalidResultColumnNames being reported the wrong way
round (185).
- Add a metric to track query execution timestamp (178).
- [docker] Define a volume containing the config file (158).
- [docker] Add support for ODBC version 17, support alternative versions.
- Switch to ruff for formatting.

Page 1 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.