centralised grafana/loki/prometheus monitoring stack
Go to file
2022-03-18 12:53:20 +01: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 move into root 2022-03-18 12:53:20 +01:00
compose.yml move into root 2022-03-18 12:53:20 +01:00
env move into root 2022-03-18 12:53:20 +01:00
grafana_custom.ini move into root 2022-03-18 12:53:20 +01:00
grafana-dashboards.yml move into root 2022-03-18 12:53:20 +01:00
grafana-datasources.yml move into root 2022-03-18 12:53:20 +01:00
grafana-stacks-dashboard.json move into root 2022-03-18 12:53:20 +01:00
grafana-swarm-dashboard.json move into root 2022-03-18 12:53:20 +01:00
grafana-traefik-dashboard.json move into root 2022-03-18 12:53:20 +01:00
loki.htpasswd.tmpl move into root 2022-03-18 12:53:20 +01:00
loki.yml.tmpl move into root 2022-03-18 12:53:20 +01:00
nginx.conf.tmpl move into root 2022-03-18 12:53:20 +01:00
prometheus_web.yml.tmpl move into root 2022-03-18 12:53:20 +01:00
prometheus.yml.tmpl move into root 2022-03-18 12:53:20 +01:00
README.md move into root 2022-03-18 12:53:20 +01:00

monitoring

grafana/loki/prometheus

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