Skip to content

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

Merged
rob-bygrave merged 1 commit into
masterfrom
feature/timedMetric-max-reset
Jun 2, 2026
Merged

Add collectMetrics(reset) option, with change to query time metric MA…#3774
rob-bygrave merged 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
@rob-bygrave rob-bygrave merged commit 94e63cc into master Jun 2, 2026
1 check passed
@rob-bygrave rob-bygrave deleted the feature/timedMetric-max-reset branch June 2, 2026 02:48
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