Skip to main content

Pytest plugin to export test metrics to Prometheus Pushgateway

Project description

pytest_prometheus_pushgw

A lightweight pytest plugin to export test execution metrics to Prometheus Pushgateway.

🚀 Features

  • Automatically tracks:
    • Test pass/fail status
    • Test duration
    • Test execution counts
    • Histogram and summary of durations
  • Pushes metrics to Prometheus Pushgateway after each test

🧪 Installation

pip install pytest_prometheus_pushgw
  • Variables
    • PUSH_GW_URL: To set push gateway URL. Default is: localhost:9091
    • JOB_NAME : To set job name. Default is: pytest_execution_result_job

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest_prometheus_pushgw-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_prometheus_pushgw-0.1.0-py2.py3-none-any.whl (3.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pytest_prometheus_pushgw-0.1.0.tar.gz.

File metadata

File hashes

Hashes for pytest_prometheus_pushgw-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1e93e3a672db972f176558ff4df414dedab6eb4976d9aaca2e31912344c2606a
MD5 42db6c363cb5efd95d2acabc69289a1c
BLAKE2b-256 ea03c13d6f4f52f8574ecacf5482f28d6c2d2babd363c8bc92931ef81d0122d3

See more details on using hashes here.

File details

Details for the file pytest_prometheus_pushgw-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_prometheus_pushgw-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dcc65efa45c59bfc244ab7754419ee9ccf3ceb4b23b40012962d8ff45f60761f
MD5 02794936746ea585e063afbbf02ec0b3
BLAKE2b-256 5a47215efa416e6a99ec814fcf0cc238625e52be4e3e7216cdf135b603cf3964

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page