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

[Feature] Rollup: add (non-negative) derivative #10653

Open
sandervandegeijn opened this issue Oct 16, 2023 · 2 comments
Open

[Feature] Rollup: add (non-negative) derivative #10653

sandervandegeijn opened this issue Oct 16, 2023 · 2 comments
Labels
enhancement Enhancement or improvement to existing feature or request Search Search query, autocomplete ...etc

Comments

@sandervandegeijn
Copy link

Is your feature request related to a problem? Please describe.
Rollups support several types: avg, sum, etc. But there are counters, i.e. energy counters and snmp-traffic counters, that are represented by an increasing number. I'd like to store the delta's for these counters during the roll-up phase

Describe the solution you'd like
InfluxDB (and other time series databases) support something like a (non-negative-)derivative function to do this. It'll calculate the difference between the buckets and if the counter resets it'll ignore the negative value (and implement another function that doesn't do that btw)

Describe alternatives you've considered
Rollup with max and then using the dashboards visualisations function. But this only applies to dashboards and there are more use cases that could be served through the API.

Additional context
N/A

@sandervandegeijn sandervandegeijn added enhancement Enhancement or improvement to existing feature or request untriaged labels Oct 16, 2023
@ashking94 ashking94 added the Search Search query, autocomplete ...etc label Dec 26, 2023
@ashking94
Copy link
Member

@ict-one-nl - Can you elaborate more on the feature request?

@sandervandegeijn
Copy link
Author

Sure, what would you need? It's all about counter (some reset after power loss / end of day, some don't). You want to store the differences so you can easily calculate how much data was transferred or energy was used.

@ticheng-aws ticheng-aws removed the Other label Jan 4, 2024
@getsaurabh02 getsaurabh02 moved this from 🆕 New to Later (6 months plus) in Search Project Board Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request Search Search query, autocomplete ...etc
Projects
Status: Later (6 months plus)
Development

No branches or pull requests

4 participants