Grafana Notification channel adding in config?

12/4/2018

I have installed Grafana in Kubernetes. I am trying to do everything automaticaly by scripts. I am able to intall grafana, import datasouce and dashobards. But i would like to also add a Notification channel to slack BUT not in web UI but somewhere in the config. It there any possibiluty to do that?

Jakub

-- JBB
channel
grafana
kubernetes
notifications

2 Answers

12/10/2018

I added nofitication channel with curl (API) to grafana.

-- JBB
Source: StackOverflow

1/25/2019

The easiest way for now to use Grafana API:

POST /api/alert-notifications


{
  "name": "new alert notification",  //Required
  "type":  "email", //Required
  "isDefault": false,
  "sendReminder": false,
  "settings": {
    "addresses": "carl@grafana.com;dev@grafana.com"
  }
}

Docs http://docs.grafana.org/http_api/alerting/#get-alert-notifications

-- Max
Source: StackOverflow