Skip to content

Discard Summary metrics#29

Open
martin-magakian wants to merge 1 commit intoweaveworks:masterfrom
keymantics:features/discard_summary_metrics
Open

Discard Summary metrics#29
martin-magakian wants to merge 1 commit intoweaveworks:masterfrom
keymantics:features/discard_summary_metrics

Conversation

@martin-magakian
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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