I’m running Grafana 9.1.1. in a Docker container with dashboards, alerts, etc. provisioned. When starting the container I pass along some environment variables, one of them a MS Teams webhook so alerts can be posted in a Teams channel. Yet when checking the contact-point the url did not get replaced the value from the environment variable and instead contains the string “$TEAMS_WEBHOOK”.
Same approach used to work with Grafana 8.2.5 and the then called notifier.
Docker command
docker run -p 3000:3000 -e GF_SERVER_DOMAIN="localhost/" -e GF_SERVER_ROOT_URL="http://grafana.staged-by-discourse.com/" [...] -e TEAMS_WEBHOOK="https://..." -v "${PWD}"/alerting:/etc/grafana/provisioning/alerting --rm --name grafana grafana
contact-point.yaml
contactPoints:
- orgId: 1
name: Teams Alerting Channel
receivers:
- uid: Ha58HpZVzz
type: teams
settings:
url: $TEAMS_WEBHOOK
Contact Point in UI