From 824c244d5971b9e96d3f2d1e7208b689e650d6a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0pa=C4=8Dek?= Date: Fri, 23 Oct 2020 14:33:33 +0200 Subject: [PATCH] prometheus: run on all instances --- modules/http/http.lua.in | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/http/http.lua.in b/modules/http/http.lua.in index c3a52cf5f..08101b924 100644 --- a/modules/http/http.lua.in +++ b/modules/http/http.lua.in @@ -347,10 +347,7 @@ end -- @function Init module function M.init() - -- collect and merge metrics only on leader - if worker.id == 0 then - worker.coroutine(prometheus.init) - end + worker.coroutine(prometheus.init) net.register_endpoint_kind('doh', cb_socket) net.register_endpoint_kind('webmgmt', cb_socket) end -- 2.47.2