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

Add remote write for metric-explorer-prometheus #542

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

taikulawo
Copy link

@taikulawo
Copy link
Author

close #540

@taikulawo taikulawo changed the title Feat: metric-explorers-prometheus add remote write Feat: metric-explorer-prometheus add remote write Nov 3, 2024
prometheus_parse::Value::Counter(v) => v,
prometheus_parse::Value::Gauge(v) => v,
prometheus_parse::Value::Histogram(_) => {
Err("histogram not supported yet".to_string())?
Copy link
Author

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

@taikulawo taikulawo marked this pull request as ready for review November 3, 2024 09:01
@taikulawo taikulawo changed the title Feat: metric-explorer-prometheus add remote write Add remote write for metric-explorer-prometheus Nov 3, 2024
Copy link
Member

@tobz tobz left a 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.

@taikulawo
Copy link
Author

taikulawo commented Nov 4, 2024

I don't know too much inner detail about metrics. No idea how to build from inner type. But other codes should correct.

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

Successfully merging this pull request may close these issues.

2 participants