Skip to content

Add collectMetrics(reset) option, with change to query time metric MA…#3774

Open
rob-bygrave wants to merge 1 commit into
masterfrom
feature/timedMetric-max-reset
Open

Add collectMetrics(reset) option, with change to query time metric MA…#3774
rob-bygrave wants to merge 1 commit into
masterfrom
feature/timedMetric-max-reset

Conversation

@rob-bygrave
Copy link
Copy Markdown
Contributor

…X value to reset

So the desire here is to better support sending metrics to Prometheus style metrics collectors that prefer CUMULATIVE metrics rather than DELTA based metrics.

To do this, expose additional MetaInfoManager.collectMetrics(reset) method.

In supporting this, the MAX value really does need to reset even with CUMULATIVE metrics and act more like a gauge as otherwise it becomes almost useless as the max value over the lifetime. So we need to adjust MAX to always reset and act like a gauge to be useful in this CUMULATIVE metrics reporting mode.

…X value to reset

So the desire here is to better support sending metrics to Prometheus style metrics collectors that prefer CUMULATIVE metrics rather than DELTA based metrics.

To do this, expose additional MetaInfoManager.collectMetrics(reset) method.

In supporting this, the MAX value really does need to reset even with CUMULATIVE metrics and act more like a gauge as otherwise it becomes almost useless as the max value over the lifetime. So we need to adjust MAX to always reset and act like a gauge to be useful in this CUMULATIVE metrics reporting mode.
@rob-bygrave rob-bygrave self-assigned this May 21, 2026
@rob-bygrave rob-bygrave added this to the 16.7.0 milestone May 21, 2026
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.

1 participant