GitHub
github.com › prometheus › client_python
GitHub - prometheus/client_python: Prometheus instrumentation library for Python applications · GitHub
The official Python client for Prometheus.
Author: prometheus
» pip install prometheus-client
11:47
Introduction to Python monitoring with Prometheus - YouTube
31:57
Monitor Your Python Applications with Prometheus & Grafana - YouTube
05:42
PROMETHEUS Metrics for your Python FastAPI App - YouTube
01:47
Mastering Prometheus Python Exporters for Custom Metrics Collection ...
12:35
Add custom metrics to FastAPI Server with prometheus_client | Python ...
client_python
prometheus.github.io › client_python
client_python
This tutorial shows the quickest way to get started with the Prometheus Python library. ... from prometheus_client import start_http_server, Summary import random import time # Create a metric to track time spent and requests made. REQUEST_TIME = Summary('request_processing_seconds', 'Time spent processing request') # Decorate function with metric.
Prometheus
prometheus.io › docs › instrumenting › clientlibs
Client libraries | Prometheus
Choose a Prometheus client library that matches the language in which your application is written. This lets you define and expose internal metrics via an HTTP endpoint on your application’s instance: Go · Java or Scala · Node.js · Python · Ruby · Rust ·
Readthedocs
prometheus-api-client-python.readthedocs.io › en › latest › source › prometheus_api_client.html
prometheus_api_client package — Prometheus Client API Python 0.0.1 documentation
A Class for collection of metrics from a Prometheus Host.
PyPI
pypi.org › project › prometheus-api-client
prometheus-api-client · PyPI
The prometheus-api-client library consists of multiple modules which assist in connecting to a Prometheus host, fetching the required metrics and performing various aggregation operations on the time series data.
» pip install prometheus-api-client
Published: Apr 13, 2026
Version: 0.7.2
Readthedocs
prometheus-api-client-python.readthedocs.io › en › latest
Welcome to Prometheus Client API Python’s documentation! — Prometheus Client API Python 0.0.1 documentation
Welcome to Prometheus Client API Python’s documentation!
PyPI
pypi.org › project › prometheus-client › 0.14.0
Prometheus Python Client
Python client for the Prometheus monitoring system.
» pip install prometheus-client
SUSE Package Hub
packagehub.suse.com › packages › python-prometheus_client
SUSE Package Hub - python-prometheus_client
The official Python 2 and 3 client for Prometheus.
SageMath
doc.sagemath.org › html › en › reference › spkg › prometheus_client.html
prometheus_client: Python client for the systems monitoring and alerting toolkit Prometheus - Packages and Features
The official Python 2 and 3 client for Prometheus (see https://prometheus.io), an open-source systems monitoring and alerting toolkit.
Better Stack
betterstack.com › community › guides › monitoring › prometheus-python-metrics
Python Monitoring with Prometheus (Beginner's Guide) | Better Stack Community
February 17, 2025 - This modification introduces the prometheus_client package and its generate_latest() function, which collects and returns metrics in a format that Prometheus can scrape. Once you've saved the file, visit http://localhost:8000/metrics in your browser or use curl to see the default Prometheus metrics: ... By default, Prometheus uses a global registry that automatically includes standard Python runtime and process-level metrics:
Starred by 274 users
Forked by 90 users
Languages: Python
client_python
prometheus.github.io › client_python › instrumenting › summary
Summary | client_python
April 24, 2026 - from prometheus_client import Summary, start_http_server TASK_DURATION = Summary( 'task_duration_seconds', 'Time spent processing background tasks', labelnames=['task_type'], namespace='myapp', ) def run_task(task_type, task): with TASK_DURATION.labels(task_type=task_type).time(): # ...
client_python
prometheus.github.io › client_python › exporting › http
HTTP/HTTPS | client_python
February 9, 2026 - client_cafile can be used to specify a certificate file containing a CA certificate chain that is used to validate the client certificate. client_capath can be used to specify a certificate directory containing a CA certificate chain that is used to validate the client certificate. If neither of them is provided, a default CA certificate chain is used (see Python ssl.SSLContext.load_default_certs()) from prometheus_client import start_http_server start_http_server(8000, certfile="server.crt", keyfile="server.key")