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

Initialise reason="connect-timeout" series for cache operation_failures_total metric #545

Merged
merged 2 commits into from
Jul 12, 2024

Conversation

charleskorn
Copy link
Contributor

@charleskorn charleskorn commented Jul 12, 2024

What this PR does:

This PR adds the missing initialisation of the value of the operation_failures_total{reason="connect-timeout"} metric series for each cache operation type.

This ensures that the first failure due to connection timeout after a restart is observable with the rate() PromQL function.

All of the other reason values emitted by baseClient.trackError() are initialised to 0 at startup, this was the only missing one.

Which issue(s) this PR fixes:

(none)

Checklist

  • [n/a] Tests updated
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@charleskorn charleskorn changed the title Initialise reason="connect-timeout" series for memcached operation_failures_total metric Initialise reason="connect-timeout" series for cache operation_failures_total metric Jul 12, 2024
@charleskorn charleskorn force-pushed the charleskorn/memcached-metrics branch from 4e588d4 to 74a82ad Compare July 12, 2024 06:56
@charleskorn charleskorn merged commit b834d6b into main Jul 12, 2024
4 of 6 checks passed
@charleskorn charleskorn deleted the charleskorn/memcached-metrics branch July 12, 2024 07:11
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