centralised grafana/loki/prometheus monitoring stack
Go to file
2022-03-30 12:33:43 +02:00
scripts move into root 2022-03-18 12:53:20 +01:00
.gitignore init 2022-03-17 11:15:51 +01:00
alertmanager.yml.tmpl setup root route 2022-03-30 12:33:43 +02:00
compose.yml hacking, things work 2022-03-18 16:19:19 +01:00
env setup root route 2022-03-30 12:33:43 +02:00
grafana_custom.ini allow grafana experimental alert manager 2022-03-30 12:14:53 +02:00
loki.htpasswd.tmpl hackity hack hack loki now working 2022-03-18 14:50:28 +01:00
loki.yml.tmpl hackity hack hack loki now working 2022-03-18 14:50:28 +01:00
nginx.conf.tmpl hackity hack hack loki now working 2022-03-18 14:50:28 +01:00
prometheus_web.yml.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
README.md hackity hack hack loki now working 2022-03-18 14:50:28 +01:00

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 -

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