Skip to content

feat: add prometheus#1707

Merged
sumneko merged 2 commits into
LuaLS:masterfrom
evan361425:patch-1
Nov 22, 2022
Merged

feat: add prometheus#1707
sumneko merged 2 commits into
LuaLS:masterfrom
evan361425:patch-1

Conversation

@evan361425
Copy link
Copy Markdown
Contributor

Description by https://github.com/knyar/nginx-lua-prometheus

Usually it will be used by:

local prometheus = require("prometheus").init("prometheus_metrics")

not sure how to type the required module, helps needed.

@sumneko
Copy link
Copy Markdown
Collaborator

sumneko commented Nov 21, 2022

not sure how to type the required module, helps needed.

Add return PrometheusLib at the bottom of the file.

@evan361425
Copy link
Copy Markdown
Contributor Author

@sumneko fixed done, thanks!

@sumneko sumneko merged commit a933f2e into LuaLS:master Nov 22, 2022
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.

2 participants