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

Fix value on first fetch for connpool prometheus metrics #4620

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

JavierJF
Copy link
Collaborator

This PR fixes a minor inaccuracy present in the first fetch performed to connection pool prometheus metrics. The initial value for metrics using p_update_connection_pool_update_* helpers were missing.

This only affects to the first metrics fetch, during the metric creation on the internal maps, subsequent fetches will
find the already created metric and updated the value properly. As real counters are internal, this doesn't affect the correctness of the value in subsequent fetches.

The PR also improves prometheus metrics test with new checks for these metrics.

The initial value for metrics using 'p_update_connection_pool_update_*'
helpers were missing. This only affects to the first metrics fetch,
during the metric creation on the internal maps, subsequent fetches will
find the already created metric and updated the value properly. As
real counters are internal, this doesn't affect the correctness of the
value in subsequent fetches.
A issue was also fixed on test utilities for metrics parsing.
@JavierJF JavierJF force-pushed the v2.x-fix_connpool_metrics_init_val branch from 7cb5d78 to 99afddb Compare August 21, 2024 07:41
@renecannao renecannao merged commit a52fd0b into v2.x Aug 21, 2024
50 of 51 checks passed
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