-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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): conflict between global rule and route configure #6579
Changes from 2 commits
123d4c3
3670b1a
1fec699
88b1bb3
8af7fd5
854f777
b95a927
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -171,6 +171,8 @@ function _M.log(conf, ctx) | |||
|
||||
metrics.bandwidth:inc(vars.bytes_sent, | ||||
gen_arr("egress", route_id, service_id, consumer_name, balancer_ip)) | ||||
|
||||
core.log.info("prometheus run report") | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we check the result of prometheus instead of adding a new log just for testing? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is not just for testing purposes. Currently, there is no log output when prometheus reports data. I think adding this log will also help developers watch it while developing and debugging. what do you think? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A hit will increase the metric: apisix/apisix/plugins/prometheus/exporter.lua Line 153 in 1ac7166
There is no need to add another way. |
||||
end | ||||
|
||||
|
||||
|
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.
Does the
nginx-lua-prometheus
need update ?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.
No, APISIX from 2.7 to master,
nginx-lua-prometheus
has only one version upgrade, and this upgrade ofnginx-lua-prometheus
is not related to the current issue.https://github.com/knyar/nginx-lua-prometheus/blob/master/CHANGELOG.md#020220127