From fb2513e3e073acfd7b377eeedef8f0c212208f2e Mon Sep 17 00:00:00 2001 From: Ulrich Wisser Date: Tue, 17 Jul 2018 16:46:54 -0400 Subject: [PATCH] expose stats.upstreams as web api /upstreams --- modules/http/prometheus.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/http/prometheus.lua b/modules/http/prometheus.lua index cf76ef4cf..cff4050df 100644 --- a/modules/http/prometheus.lua +++ b/modules/http/prometheus.lua @@ -164,7 +164,8 @@ M.deinit = snapshot_end M.endpoints = { ['/stats'] = {'application/json', getstats, stream_stats}, ['/frequent'] = {'application/json', function () return stats.frequent() end}, + ['/upstreams'] = {'application/json', function () return stats.upstreams() end}, ['/metrics'] = {'text/plain; version=0.0.4', serve_prometheus}, } -return M \ No newline at end of file +return M -- 2.47.2