This commit is contained in:
Stanislav_Kopp 2025-07-16 08:58:51 +02:00
parent f5ca31d62c
commit 7b1947acd4

View file

@ -67,6 +67,17 @@ module "alerting" {
```
With this configuration you need to place your notification templates into `templates` folder and alert definitions in YAML format to `alerts` folder in same directoty where `main.tf`is located.
You can example for both in [examples](./examples/) folder.
For this example you need export your secret variables e.g. with lookup in Secret Manager.
```sh
export TF_VAR_grafana_url="<GRAFANA URL>"
export TF_VAR_grafana_username="admin"
export TF_VAR_grafana_password="xxxxxxx"
export TF_VAR_google_chat_url="https://chat.googleapis.com/v1/spaces/xxxxx"
export TF_VAR_datasource_url="https://xxxxx.stackit.cloud/instances/xxxxxx"
export TF_VAR_datasource_username="stackit9_xxxxx"
export TF_VAR_datasource_password="xxxxxx"
```
## Dashboard
TODO