🌐
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 › source › prometheus_api_client.html
prometheus_api_client package — Prometheus Client API Python 0.0.1 documentation
This method takes as input a string which will be sent as a query to the specified Prometheus Host. This query is a PromQL query. ... params – (dict) Optional dictionary containing GET parameters to be sent along with the API request, such as “timeout”
🌐
Medium
ledinhcuong99.medium.com › prometheus-api-client-in-python-ec54291aa1a
Prometheus API Client in Python - Donald Le - Medium
January 19, 2021 - def print_metrics(): from prometheus_api_client import PrometheusConnect prom = PrometheusConnect(url="http://3.19.55.237:9090", disable_ssl=True) # Get the list of all the metrics that the Prometheus host scrapes print(prom.all_metrics()) # Press the green button in the gutter to run the script.
🌐
Readthedocs
prometheus-api-client-python.readthedocs.io › en › latest › _modules › prometheus_api_client › prometheus_connect.html
prometheus_api_client.prometheus_connect — Prometheus Client API Python 0.0.1 documentation
:param metric_name: (str) The name of the metric :param label_config: (dict) A dictionary that specifies metric labels and their values :param params: (dict) Optional dictionary containing GET parameters to be sent along with the API request, such as "time" :returns: (list) A list of current metric values for the specified metric :raises: (RequestException) Raises an exception in case of a connection error (PrometheusApiClientException) Raises in case of non 200 response status code Example Usage: ``prom = PrometheusConnect()`` ``my_label_config = {'cluster': 'my_cluster_id', 'label_2': 'label
🌐
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 · Python · Ruby · Rust · Unofficial third-party client libraries: Bash ·
      » pip install prometheus-client
    
Published: Apr 09, 2026
Version: 0.25.0
Find elsewhere
🌐
Read the Docs
app.readthedocs.org › projects › prometheus-api-client-python
Prometheus API client python - Read the Docs Community
Prometheus API client python · EN · artificial-intelligence prometheus prometheus-api prometheus-metrics · Maintainers · Repository 4n4nd/prometheus-api-client-python · Versions 3 Builds 46 ·
Starred by 274 users
Forked by 90 users
Languages: Python
🌐
GitHub
github.com › AICoE › prometheus-api-client-python
AICoE/prometheus-api-client-python · GitHub
August 24, 2020 - A python wrapper for the prometheus http api. Contribute to AICoE/prometheus-api-client-python development by creating an account on GitHub.
Author: AICoE
🌐
DBI Services
dbi-services.com › accueil › instrument your python application with prometheus (part1)
Instrument your python application with Prometheus (Part1)
July 10, 2023 - Prometheus has several official client libraries written in Go, Java, Python, Ruby, and Rust. Additionally, there are unofficial third-party client libraries available for other languages.
🌐
Embrace
embrace.io › code samples
Metrics API Code Samples - Embrace.io
from datetime import datetime from prometheus_api_client import PrometheusConnect, MetricsList, Metric, MetricSnapshotDataFrame, MetricRangeDataFrame from prometheus_api_client.utils import parse_datetime # Constants # Embrace prometheus public URL metrics_api_endpoint = 'https://api.embrace.io/metrics' # API-Token token = '<your token>' # Embrace AppId app_id = '<your app id>' # Connect library to Embrace prometheus host prom = PrometheusConnect(url=metrics_api_endpoint, headers={'Authorization': 'Bearer ' + token}) # Get the list of all available metrics metrics = prom.all_metrics() print(me
🌐
PyPI
pypi.org › project › promql-http-api
promql-http-api · PyPI
This python package provides a Prometheus HTTP API client library. It encapsulates and simplifies the collection of data from a Prometheus server.
      » pip install promql-http-api
    
Published: Jul 17, 2024
Version: 0.3.4
🌐
GitHub
github.com › 4n4nd › prometheus-api-client-python › tree › master › prometheus_api_client
prometheus-api-client-python/prometheus_api_client at master · 4n4nd/prometheus-api-client-python
A python wrapper for the prometheus http api. Contribute to 4n4nd/prometheus-api-client-python development by creating an account on GitHub.
Author: 4n4nd