Integrate Grafana events with basic authentication
Integrate Grafana with Event Management by adding a standard webhook in the Grafana console.
Vorbereitungen
- Ensure that the Event Management Connectors (sn_em_connector) plugin is installed on the ServiceNow AI Platform instance.
- The Event Management plugin must be installed on the ServiceNow AI Platform instance.
- The CI binding happens through the IP, instances should be discovered as servers to initiate the binding. CIs discovered through cloud or CIs in cmdb_ci_vm_object don’t get bounded as Grafana doesn't provide any information for object IDs.
- Role required: evt_mgmt_integration
Warum und wann dieser Vorgang ausgeführt wird
Configure the Event Management environment for the collection of events from Grafana. In your Grafana console, set your ServiceNow AI Platform instance as the rest endpoint using a standard webhook.
Hinweis:
Perform steps 1 and 2 for Grafana v7.4.3. For Grafana v9.3.2.
skip to step 3.
Prozedur
Grafana v7.4.3
-
In the Grafana console, create a notification channel.
-
In the Grafana console, create alerting rules.
Grafana v9.3.2.
-
In the Grafana console, create a contact point.
-
In the Grafana console, create a notification policy.
-
In the Grafana console, create alert rules.
Ergebnisse
Alerts start flowing from Grafana into the Event Management plugin. The plugin extracts information from the original Grafana alert message to populate the required event fields and inserts the event into the database. In your ServiceNow AI Platform instance, navigate to All Events to see the events.
Hinweis:
- For Grafana v7.4.3, you may see extra clear events coming into ServiceNow which aren’t bound to an alert. Ignore them as they’re created to overcome the issue of Grafana not sending information in the clear notification.
- A severity parameter is added which is used only for Grafana 8 and above. The provided value is used as a severity for an event if the severity isn’t passed in custom labels.