This project has been archived by its maintainers, and is no longer receiving any updates.
Propagation Exporter
A small tool that watches systemd journal entries from opendnssec-signer.service, parses zone update stats, checks downstream DNS SOA serial propagation, and exposes Prometheus metrics.
Install
This project uses pyproject.toml. Install in your environment of choice.
Run
-
As a console script (recommended):
propogation-exporter -c /etc/coralogix-exporter/zones.yaml --metrics-port 8000
-
As a module:
python -m propogation_exporter -c /etc/coralogix-exporter/zones.yaml
-
Legacy script (still supported):
python main.py -c /etc/coralogix-exporter/zones.yaml
Testing with uv
This project uses uv for Python environment and dependency management in development.
-
Install dev deps (once):
uv sync --extra dev
-
Run tests with coverage:
uv run pytest -q --cov=propogation_exporter --cov-report=term-missing
-
Optional: type and style checks:
uv run mypy propogation_exporter uv run flake8 propogation_exporter
CLI options
- -c, --config-file: YAML with zones and nameservers
- --metrics-port: Prometheus HTTP port (default 8000)
- --zone / --ns: Ad-hoc SOA serial checks without systemd
- --stats-regex: Override the regex used to parse journal "[STATS]" lines.
Regex parsing
By default, the parser extracts zone, serial, and RR count from lines like:
[STATS] example.com 2024072826 RR[count=4 time=0(sec)] ...
Default pattern:
^\[STATS\]\s+(?P<zone>\S+)\s+(?P<serial>\d+)\s+RR\[count=(?P<rr_count>\d+)
You can override it via CLI --stats-regex or programmatically when creating ZoneManager.
Module layout
- propogation_exporter/
- init.py: public exports
- main.py:
python -mentry - cli.py: argument parsing and app wiring
- journal.py: systemd journal reader
- zone.py: ZoneInfo, ZoneConfig, ZoneManager, and parsing
- dns_utils.py: DNSChecker utilities
- metrics.py: Prometheus metrics
Prometheus metrics
- zone_rr_count{zone}
- zone_in_sync{zone}
- zone_propagation_delay_seconds{zone, nameserver, serial}
Config file
YAML example:
zones:
example.com.:
primary_nameserver: 192.0.2.1
downstream_nameservers:
- 192.0.2.2
- 192.0.2.3
Notes
- Ensure
systemd-python,dnspython,PyYAML, andprometheus-clientare available in the runtime environment.
Metadata
Release files for propogation-exporter 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| propogation_exporter-0.1.0.tar.gz | 15.4 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| propogation_exporter-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.0 kB
Release files / propogation_exporter-0.1.0.tar.gz
| Download URL | propogation_exporter-0.1.0.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2552015ccdb7d65e2e2abf198ffd3c229c256d3927d06d6e66af7cd7e1044ba5
|
|
BLAKE2b-256 checksum How to use checksums |
45938e51571a526092397554d051c3606b02db5da52f8cb5026a03177182f246
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2025.
Transparency logRelease files / propogation_exporter-0.1.0-py3-none-any.whl
| Download URL | propogation_exporter-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b11a51fed4f23e2a266b9c96dee194263baa03a1359166f401d9d3b2218be710
|
|
BLAKE2b-256 checksum How to use checksums |
6d0ded031d1313cba6c144c823cf8829b9ef4238882278035d8ac56d0d2627a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2025.
Transparency logSecurity for propogation-exporter 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for propogation_exporter-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.