-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(prometheus): use configure() handler to toggle upstream_health_me…
…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.
- Loading branch information
Showing
3 changed files
with
21 additions
and
25 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
changelog/unreleased/kong/prometheus-upstream-metrics-toggle.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
message: "**Prometheus**: Use the :configure() handler to toggle upstream_health_metrics" | ||
type: bugfix | ||
scope: Plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d40cedd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bazel Build
Docker image available
kong/kong:d40ceddb6ea9e2077c60f9d3e21c1ab7be4a0a4d
Artifacts available https://github.com/Kong/kong/actions/runs/12267782823