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

Support Exemplars #73

Open
ktoso opened this issue Jul 13, 2022 · 0 comments
Open

Support Exemplars #73

ktoso opened this issue Jul 13, 2022 · 0 comments

Comments

@ktoso
Copy link
Collaborator

ktoso commented Jul 13, 2022

It's an experimental feature to corelate traces to metrics.

OpenMetrics introduces the ability for scrape targets to add exemplars to certain metrics. Exemplars are references to data outside of the MetricSet. A common use case are IDs of program traces.

Exemplar storage is implemented as a fixed size circular buffer that stores exemplars in memory for all series. Enabling this feature will enable the storage of exemplars scraped by Prometheus. The config file block storage/exemplars can be used to control the size of circular buffer by # of exemplars. An exemplar with just a traceID= uses roughly 100 bytes of memory via the in-memory exemplar storage. If the exemplar storage is enabled, we will also append the exemplars to WAL for local persistence (for WAL duration).

https://prometheus.io/docs/prometheus/latest/feature_flags/#exemplars-storage

Not sure entirely where these are attached when emitting metrics, probably need some extra metadata param or something

@ktoso ktoso changed the title Support Expla Support Exemplars Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant