-
Notifications
You must be signed in to change notification settings - Fork 2.7k
feat: add additional handling of prometheus-cache in ngx_tpl.lua (#1212703) #12706
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
base: master
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
|
|
@@ -60,7 +60,7 @@ sleep 1 # wait for sync | |
|
|
||
| out="$(curl http://127.0.0.1:9091/apisix/prometheus/metrics)" | ||
| if ! echo "$out" | grep "apisix_stream_connection_total{route=\"1\"} 1" > /dev/null; then | ||
| echo "failed: prometheus can't work in stream subsystem" | ||
| echo "failed: prometheus can't work in both http & stream subsystem" | ||
|
Contributor
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. Additional testing is needed; the existing tests cannot verify whether prometheus-cache is correctly generated when use_apisix_base=false.
Contributor
Author
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. I didn't find out how to set use_apisix_base=false in ut environment, it's setted in env.lua:
Contributor
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. I checked the existing tests and didn't find anything related to |
||
| exit 1 | ||
| fi | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.