deploy alerta on grafana.hosts.hamburg.ccc.de
All checks were successful
/ Ansible Lint (push) Successful in 2m31s

This commit is contained in:
lilly 2026-04-23 22:36:45 +02:00
commit b10d7d1592
Signed by: lilly
SSH key fingerprint: SHA256:y9T5GFw2A20WVklhetIxG1+kcg/Ce0shnQmbu1LQ37g
8 changed files with 114 additions and 3 deletions

View file

@ -0,0 +1,30 @@
# {{ ansible_managed }}
# https://docs.alerta.io/configuration.html#authentication-settings
DEBUG = True
SECRET_KEY = "{{ secret__alerta_secret_key }}"
BASE_URL = "https://alerta.hamburg.ccc.de"
USE_PROXYFIX = True
AUTH_REQUIRED = True
USER_DEFAULT_SCOPES = ['read', 'write']
OAUTH2_CLIENT_ID = "alerta"
OAUTH2_CLIENT_SECRET = "{{ secret__alerta_oauth_client_secret }}"
# AUTH_PROVIDER = "keycloak"
# KEYCLOAK_URL = "https://id.hamburg.ccc.de"
# KEYCLOAK_REALM = "ccchh"
# ALLOWED_KEYCLOAK_ROLES = "*"
AUTH_PROVIDER = "openid"
OIDC_ISSUER_URL = "https://id.hamburg.ccc.de/realms/ccchh"
OIDC_VERIFY_TOKEN = True
ALLOWED_OIDC_ROLES = "*"
# AUTH_REQUIRED = True
# ADMIN_USERS = ['admin@alerta.io', 'devops@example.com']
# DEFAULT_ADMIN_ROLE = 'ops'
# ADMIN_ROLES = ['ops', 'devops', 'coolkids']
# USER_DEFAULT_SCOPES = ['read', 'write:alerts']
# CUSTOMER_VIEWS = True

View file

@ -9,6 +9,9 @@ route:
group_interval: 5m
repeat_interval: 26h
routes:
- receiver: alerta
matchers: {}
continue: true
- receiver: "null"
matchers:
- sendAlert = "false"
@ -73,3 +76,8 @@ receivers:
smarthost: "cow.hamburg.ccc.de:587"
auth_username: "alert-manager@hamburg.ccc.de"
auth_password: {{ secret__alert_manager_email_password }}
- name: "alerta"
webhook_configs:
- url: "http://alerta.hamburg.ccc.de/webhooks/prometheus"
send_resolved: true

View file

@ -105,9 +105,30 @@ services:
- 8011:8011
restart: unless-stopped
alerta-mongodb:
image: docker.io/mongodb/mongodb-community-server:8.2-ubi9-slim
container_name: alerta-mongodb
volumes:
- alerta_mongodb_data:/data/db
ports:
- 27017:27017
restart: unless-stopped
alerta-web:
image: docker.io/alerta/alerta-web:9.1.0
container_name: alerta-web
volumes:
- ./configs/alertad.conf:/app/alertad.conf:ro
environment:
- DATABASE_URL=mongodb://alerta-mongodb:27017/alerta
ports:
- 8012:8080
restart: unless-stopped
volumes:
graf_data: {}
prom_data: {}
alertmanager_data: {}
loki_data: {}
mimir_data: {}
alerta_mongodb_data: {}