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

Discard Summary metrics #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

martin-magakian
Copy link

Reading the documentation, we can expect that sending "Summary metrics" will be discard as the documentation explain:

"Summaries are discarded"

It was collected and calling /metrics returns an error:
https://github.com/weaveworks/prom-aggregation-gateway/blob/master/cmd/prom-aggregation-gateway/main.go#L223

Copy link
Contributor

@bboreham bboreham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! One question about a change that looks unrelated/unnecessary.

Comment on lines +215 to +219
// Sort labels in case source sends them inconsistently
for _, m := range family.Metric {
sort.Sort(byName(m.Label))
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason to move this code?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea was to keep the validation first before doing actual work

@bboreham
Copy link
Contributor

bboreham commented Feb 4, 2020

Ok that should be in a separate commit, probably a separate PR.

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