From d0a0360e4f35770b60972110a9546cf97f65bff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Tue, 15 Aug 2023 09:59:44 +0200 Subject: [PATCH] Add prometheus web interface to docs --- docs/services/prometheus.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/services/prometheus.md b/docs/services/prometheus.md index 44803e2..a0b7924 100644 --- a/docs/services/prometheus.md +++ b/docs/services/prometheus.md @@ -72,6 +72,20 @@ prometheus_config_scrape_configs_additional: If you're scraping others services running in containers over the container network, make sure the Prometheus container is connected to their own network by adjusting `prometheus_container_additional_networks` as demonstrated above for [Integrating with Prometheus Node Exporter](#integrating-with-prometheus-node-exporter). +### Exposing the web interface + +By setting a hostname you will expose prometheus on this domain. +Usually you should also set up basic_auth in this case, otherwise everyone will be able to access your metrics + +```yaml +prometheus_hostname: prometheus.example.com + +# Uncommenting the following lines allows you to configure basic auth +# prometheus_basic_auth_enabled: true +# prometheus_basic_auth_username: '' +# prometheus_basic_auth_password: '' +``` + ## Recommended other services - [Grafana](grafana.md) - a web-based tool for visualizing your Prometheus metrics (time-series)