From: Petr Špaček Date: Fri, 23 Oct 2020 12:33:33 +0000 (+0200) Subject: prometheus: run on all instances X-Git-Tag: v5.2.0~6^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=824c244d5971b9e96d3f2d1e7208b689e650d6a9;p=thirdparty%2Fknot-resolver.git prometheus: run on all instances --- 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