aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_http_openmetrics.lua16
1 files changed, 7 insertions, 9 deletions
diff --git a/plugins/mod_http_openmetrics.lua b/plugins/mod_http_openmetrics.lua
index 78cd6fd4..0c204ff4 100644
--- a/plugins/mod_http_openmetrics.lua
+++ b/plugins/mod_http_openmetrics.lua
@@ -51,12 +51,10 @@ function get_metrics(event)
return registry:render();
end
-function module.add_host(module)
- module:depends "http";
- module:provides("http", {
- default_path = "metrics";
- route = {
- GET = get_metrics;
- };
- });
-end
+module:depends "http";
+module:provides("http", {
+ default_path = "metrics";
+ route = {
+ GET = get_metrics;
+ };
+});