prometheus / prometheus/client_python

API for simple readonly queries?

Open
#646 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
4.4k
Forks
876
Avg merge
8d 4h
Merged PRs (30d)
1

Description

My use case is fairly simple:

I'm looking for a Prometheus client in Python because I'm going to be doing some queries, e.g. (a picture is worth a thousand words, right?):

image

This project seems mostly designed for easily registering new metrics, gauges, etc., and pushing data to a Prom backend.

Am I missing something? Should I just use a generic HTTP client?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by reviewing the existing Python client API and Prometheus's query HTTP API, then determine whether a read-only query interface belongs in this project or should use a generic HTTP client; done would require a concrete API scope and acceptance criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
prometheus, python
Domain
api, observability
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.