DevOps,  Grafana,  Kubernetes,  Monitoring Tools

Grafana running on kubernetes: How to configure SMTP integration

Grafana has a built-in alerting system and it can be used to trigger email notifications whenever an alert is raised. This page shows you how to configure the integration with an external SMTP server.

  • Create a ConfigMap that includes the grafana.ini main configuration file
    • Sample ConfigMap yaml manifest:
apiVersion: v1
  grafana.ini: |
    check_for_updates = true
    url =
    mode = console
    data = /var/lib/grafana/
    logs = /var/log/grafana
    plugins = /var/lib/grafana/plugins
    provisioning = /etc/grafana/provisioning
    domain =
    enabled = true
    host =
    user =
    password = xxxxxxxxx
    startTLS_policy = MandatoryStartTLS
    skip_verify = true
    from_address =
    from_name = Grafana
kind: ConfigMap
  annotations: prometheus monitoring
  labels: prometheus Helm grafana 9.1.4 grafana-6.38.0
  name: prometheus-grafana
  namespace: monitoring
  • Restart grafana pod(s) to apply the new config described above:
# kubectl delete -n monitoring $(kubectl get pods -n monitoring -o=name -l