Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement an integral() function #1335
Comments
This comment has been minimized.
This comment has been minimized.
|
This function already exists: |
This comment has been minimized.
This comment has been minimized.
|
Doesn't account for counter resets, though. |
beorn7
added
the
feature-request
label
Jan 22, 2016
This comment has been minimized.
This comment has been minimized.
|
As partly mentioned in #1334, integral() differs from sum_over_time() in that integral() results in a graph where all time series start at zero, whereas the starting value of sum_over_time() is arbitrary (whatever counters happened to be set to at that time). Is there a workaround for that? I guess there's a significant difference in approach between Prometheus and Graphite: Prometheus doesn't seem to have any functionality that recognizes the concept of an "observed timeframe" - everything is time windowed, probably to suit the alerting functionality, where only time windows have meaning. However, when graphing, the timeframe observed can be very meaningly, e.g. if you're trying to see the increase of things over that timeframe. |
This comment has been minimized.
This comment has been minimized.
|
I think the fundamental problem is the same as in #1334 . Let's dup this one and have the discussion only in that other issue. |
beorn7
closed this
Jan 22, 2016
beorn7
added
the
duplicate
label
Jan 22, 2016
This comment has been minimized.
This comment has been minimized.
cberner
commented
Jul 27, 2018
|
@beorn7, |
This comment has been minimized.
This comment has been minimized.
|
Yes, I think you are right. A different question is if such an integral function should be in PromQL. For such discussions, the prometheus-developers mailing list is much better suited than a GitHub issue. Ideally, you would present a few good use cases there and create a consensus that the feature is useful. Then, we can file a feature request issue here. |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
gtopper commentedJan 22, 2016
Similar to Graphite's integral(), and InfluxDB's planned INTEGRAL().
This would be useful as a workaround for #1334, and would have the added benefit of always starting at 0, as opposed to the arbitrary value the counter happens to have reached at the beginning of the displayed time frame.