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.
|
1 year ago | |
---|---|---|
scripts | 1 year ago | |
.gitignore | 1 year ago | |
README.md | 1 year ago | |
alertmanager.yml.tmpl | 1 year ago | |
compose.yml | 1 year ago | |
env | 1 year ago | |
grafana_custom.ini | 1 year ago | |
loki.htpasswd.tmpl | 1 year ago | |
loki.yml.tmpl | 1 year ago | |
nginx.conf.tmpl | 1 year ago | |
prometheus.yml.tmpl | 1 year ago | |
prometheus_web.yml.tmpl | 1 year 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