Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

kandra: Close down services on prometheus host.

Alex Vandiver32023d7cf712
diff --git a/puppet/kandra/files/weblate_exporter b/puppet/kandra/files/weblate_exporter
index b31f19f32fa..3da3ae70668 100755
--- a/puppet/kandra/files/weblate_exporter
+++ b/puppet/kandra/files/weblate_exporter
@@ -259,7 +259,7 @@ def main() -> None:
token = secrets_file["secrets"]["weblate_api_key"]
handler = create_handler(WeblateMetricsCollector(token=token))
- server = HTTPServer(("", args.port), handler)
+ server = HTTPServer(("127.0.0.1", args.port), handler)
logger.info("Metrics available at http://localhost:%d/metrics", args.port)
diff --git a/puppet/kandra/manifests/vector.pp b/puppet/kandra/manifests/vector.pp
index 9126dd88007..bb59e6f4c51 100644
--- a/puppet/kandra/manifests/vector.pp
+++ b/puppet/kandra/manifests/vector.pp
@@ -54,7 +54,7 @@ class kandra::vector {
type = "internal_metrics"
[sinks.prometheus_exporter]
type = "prometheus_exporter"
- address = "0.0.0.0:9081"
+ address = "127.0.0.1:9081"
flush_period_secs = 120
suppress_timestamp = true
buckets = [0.001, 0.002, 0.005, 0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5]
diff --git a/puppet/kandra/templates/supervisor/conf.d/prometheus_pushgateway.conf.template.erb b/puppet/kandra/templates/supervisor/conf.d/prometheus_pushgateway.conf.template.erb
index f40238d3e69..9ab9ace2063 100644
--- a/puppet/kandra/templates/supervisor/conf.d/prometheus_pushgateway.conf.template.erb
+++ b/puppet/kandra/templates/supervisor/conf.d/prometheus_pushgateway.conf.template.erb
@@ -1,5 +1,5 @@
[program:prometheus_pushgateway]
-command=<%= @bin %>
+command=<%= @bin %> --web.listen-address=127.0.0.1:9091
priority=10
autostart=true
autorestart=true