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(prometheus): use configure() handler to toggle upstream_health_metrics #13983

Merged
merged 5 commits into from
Dec 11, 2024

Conversation

flrgh
Copy link
Contributor

@flrgh flrgh commented Dec 5, 2024

Summary

This setting was added before we had the :configure() phase handler and
relied instead on the :log() handler to toggle itself. I suspect that
there is some buggy behavior in this approach, but it's hard to craft a
test case to reliably confirm. In any case, this commit updates the
plugin to use the :configure() handler to toggle the setting, as this is
now the idiomatic way of performing this task.

Checklist

  • The Pull Request has tests (existing test coverage should be sufficient)
  • A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
  • There is a user-facing docs PR

Issue reference

KAG-5984

flrgh added 2 commits December 5, 2024 12:24
…trics

This setting was added before we had the :configure() phase handler and
relied instead on the :log() handler to toggle itself. I suspect that
there is some buggy behavior in this approach, but it's hard to craft a
test case to reliably confirm. In any case, this commit updates the
plugin to use the :configure() handler to toggle the setting, as this is
now the idiomatic way of performing this task.
@github-actions github-actions bot added plugins/prometheus cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee labels Dec 5, 2024
@flrgh flrgh marked this pull request as ready for review December 5, 2024 23:13
@flrgh flrgh requested review from fffonion, brentos, gszr and locao December 6, 2024 02:54
@pull-request-size pull-request-size bot added size/M and removed size/L labels Dec 7, 2024
@flrgh flrgh merged commit d40cedd into master Dec 11, 2024
34 checks passed
@flrgh flrgh deleted the fix/prometheus-upstream-metrics branch December 11, 2024 01:18
@team-gateway-bot
Copy link
Collaborator

Successfully created cherry-pick PR for master:

ProBrian pushed a commit that referenced this pull request Dec 13, 2024
…trics (#13983)

* fix(prometheus): use configure() handler to toggle upstream_health_metrics

This setting was added before we had the :configure() phase handler and
relied instead on the :log() handler to toggle itself. I suspect that
there is some buggy behavior in this approach, but it's hard to craft a
test case to reliably confirm. In any case, this commit updates the
plugin to use the :configure() handler to toggle the setting, as this is
now the idiomatic way of performing this task.

* tests(prometheus): swap setup/teardown for their lazy variants

* docs(prometheus): add changelog entry

* docs(prometheus): fix changelog entry

* Revert "tests(prometheus): swap setup/teardown for their lazy variants"

This reverts commit f97ab64.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee plugins/prometheus size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants