Skip to content

Commit

Permalink
Fix: Update Prometheus metric label from PromFeature to PromFilter
Browse files Browse the repository at this point in the history
Changed the Prometheus metric label to better align with the context in which it is being used. This ensures that the metric accurately reflects the specific aspect of the service being monitored.

Signed-off-by: Christian Roessner <c@roessner.co>
  • Loading branch information
Christian Roessner committed Sep 18, 2024
1 parent a42ea90 commit 0f66887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/lualib/filter/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ func setRequest(r *Request, L *lua.LState) *lua.LTable {
// It also calls the Lua function with the given parameters and logs the result.
// The function will return a boolean indicating whether the Lua function was called successfully, and an error if any occurred.
func executeScriptWithinContext(request *lua.LTable, script *LuaFilter, r *Request, ctx *gin.Context, L *lua.LState) (bool, error) {
stopTimer := stats.PrometheusTimer(global.PromFeature, script.Name)
stopTimer := stats.PrometheusTimer(global.PromFilter, script.Name)

defer stopTimer()

Expand Down

0 comments on commit 0f66887

Please sign in to comment.