summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Sun <tony.sun427@gmail.com>2021-04-28 09:48:43 -0700
committerTony Sun <tony.sun427@gmail.com>2021-04-28 09:48:43 -0700
commitba186bf89265f9e6602492db4efe5797a579e268 (patch)
tree215149270f40fb4a3d22f50cfeb76d159baf5eca
parentff2242c5f90fd307eb5df52bc09952b1e580e3f2 (diff)
downloadcouchdb-fix-additional-port-flag.tar.gz
fix default values for prometheus templatesfix-additional-port-flag
couch_prometheus's additional http server should be off by default and the port should have a default value of 17986 when running make release
-rwxr-xr-xconfigure1
-rw-r--r--rel/overlay/etc/default.ini2
2 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 0cfb469b0..07f02e802 100755
--- a/configure
+++ b/configure
@@ -220,6 +220,7 @@ cat > rel/couchdb.config << EOF
{node_name, "-name couchdb@127.0.0.1"}.
{cluster_port, 5984}.
{backend_port, 5986}.
+{prometheus_port, 17986}.
EOF
cat > install.mk << EOF
diff --git a/rel/overlay/etc/default.ini b/rel/overlay/etc/default.ini
index 58cd6a0a4..e267b4a30 100644
--- a/rel/overlay/etc/default.ini
+++ b/rel/overlay/etc/default.ini
@@ -694,6 +694,6 @@ writer = stderr
;cache_expiration_check_sec = 10
[prometheus]
-additional_port = true
+additional_port = false
bind_address = 127.0.0.1
port = {{prometheus_port}}