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) add subsystem label to upstream's health info #7802

Merged
merged 1 commit into from
Sep 3, 2021

Conversation

gszr
Copy link
Member

@gszr gszr commented Sep 2, 2021

Ensure upstream's targets health metrics has an upstream label to indicate which upstream that metric originates.

@gszr gszr requested a review from fffonion September 2, 2021 16:19
@gszr gszr force-pushed the fix/prometheus-health-subsystem-label branch from c50c5f0 to e3480cc Compare September 2, 2021 16:30
Copy link
Contributor

@fffonion fffonion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall, one comment for better performance during scraping

kong/plugins/prometheus/exporter.lua Outdated Show resolved Hide resolved
@gszr gszr force-pushed the fix/prometheus-health-subsystem-label branch from e3480cc to c319a41 Compare September 3, 2021 13:57
@gszr gszr requested a review from fffonion September 3, 2021 13:58
@gszr gszr merged commit 8e4c003 into master Sep 3, 2021
@gszr gszr deleted the fix/prometheus-health-subsystem-label branch September 3, 2021 16:26
@gszr
Copy link
Member Author

gszr commented Sep 3, 2021

The motivation for this PR is to disambiguate the health metrics for stream and HTTP subsystems -- in this sense, it could be seen as a "fix", as the old behavior causes confusion. However, it's adding a new label, so I am hesitant to give it a "fix" scope.

@fffonion
Copy link
Contributor

fffonion commented Sep 6, 2021

I think a fix lable makes sense here, though for example user will see different color of lines in grafana after this PR,
their alerting and graph should just work as it before. And it actually makes our official grafana dashboard's upstream
section actully readable. So I'm +1 on making this a fix.

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.

None yet

2 participants