Skip to content

Instantly share code, notes, and snippets.

@kocercan
kocercan / nginx-alertmanager-prometheus-grafana
Last active May 9, 2023 18:51 — forked from flaviocarmo/nginx-alertmanager-prometheus
Nginx reverse proxy for Prometheus, Alertmanager, Grafana one domain with subdirectories
# add to /lib/systemd/system/prometheus.service
# --web.external-url=https://monitoring.mydomain.com/prometheus/
# add to /lib/systemd/system/alertmanager.service
# --web.external-url=https://monitoring.mydomain.com/alertmanager \
# --web.route-prefix="/" \
# --cluster.advertise-address=0.0.0.0:9093
# systemctl daemon-reload
# systemctl restart prometheus alertmanager
#
cat <<EOF > /etc/nginx/conf.g/monitoring.conf