diff --git a/pkg/services/alerting/notifiers/slack.go b/pkg/services/alerting/notifiers/slack.go index 361dbb05ba5..0bc643212bd 100644 --- a/pkg/services/alerting/notifiers/slack.go +++ b/pkg/services/alerting/notifiers/slack.go @@ -60,7 +60,7 @@ func (this *SlackNotifier) Notify(context *alerting.EvalContext) { body := map[string]interface{}{ "attachments": []map[string]interface{}{ - map[string]interface{}{ + { "color": context.GetColor(), //"pretext": "Optional text that appears above the attachment block", // "author_name": "Bobby Tables", diff --git a/pkg/services/notifications/webhook.go b/pkg/services/notifications/webhook.go index d1e576d9321..31f00baebd3 100644 --- a/pkg/services/notifications/webhook.go +++ b/pkg/services/notifications/webhook.go @@ -67,7 +67,7 @@ func sendWebRequest(webhook *Webhook) error { } if resp.StatusCode != 200 { - return fmt.Errorf("Webhook response code %s", resp.StatusCode) + return fmt.Errorf("Webhook response code %v", resp.StatusCode) } defer resp.Body.Close()