Skip to main content

uv Ruff Checked with mypy

APScheduler Exporter

A Prometheus exporter for APScheduler metrics

Usage

Basic Example

from apscheduler_metrics import APSchedulerExporter

scheduler_exporter = APSchedulerExporter(scheduler=your_scheduler)
scheduler_exporter.start_http_server()

Parameters :

Disable metrics collecter for certain jobs

  • Considered as private/dummy (with "_" prefix)
from apscheduler.schedulers.background import BackgroundScheduler
from apscheduler_metrics import APSchedulerExporter

def task():
    pass

scheduler = BackgroundScheduler()

scheduler.add_job(task, 'interval', seconds=10, id='_your_task')

scheduler_exporter = APSchedulerExporter(scheduler=scheduler)
scheduler_exporter.start_http_server()
  • By ids (explicitly)
from apscheduler.schedulers.background import BackgroundScheduler
from apscheduler_metrics import APSchedulerExporter

def task():
    pass

scheduler = BackgroundScheduler()

scheduler.add_job(task, 'interval', seconds=10, id='your_task')

scheduler_exporter = APSchedulerExporter(scheduler=scheduler, excluded_jobs_by_id=['your_task'])
scheduler_exporter.start_http_server()

Configuration

  • port (default value: 8888)
  • listen address (default value: '0.0.0.0')

Metrics

Name Description Type
apscheduler_job_done_total Sent when a job is done. Counter
apscheduler_job_errors_total Sent when a job is failed. Counter
apscheduler_job_missed_total Sent when a job is missed. Counter
apscheduler_job_last_duration_seconds The runtime (seconds) for the last job execution. Gauge
apscheduler_job_duration_seconds Job execution duration in seconds (exposes _sum and _count for mean calculation). Summary

Dashboard

See Grafana Dashboard to import the example dashboard in your instance apscheduler-exporter-dashboard-example

Metadata

Release files for apscheduler-exporter 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apscheduler-exporter 0.2.6
File Size Uploaded Provenance Actions
apscheduler_exporter-0.2.6.tar.gz 3.5 kB Without provenance Details for apscheduler_exporter-0.2.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apscheduler-exporter 0.2.6
File Interpreter ABI Platform Actions
apscheduler_exporter-0.2.6-py3-none-any.whl Python 3 none any Details for apscheduler_exporter-0.2.6-py3-none-any.whl

Total release size: 7.4 kB

Release files / apscheduler_exporter-0.2.6.tar.gz

Download URL apscheduler_exporter-0.2.6.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
354916ce2d26126693980c66dd157227d9753d3ed52b57e0d7e11939e855b7cd
BLAKE2b-256 checksum
How to use checksums
351ca05a7f87b94bb15d6dfbff9522f8d6fb568d2eded6e220f44f0f7321c805
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / apscheduler_exporter-0.2.6-py3-none-any.whl

Download URL apscheduler_exporter-0.2.6-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b73a63cda56f251dc7551452f28d8766586249805fcd010794dcd04651e1bb0
BLAKE2b-256 checksum
How to use checksums
0c3d7e8515e53e36a3405380d2d08c4ee8a29804cd2fd08b7b30b98f2a33781e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for apscheduler-exporter 0.2.6

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page