centralised grafana/loki/prometheus monitoring stack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
decentral1se 23788856fe
attempt to trim config
2 months ago
scripts move into root 2 months ago
.gitignore init 2 months ago
README.md mail mail mail 2 months ago
alertmanager.yml.tmpl setup root route 2 months ago
compose.yml attempt to trim config 2 months ago
env attempt to trim config 2 months ago
grafana_custom.ini attempt to trim config 2 months ago
loki.htpasswd.tmpl hackity hack hack loki now working 2 months ago
loki.yml.tmpl make loki work 2 months ago
nginx.conf.tmpl hackity hack hack loki now working 2 months ago
prometheus.yml.tmpl hacking, things work 2 months ago
prometheus_web.yml.tmpl hackity hack hack loki now working 2 months ago

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