When i am configuring slack and doing test its working and getting test message on slack but when i am creating alert then i am not receiving alert in slack channel.i checked the grafana logs and found below errors.please solve.
logger=alerting.notifier.slack level=error msg="Missing receiver
logger=alerting.notifier.slack level=error msg="Missing group labels
@usman.ahmad i have been done this and test is working but when i am creating alert for High CPU usage and set alert notification slack (Email notification working fine in this situation) then its not working.I am not able to find the any errors as well.
Ok If test alerts are getting received in slack that webhook is configured correctly. Now for your High CPU Usage alert, what datasource you are using?
Looking at the log lines you provided. It seems that you are missing labels in there, Can you please screenshots (or maybe a screencast) as how you are configuring your alert?
I think maybe you need to disable the SMTP (email) notification and only use the slack. Because I think by default in your notification policies the email is set to default.