🌐
PyPI
pypi.org › project › prometheus-client
prometheus-client · PyPI
Python client for the Prometheus monitoring system.
      » pip install prometheus-client
    
Published: Apr 09, 2026
Version: 0.25.0
🌐
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 ·
🌐
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
      » pip install prometheus-client
    
Published: Apr 05, 2022
Version: 0.14.0
Find elsewhere
🌐
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:
🌐
GitHub
github.com › prometheus › client_python › releases
Releases · prometheus/client_python
Prometheus instrumentation library for Python applications - prometheus/client_python
Author: prometheus
🌐
Medium
medium.com › @simrankumari1344 › setting-up-prometheus-server-with-a-python-app-a-step-by-step-guide-fadba7d35dbe
Setting Up Prometheus Server with a Python App: A Step-by-Step Guide | by Simran Kumari | Medium
January 13, 2025 - The first step is to create a dummy Python app that Prometheus will scrape for metrics. Here’s how to get started: Install Prometheus Client Library Use the prometheus_client library in Python to expose 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(): # ...
🌐
DBI Services
dbi-services.com › accueil › instrument your python application with prometheus (part1)
Instrument your python application with Prometheus (Part1)
July 10, 2023 - Let’s start by installing the Prometheus client. To do this, we will execute the command pip install prometheus-client ... This command will allow us to install the library so that we can access it in our Python code.
🌐
PyPI
pypi.org › project › prometheus
prometheus · PyPI
Prometheus python client ================== Python 3 client library for [Prometheus](http://prometheus.io) that can serve data to prometheus (in text and protobuf formats) and also push data to a pushgateway.
🌐
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")