-
Notifications
You must be signed in to change notification settings - Fork 159
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
Add remote write for metric-explorer-prometheus #542
base: main
Are you sure you want to change the base?
Conversation
close #540 |
prometheus_parse::Value::Counter(v) => v, | ||
prometheus_parse::Value::Gauge(v) => v, | ||
prometheus_parse::Value::Histogram(_) => { | ||
Err("histogram not supported yet".to_string())? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tobz I'm not sure how to process histogram and summary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well that was fast. :)
The comment about not knowing how to handle histograms/summaries highlights what I see as the biggest thing that needs to change with this PR: we shouldn't be generating the exposition format only then to parse it back into an intermediate representation only to then encode it a second time in the Remote Write format.
We should simply be writing a new method on Inner
that generates the encoded/compressed payload similar to how Inner::render
does it, by evaluating the individual counters, gauges, and histograms.
I don't know too much inner detail about metrics. No idea how to build from inner type. But other codes should correct. |
https://prometheus.io/docs/specs/remote_write_spec/