Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

SDK Prometheus HTTP API bindings/client: Quality and Discoverability

41 views
Skip to first unread message

Bartłomiej Płotka

unread,
Nov 27, 2024, 5:31:11 AM11/27/24
to Prometheus Developers
Hi!

Given PromQL and Prometheus API adoption by many, I wonder if there's a room for improvement around programmatic use of our APIs. However, this space is a bit inconsistent and undocumented.

In Prometheus client_golang we maintain API binding (experimental): https://pkg.go.dev/github.com/prometheus/client_golang/api - but I don't see any other official lib containing HTTP API bindings.

For other langs I see libs in the community e.g. https://github.com/mckang/promql_java_client, https://github.com/anhdat/prometheus4j and so https://pypi.org/project/promql-http-api/

I wonder, is there a passion to:

1. Document existing libraries for each language in Prometheus website?
2. Develop one binding that rule tham all, with the use of https://swagger.io/specification/ and generators?

Kind Regards
Bartek Plotka @bwplotka

Kemal Akkoyun

unread,
Dec 1, 2024, 12:17:54 PM12/1/24
to Bartłomiej Płotka, Prometheus Developers

Improving the programmatic use of Prometheus APIs sounds like a great idea. Defining an OpenAPI spec and generating SDKs would bring much-needed consistency across languages.

I’m happy to help with defining the spec and generating the code. 

Let’s make it happen!

--
Kemal Akkoyun


--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/prometheus-developers/ef066893-a7b8-4f5c-9597-5fde4aa2e1ebn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages