-
Notifications
You must be signed in to change notification settings - Fork 0
feat(metrics): add lua script for prometheus metrics on latency #59
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: main
Are you sure you want to change the base?
Conversation
You have run out of free Bugbot PR reviews for this billing cycle. This will reset on October 10. To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial. |
f1b0dd6
to
d56628e
Compare
d56628e
to
cabf26f
Compare
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.
This is the final PR Bugbot will review for you during this billing cycle
Your free Bugbot reviews will reset on November 10
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
|
||
init_by_lua_block { | ||
local prom = require "docker.nginx.prometheus" | ||
prom.init() |
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.
Bug: Lua Module Path Mismatch Causes Runtime Errors
The require "docker.nginx.prometheus"
statement expects prometheus.lua
at docker/nginx/prometheus.lua
, but the file is installed at /etc/ggbridge/prometheus.lua
. This path mismatch prevents the module from loading, causing runtime errors in the init_by_lua_block
and log_by_lua_block
.
Additional Locations (1)
runtime: | ||
- nginx | ||
- nginx-mod-stream | ||
- lua-resty-core |
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.
local prometheus = require "resty.prometheus" | ||
prometheus:collect() | ||
} | ||
} |
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 description provided.