mail mail mail
This commit is contained in:
parent
769fc6861a
commit
912daa0f2a
@ -20,6 +20,7 @@ pwgen -s 64 1; ./scripts/genpw.py # input password & get hashed output for secre
|
|||||||
printf <...> | docker secret create gp_monitoring_loki_admin_password_v1 -
|
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_alertmanager_smtp_password_v1 -
|
||||||
|
printf <...> | docker secret create gp_monitoring_grafana_smtp_password_v1 -
|
||||||
|
|
||||||
set -a && source env && set +a
|
set -a && source env && set +a
|
||||||
docker context use monitor.autonomic.zone
|
docker context use monitor.autonomic.zone
|
||||||
|
@ -9,6 +9,7 @@ services:
|
|||||||
secrets:
|
secrets:
|
||||||
- grafana_admin_password
|
- grafana_admin_password
|
||||||
- grafana_oauth_client_secret
|
- grafana_oauth_client_secret
|
||||||
|
- grafana_smtp_password
|
||||||
configs:
|
configs:
|
||||||
- source: grafana_custom_ini
|
- source: grafana_custom_ini
|
||||||
target: /etc/grafana/grafana.ini
|
target: /etc/grafana/grafana.ini
|
||||||
@ -189,6 +190,9 @@ secrets:
|
|||||||
grafana_oauth_client_secret:
|
grafana_oauth_client_secret:
|
||||||
external: true
|
external: true
|
||||||
name: ${STACK_NAME}_grafana_oauth_client_secret_${SECRET_GRAFANA_OAUTH_CLIENT_SECRET_VERSION}
|
name: ${STACK_NAME}_grafana_oauth_client_secret_${SECRET_GRAFANA_OAUTH_CLIENT_SECRET_VERSION}
|
||||||
|
grafana_smtp_password:
|
||||||
|
external: true
|
||||||
|
name: ${STACK_NAME}_grafana_smtp_password_${SECRET_GRAFANA_SMTP_PASSWORD_VERSION}
|
||||||
prometheus_admin_password_hashed:
|
prometheus_admin_password_hashed:
|
||||||
external: true
|
external: true
|
||||||
name: ${STACK_NAME}_prometheus_admin_password_hashed_${SECRET_PROMETHEUS_ADMIN_PASSWORD_HASHED_VERSION}
|
name: ${STACK_NAME}_prometheus_admin_password_hashed_${SECRET_PROMETHEUS_ADMIN_PASSWORD_HASHED_VERSION}
|
||||||
|
9
env
9
env
@ -40,7 +40,7 @@ GRAFANA_DASHBOARDS_YML_VERSION=v1
|
|||||||
GRAFANA_SWARM_DASHBOARD_JSON_VERSION=v1
|
GRAFANA_SWARM_DASHBOARD_JSON_VERSION=v1
|
||||||
GRAFANA_STACKS_DASHBOARD_JSON_VERSION=v1
|
GRAFANA_STACKS_DASHBOARD_JSON_VERSION=v1
|
||||||
GRAFANA_TRAEFIK_DASHBOARD_JSON_VERSION=v1
|
GRAFANA_TRAEFIK_DASHBOARD_JSON_VERSION=v1
|
||||||
GRAFANA_CUSTOM_INI_VERSION=v2
|
GRAFANA_CUSTOM_INI_VERSION=v3
|
||||||
PROMETHEUS_WEB_YML_VERSION=v2
|
PROMETHEUS_WEB_YML_VERSION=v2
|
||||||
ALERTMANAGER_CONFIG_VERSION=v2
|
ALERTMANAGER_CONFIG_VERSION=v2
|
||||||
NGINX_CONFIG_VERSION=v5
|
NGINX_CONFIG_VERSION=v5
|
||||||
@ -60,5 +60,10 @@ SECRET_LOKI_ADMIN_PASSWORD_HASHED_VERSION=v1
|
|||||||
SECRET_SWARM_DEMO_ADMIN_PASSWORD_VERSION=v1
|
SECRET_SWARM_DEMO_ADMIN_PASSWORD_VERSION=v1
|
||||||
|
|
||||||
ALERTMANAGER_SMTP_FROM=noreply@autonomic.zone
|
ALERTMANAGER_SMTP_FROM=noreply@autonomic.zone
|
||||||
ALERTMANAGER_SMTP_HOST=mail.gandi.net:465
|
ALERTMANAGER_SMTP_HOST=mail.gandi.net:587
|
||||||
ALERTMANAGER_SMTP_TO=kaboom@autonomic.zone
|
ALERTMANAGER_SMTP_TO=kaboom@autonomic.zone
|
||||||
|
|
||||||
|
GRAFANA_SMTP_HOST=mail.gandi.net:587
|
||||||
|
GRAFANA_SMTP_USER=noreply@autonomic.zone
|
||||||
|
GRAFANA_SMTP_FROM_ADDRESS=noreply@autonomic.zone
|
||||||
|
SECRET_GRAFANA_SMTP_PASSWORD_VERSION=v1
|
||||||
|
@ -28,3 +28,11 @@ enabled = false
|
|||||||
|
|
||||||
[plugins]
|
[plugins]
|
||||||
enable_alpha = true
|
enable_alpha = true
|
||||||
|
|
||||||
|
[smtp]
|
||||||
|
enabled = true
|
||||||
|
host = {{ env "GRAFANA_SMTP_HOST" }}
|
||||||
|
user = {{ env "GRAFANA_SMTP_USER" }}
|
||||||
|
password = {{ secret "grafana_smtp_password" }}
|
||||||
|
from_address = {{ env "GRAFANA_FROM_ADDRESS" }}
|
||||||
|
startTLS_policy = MandatoryStartTLS
|
||||||
|
Loading…
Reference in New Issue
Block a user