-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Implement metrics metadata API #3345
Comments
+1 |
Hey, sorry for the lag! It's definitely quite easy to work to do, and something we also planned for Exemplars: #3435 Work that has to be done is really similar to what we did with @s-urbaniak when we enabled federated Rules APIs: c733564#diff-ae8f55a2dc006142e7688086d880b8aceaac7406e5f88243fb56215867448f3e The Rules API was the first one on top of StoreAPI so it requires more changes. From now one adding new API should be trivial. For example Targets API is in review and close to being merged: #3350 It's worth noting there are ideas to improve the code and configuration aspect a little bit but it's not blocking. Currently steps to add federated API to Querier:Will use @2nick contribution as an example as it was perfect. From very high level (you need to check PR for details)
Currently, it tells Querier what endpoints have what APIs (exemplars, Store, Target, rules, metadata etc) (:
NOTE: Make sure types have
e.g for sidecar e.g for merging results in querier:
|
@bwplotka Wow, thanks for providing such a detailed guide for implementing this change! Your definition of "trivial" may be different from mine, as it still seems like quite a large change in terms of lines of code and touched files (maybe several days worth of work for someone new to Thanos?). But at least it seems conceptually straightforward then what needs to be done, and with those detailed steps it's much easier for anyone to pick it up! |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
Currently multiple UI tools (such as PromLens and Grafana) surface metric metadata (HELP + TYPE information) to the user when building queries. This is very useful, but can only work when the PromQL-compatible endpoint also implements the metric metadata API endpoint (https://prometheus.io/docs/prometheus/latest/querying/api/#querying-metric-metadata). Thanos itself does not store this information for historical metrics yet, but it would be possible to obtain current metadata from Prometheus servers via a new feature in the Thanos Sidecar + Store protocol and then aggregate them into a response to the Query client. Would this be doable or am I missing something?
The text was updated successfully, but these errors were encountered: