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.1.tar.gz (3.1 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.1-py2.py3-none-any.whl (3.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for pytest_prometheus_pushgw-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dc7434db8698d3b408fed66de27b358364031a67e73e0b565257fe0ca20b6270
MD5 1944e51b4655075df900a87394fbb181
BLAKE2b-256 832be34059699cee4644e2ee00c3586db30ca05d3699d2299a841cfb0102b15b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_prometheus_pushgw-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 689f9a5091f39401e6a364b7b5ac3783057e143aeff72be3ec2210915d83617f
MD5 dfa8f78a431bed18ec6a62a81dcc9261
BLAKE2b-256 6565191d313edd58c9b848b29b884bda07d0f3f2b8dd5137d3dd3e5e1c4de3c4

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