Skip to content

diskq/diskq-global-metrics: use metrics cache to keep counters alive#182

Merged
bshifter merged 2 commits intoaxoflow:mainfrom
alltilla:global-disk-buffer-metrics-fix
Jul 3, 2024
Merged

diskq/diskq-global-metrics: use metrics cache to keep counters alive#182
bshifter merged 2 commits intoaxoflow:mainfrom
alltilla:global-disk-buffer-metrics-fix

Conversation

@alltilla
Copy link
Member

Depends on #180

We do not show the orphaned metrics in the prometheus stats output. Registering, incrementing then unregistering
the counter makes it orphaned.

This can be solved with binding the lifecycle of the counters to the diskq_global_metrics instance.

No news file entry is needed, the counters disappeared after 4.7 was released.

Signed-off-by: Attila Szakacs [email protected]

@alltilla alltilla requested review from MrAnno and bshifter June 27, 2024 12:54
@alltilla alltilla changed the title Global disk buffer metrics fix diskq/diskq-global-metrics: use metrics cache to keep counters alive Jun 27, 2024
alltilla added 2 commits July 3, 2024 13:36
We do not show the orphaned metrics in the prometheus
stats output. Registering, incrementing then unregistering
the counter makes it orphaned.

This can be solved with binding the lifecycle of the counters
to the diskq_global_metrics instance.

Signed-off-by: Attila Szakacs <[email protected]>
@alltilla alltilla force-pushed the global-disk-buffer-metrics-fix branch from 759ca23 to fdf5ffc Compare July 3, 2024 11:36
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.

2 participants