centralised grafana/loki/prometheus monitoring stack
Go to file
decentral1se 912daa0f2a
mail mail mail
2022-03-31 13:04:09 +02:00
scripts move into root 2022-03-18 12:53:20 +01:00
.gitignore init 2022-03-17 11:15:51 +01:00
README.md mail mail mail 2022-03-31 13:04:09 +02:00
alertmanager.yml.tmpl setup root route 2022-03-30 12:33:43 +02:00
compose.yml mail mail mail 2022-03-31 13:04:09 +02:00
env mail mail mail 2022-03-31 13:04:09 +02:00
grafana_custom.ini mail mail mail 2022-03-31 13:04:09 +02:00
loki.htpasswd.tmpl hackity hack hack loki now working 2022-03-18 14:50:28 +01:00
loki.yml.tmpl make loki work 2022-03-30 13:05:19 +02:00
nginx.conf.tmpl hackity hack hack loki now working 2022-03-18 14:50:28 +01:00
prometheus.yml.tmpl hacking, things work 2022-03-18 16:19:19 +01:00
prometheus_web.yml.tmpl hackity hack hack loki now working 2022-03-18 14:50:28 +01:00

README.md

monitoring

grafana/loki/prometheus

setup

printf $(pass show hosts/swarm.autonomic.zone/minio/secret_key) | docker secret create gp_monitoring_loki_aws_secret_access_key_v1 -
printf password | docker secret create gp_monitoring_grafana_admin_password_v1 -
printf <...> | docker secret create gp_monitoring_grafana_oauth_client_secret_v1 -

pwgen -s 64 1; ./scripts/genpw.py # input password & get hashed output for secret
printf <...> | docker secret create gp_monitoring_prometheus_admin_password_v1 -

pwgen -s 64 1; ./scripts/genpw.py # input password & get hashed output for secret
printf <...> | docker secret create gp_monitoring_loki_admin_password_v1 -

printf <...> | docker secret create gp_monitoring_alertmanager_smtp_password_v1 -
printf <...> | docker secret create gp_monitoring_grafana_smtp_password_v1 -

set -a && source env && set +a
docker context use monitor.autonomic.zone

docker stack deploy -c compose.yml gp_monitoring

questions / TODO

  • how to load in secrets from multiple hosts & keep a recipe generic?
  • basic auth on gathering stack