You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by to...@apache.org on 2021/03/10 16:57:13 UTC

[couchdb] 01/03: Add new app couch_prometheus

This is an automated email from the ASF dual-hosted git repository.

tonysun83 pushed a commit to branch prometheus-endpoint
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit d20a7b3e8fb1f9f59b56a7c69badcdb614b92a09
Author: Tony Sun <to...@gmail.com>
AuthorDate: Wed Mar 10 08:13:51 2021 -0800

    Add new app couch_prometheus
    
    This will be a new app add a _prometheus endpoint which will
    return metrics information that adheres to the format described at
    https://prometheus.io/.
---
 rebar.config.script         | 1 +
 rel/reltool.config          | 2 ++
 src/couch/src/couch.app.src | 3 ++-
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/rebar.config.script b/rebar.config.script
index 544deb1..f4c6b04 100644
--- a/rebar.config.script
+++ b/rebar.config.script
@@ -146,6 +146,7 @@ SubDirs = [
     "src/setup",
     "src/smoosh",
     "src/ebtree",
+    "src/couch_prometheus",
     "rel"
 ].
 
diff --git a/rel/reltool.config b/rel/reltool.config
index 16096ce..9c59aa5 100644
--- a/rel/reltool.config
+++ b/rel/reltool.config
@@ -72,6 +72,7 @@
         smoosh,
         snappy,
         thrift_protocol,
+        couch_prometheus,
         %% extra
         recon
     ]},
@@ -143,6 +144,7 @@
     {app, smoosh, [{incl_cond, include}]},
     {app, snappy, [{incl_cond, include}]},
     {app, thrift_protocol, [{incl_cond, include}]},
+    {app, couch_prometheus, [{incl_cond, include}]},
 
     %% extra
     {app, recon, [{incl_cond, include}]}
diff --git a/src/couch/src/couch.app.src b/src/couch/src/couch.app.src
index 6116c79..74674bb 100644
--- a/src/couch/src/couch.app.src
+++ b/src/couch/src/couch.app.src
@@ -45,7 +45,8 @@
         couch_event,
         ioq,
         couch_stats,
-        hyper
+        hyper,
+        couch_prometheus
     ]},
     {env, [
         { httpd_global_handlers, [