{"categories":[{"label":"Monitoring","url":"https://skillfed.io/packages/category/system-monitoring/2"}],"enrichment":{"capability":"Connects to Prometheus monitoring systems and fetches time-series metrics via HTTP API, with tools for processing, aggregating, and optionally plotting or converting metrics to DataFrames.","skillfed_tags":["prometheus","metrics-collection","time-series"],"use_cases":["Fetch current or historical metrics from a Prometheus server for custom dashboards or alerting logic.","Aggregate and combine multiple time-series queries programmatically for analysis or reporting.","Export Prometheus metrics to pandas DataFrames for statistical analysis or machine-learning pipelines.","Build monitoring automation that queries Prometheus and triggers actions based on metric values.","Plot time-series data directly from Prometheus for ad-hoc visualization or debugging."],"what_it_does":"prometheus-api-client is a Python wrapper around Prometheus's HTTP API designed to simplify metrics collection and analysis. It provides the PrometheusConnect class for establishing connections to Prometheus servers, fetching metric lists, and executing instant and range queries. The library handles common tasks like label filtering, time-range chunking, and datetime parsing through its utils module.\n\nBeyond basic API wrapping, the package includes higher-level abstractions: MetricsList and Metric classes for working with result sets as objects, optional DataFrame conversion for data analysis workflows, and plotting support via matplotlib. Core dependencies are minimal (requests and dateparser), with pandas, numpy, and matplotlib available as optional extras. This modular design lets you use just the query layer without pulling in data-science dependencies if your use case doesn't need them.","worth_installing":"Yes. Active maintenance, permissive license, low install friction, no known vulnerabilities, and a straightforward API make this a solid choice for any Python application that needs to query Prometheus. Install the minimal version if you only need API access; add optional extras only if you need DataFrame or plotting support."},"id":"prometheus-api-client","links":{"html":"https://skillfed.io/packages/prometheus-api-client","md":"https://skillfed.io/packages/prometheus-api-client.md","pypi":"https://pypi.org/project/prometheus-api-client/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-04-13","license_spdx":null,"license_treatment":"permissive","name":"prometheus-api-client","python_support":"unspecified","summary":"A small python api to collect data from prometheus"},"popularity":{"monthly_downloads":2725574,"position":2919,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.7.2"}
