OBLYTECH Logo
OBLYTECH Logo

ServiceNow Event Management Push Connectors: Setup Steps

A push connector receives alerts that an external monitoring or APM tool sends and converts them into standard event records in ServiceNow Event Management. Setup has four steps: install the Event Management Connectors plugin, create a machine-type integration user with the evt_mgmt_integration role, configure the connector, and paste its generated URL into the source tool as a webhook.

How push connectors fit into Event Management

Event Management collects events through the instance and through a MID Server. A push connector covers the case where the monitoring tool starts delivery. The tool posts its alert payload to a generated address, and the connector parses that payload into an event record. Push connectors come from the Event Management Connectors plugin, which is installed separately and is available from the ServiceNow Store.

Each source tool posts to a connector URL; the connector and its URL pattern (source parameter naming the platform) determine how the payload is parsed. For observability and APM sources, the platform notes below cover the source-side webhook or integration for each tool. Which connector type fits a given source is a separate decision, covered in the guide to choosing an event connector. For wider routing options, see the integration patterns guide.

Prerequisites to check first

Before configuring anything, confirm these four items.

Prerequisite Why it matters
Event Management Connectors plugin installed Push connector definitions depend on it
Administrator role evt_mgmt_admin Needed to create and change connectors
Integration user with identity type Machine and role evt_mgmt_integration Lets the source authenticate without a person’s login
Configuration items for the monitored hosts Alerts bind to configuration items, and unmatched hosts arrive unbound

Assign the integration role to a dedicated account rather than an administrator’s login, so a leaked credential carries the integration role’s access rather than administrator rights.

Choosing between the instance and a MID Server

Each connector has a Type field. With Instance, the source posts directly to the instance, and parsing happens in a script inside the connector record. With MID, the source posts to the MID Server web service, and parsing happens in a transform script include whose name starts with TransformEvents_ followed by the source name. The MID route also needs the MID WebService Event Listener extension configured first.

Routing option Where parsing happens What you configure
Instance Script editor in the connector record Connector URL with a source parameter naming the platform
MID Transform script include on the MID Server MID Web Server extension, transform script name, MID Server URL

The MID Server needs Event Management or All in its Supported Applications list. For uninterrupted service, plan a failover MID Server cluster as well. Typically, the MID route suits sources inside a private network that cannot reach the instance, while the instance route suits cloud-hosted tools.

Authentication methods

Method How it works Role needed to create credentials
Basic Username and password, Base64-encoded, sent with each request user_admin
OAuth Scoped, expiring access tokens, so the source holds no reusable password oauth_admin
API key Unique secret identifying the caller Created during setup

OAuth suits enterprise environments because tokens expire and carry scope. Grafana and Azure Monitor offer all three methods. Datadog and Dynatrace offer OAuth and basic webhook authentication, while Instana uses a basic Authorization header, described below.

Platform setup notes

Prometheus

In Alertmanager, add a webhook under the receivers section, pointing at the ServiceNow endpoint with a source parameter naming Prometheus. Add a basic_auth block under http_config, then name that receiver in the route section. Write alert rules in PromQL, reference them under rules_files in prometheus.yml, and restart both services.

If a payload has no severity, the event defaults to Major, and you can change that in the Push Connector Configuration section. Hosts bind to cmdb_ci_hardware by default. For virtual machines, enable the Prometheus VM Binding event rule to bind to cmdb_ci_vm_object instead.

Grafana

For version 7.4.3, create a webhook notification channel with the endpoint, a source parameter naming Grafana, the POST method and the integration user’s credentials, then test the connection. For version 9.3.2, the same endpoint goes into a contact point, and a notification policy routes alerts to it through matchers.

Three details need attention. On version 7.4.3, alert tags need a count tag, or alerts will not close automatically in ServiceNow. Severity labels must be lower case: critical, major, minor or warning. That version can also create clear events not bound to an alert, which can be ignored.

Binding uses IP addresses, so hosts must be discovered as servers. Cloud-discovered items and virtual machine table entries do not bind, because Grafana supplies no object identifiers.

New Relic

In the newer console, create a webhook destination with the endpoint and basic authentication, then add it as a webhook channel on an alert policy. The payload template maps alert variables such as the incident identifier, severity and targets into JSON. Send a test notification, save the message, activate the workflow, and add alert conditions. The older console uses a notification channel with a base URL and basic authentication.

Host binding is on by default for Azure, AWS and GCP providers. If hosts were found through cloud discovery and sit in the virtual machine table, VM binding may not occur. Enabling the New Relic General event rule addresses that.

Instana

Add a generic webhook alert channel in Instana with the endpoint and a source parameter naming Instana. Add a custom HTTP header named Authorization, with the value Basic followed by the Base64 encoding of the username and password. Host entities bind to the server table and website entities to the HTTP(S) endpoint table. Other entity types need a row in the Instana ci_type Event Field Mapping table, or events may attach to the wrong configuration item.

Azure Monitor

Azure Monitor runs as an authenticated data source with OAuth, an API key or basic authentication, and the integration user needs evt_mgmt_integration. Run Azure cloud discovery first so alerts bind to configuration items.

The bi-directional connector sends state changes back. Acknowledging an alert in ServiceNow acknowledges the related Azure alerts, closing closes them, and reopening reopens them. The connector needs an Azure service principal with Microsoft.AlertsManagement permissions and the Monitoring Contributor role. The MID Server makes the state-change call, so its logs are the first place to check when portal alerts stop updating. It is supported in Quebec Patch 9 or later, Rome Patch 3 or later, and San Diego.

Datadog and Dynatrace

Datadog offers OAuth with monitor access tokens in V1 or V2 form, plus basic webhook authentication. For the full Datadog setup, see the ServiceNow and Datadog integration guide.

One Dynatrace behaviour affects reporting. When a problem reopens inside the reopening window, typically 30 minutes, its original start time is kept. Measure problem duration from the problem start time, not from an evidence timestamp. For the full Dynatrace setup, see the ServiceNow and Dynatrace integration guide.

Sending events through the web service API

If you control the sending code, the instance’s global event web service accepts JSON. Post a records array with application/json headers, batching records into one call. Business rules on the event table do not run through this endpoint. A second endpoint using the insertMultiple action does run them, but it is slower, so choose it when each incoming event must trigger business rules.

Field What to put in it
source Name of the event source type
event_class The specific source instance, such as product plus server
node Host name, FQDN, IP or MAC address; binds to a CI when one matches
resource The device or application, such as a disk or web application
metric_name The metric that triggered the alert
type A broader grouping for the event kind
message_key De-duplication key; defaults to source, node, type, resource and metric name
severity 1 Critical to 5 OK, with 0 for clear
additional_info Stringified JSON of supplemental key-value pairs
time_of_event Origin time in yyyy-MM-dd HH:mm:ss, GMT
resolution_state New or Closing, for monitors that use a close value

Do not add custom fields to the event table. Put extra data in additional_info, and keep the source’s original severity label there, because the severity field uses the standard scale. Set message_key when you have a better identifier than the default, so that two readings for one configuration item can share a key and map to the same alert.

Routing events into another domain

Domain separation lets a push connector create events in a domain other than the logged-in user’s or the MID Server’s. Enable the custom domain separation property first, and make sure the domain table, core_company by default, is itself domain separated. In the connector’s configuration list, add payloadDomainInfoFieldValue with a fixed domain identifier, or payloadDomainInfoFieldName with the payload key that holds it. If both are set, the field name takes precedence.

Frequently asked questions

Do I need the Event Management Connectors plugin for push connectors?

Yes. Push connectors come from that plugin, so it is a prerequisite for any tool you connect this way.

Should events go through the instance or a MID Server?

It depends on whether the source can reach the instance directly.

Why do some events arrive without a configuration item?

Binding depends on discovery and identifiers. Grafana binds through IP addresses, so its hosts must be discovered as servers. Azure Monitor needs cloud discovery first, and Instana entity types outside the host and website tables need a mapping row.

What severity does an event get when the payload has none?

For Prometheus, the default is Major, and you can change it in the push connector configuration. The standard scale runs from 1 Critical to 5 OK, with 0 reserved for clear.