Tickets Documents Updates ログイン

Configuring Grafana and Integrating with Slack

Setting up Grafana

  1. In the Grafana dashboard, set Opsgenie as the Notification Channel.
    1. Type : Opsgenie
    2. API Key : The API Key from the Grafana Integration created in Opsgenie
    3. Alert API Url : https://api.opsgenie.com/v2/alerts (Displayed in the Integration screen in Opsgenie)
    4. Click the Send Test button to check whether the configuration is correct. If properly configured, notifications will function as set in Opsgenie. 

      In the case of Test Notifications, the Alias is always registered as alertId-0. If the Alias is the same, Opsgenie considers it the same alert and does not generate a new notification — only the alert count increases. Even with the same Alias, if the previous alert is closed, a new alert will be created.

  2. In the chart of the dashboard from which you want to receive alerts, select the Edit menu, and set the alert conditions in the Alerttab.
    1. Charts with queries that include Variables cannot be used for alerts. A static query for each alert must exist, and it can be configured in the Metrics tab.
    2. Only one alert can be configured per chart.
    3. Include keywords that can identify the alert in each alert’s Message so that recipients can distinguish them by the notification message.

Integrating with Slack

[Reference] Notification Examples

https://docs.opsgenie.com/docs/voice-sms-notifications

Alert Detail

Detailed alert information within Opsgenie.

SMS

You will receive a message like this.

[Grafana]: Test notification https://opsg.in/a/t/skcc/9336


Email

Voice

Since it is an international call, after selecting a number, there is a delay of about 2 seconds before it takes effect. 

  • Press 1 to hear the contents of the Alert. 
  • Press 2 to close the Alert. 
  • Press 3 to acknowledge the Alert (if the Alert has not been acknowledged yet). 
  • Press 4 to escalate the Alert to the next recipient (if there is at least one escalation). 
    • If there is only one active escalation, it goes directly to the next recipient. 
    • If there are multiple escalations, it lists the names of active escalations and prompts you to select one. 
  • Press 5 to list the available custom actions that can be executed via phone. 
  • Press 6 to begin acknowledging all actions for the Alert. 
  • Press 7 to take ownership of the Alert (only if the Alert has already been acknowledged by someone else). 
  • Press * to repeat the options. 
  • Press 0 to end the call. 

Slack

An example of an Opsgenie notification displayed in a Slack channel. 

この回答は役に立ちましたか? はい いいえ

フィードバックを送信
お役に立てずに申し訳ございません。この記事を向上させるためにフィードバックをお願い致します。