Prometheus Client

0.24.1 · active · verified Sat Mar 28

Python client for the Prometheus monitoring system, currently at version 0.24.1. It is actively maintained with frequent updates for enhancements and bug fixes.

Warnings

Install

Imports

Quickstart

Start a Prometheus server on port 8000.

from prometheus_client import start_http_server, CollectorRegistry
import time

registry = CollectorRegistry()
start_http_server(8000)
while True:
    time.sleep(1)

view raw JSON →