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

feat(functions): add support for consolidateBy #793

Closed
wants to merge 4 commits into from

Conversation

lordvidex
Copy link
Contributor

consolidateBy should send argument to backend so that metrics can be rollup using the aggregation function specified in the function.

- adding names to fields allows addition of other fields to
  MetricRequest without breaking backwards compatibility
@lordvidex
Copy link
Contributor Author

The first commit contains changes that should be reviewed while the second are refactor changes to make code compile properly.

@npazosmendez
Copy link
Collaborator

Hello!

consolidateBy should send argument to backend so that metrics can be rollup using the aggregation function specified in the function.

Are you suggesting to add this as an extension? AFAIK stock Graphite Web (+Whisper) does not support this. The aggregation function is already set and fixed on write time (through storage-aggregation.conf). The consolidation function is only used for post-rendering aggregation, to obey the max data points argument.

@deniszh
Copy link
Member

deniszh commented Aug 23, 2023 via email

@npazosmendez
Copy link
Collaborator

Right, thanks for clarifying @deniszh . So, to be clear, this is indeed a non standard extension, right?

BTW I don't think it's bad, but it's good to keep track of how carbonapi diverges from stock graphite, and put feature flags when desirable.

@Civil Civil enabled auto-merge February 12, 2024 21:19
@npazosmendez
Copy link
Collaborator

Probably closable since #830 was merged

@Civil
Copy link
Member

Civil commented Apr 25, 2024

Yeah, I'll close this one. But if you merged PR doesn't do what you think it should do - please create a new one.

@Civil Civil closed this Apr 25, 2024
auto-merge was automatically disabled April 25, 2024 21:29

Pull request was closed

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.

4 participants