Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

real reference for API #1021

Open
ShashankSureshRotti opened this issue Apr 1, 2024 · 3 comments
Open

real reference for API #1021

ShashankSureshRotti opened this issue Apr 1, 2024 · 3 comments

Comments

@ShashankSureshRotti
Copy link

https://prometheus.github.io/client_python/

this is like a getting start hello world example

is there like a real API ref for the classes etc..

@kakkoyun
Copy link
Member

kakkoyun commented Apr 8, 2024

Thanks for reaching out.

That's true; we can add more complicated real-life examples. However, the package is also used by a significant number of open-source Python applications that are publicly available.

Please let us know if you have anything particular you would like to see in the docs.

@Azmisov
Copy link

Azmisov commented May 14, 2024

Yes, I would like to see API docs as well. Examples are fine, but you need to document the API. For example, creating a Gauge instance: the example given under the Gauge page doesn't document all the parameters that can be passed to the Gauge constructor, nor supplementary methods you can call like .labels.

@Digicrat
Copy link

Another vote for publishing a full API documentation (even just an auto-generated one).

More simply, I also suggest adding to the main "Getting Started" page links to a handful of those publicly available open-source applications using this API as real-world examples. The main Prometheus documentation includes links to many examples, but does not differentiate what language they are written in (most are in Go), making it difficult to find relevant Python-based examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants