Skip to content

Conversation

ixxeL2097
Copy link
Collaborator

No description provided.

@ixxeL2097 ixxeL2097 self-assigned this Sep 23, 2025
Copy link

cursor bot commented Sep 23, 2025

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.

@ixxeL2097 ixxeL2097 force-pushed the fspiers/ENT-3136/lua-script-prometheus branch from f1b0dd6 to d56628e Compare September 24, 2025 07:54
@ixxeL2097 ixxeL2097 force-pushed the fspiers/ENT-3136/lua-script-prometheus branch from d56628e to cabf26f Compare October 10, 2025 14:40
Copy link

@cursor cursor bot left a 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()
Copy link

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)

Fix in Cursor Fix in Web

runtime:
- nginx
- nginx-mod-stream
- lua-resty-core
Copy link

Choose a reason for hiding this comment

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

Bug: Prometheus Module Missing in Dependency List

Prometheus functionality is broken because the lua-resty-prometheus package, which provides the resty.prometheus module used by prometheus.lua, is missing. Only lua-resty-core was added as a dependency.

Fix in Cursor Fix in Web

local prometheus = require "resty.prometheus"
prometheus:collect()
}
}
Copy link

Choose a reason for hiding this comment

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

Bug: Prometheus Metrics Initialization Failure

The /metrics endpoint calls prometheus:collect() without initializing a lua-resty-prometheus instance. This causes a runtime error and prevents it from accessing metrics stored in the prometheus_metrics shared dictionary, which the stream context uses.

Fix in Cursor Fix in Web

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.

1 participant