Splunk On-Call (VictorOps) Integration
Splunk On-Call (formerly VictorOps) is an Incident Management System that makes sure the right people get notified at the right time when something goes wrong. To integrate with Splunk On-Call:
From Splunk On-Call:
- Click on "settings" and under the "Alert Behavior" dropdown select "Routing Keys".
- Create or select a routing policy that will be used for Cronitor alerts. Make note of the routing key, you will need this later.
- Under the "Alert Behavior" dropdown select "Integrations". Click to add a "REST (Generic)" integration.
- Copy the provided URL and replace the
$routing_keytoken with the routing key from step 2. - You're done in Splunk On-Call. You'll need the URL later.
From Cronitor:
- From the Settings > Integrations page, click the Create Integration button and select Splunk On-Call.
- Give this integration a name. This will be used in the Cronitor UI.
- Give this integration a unique identifier. This can be used in the Cronitor API.
- Paste the provided Splunk On-Call URL into the Notification URL field and press "Create Integration" to complete the integration.
- Next, you'll be prompted to add this integration to one or more Notification Lists.
- You're done. You can repeat this process to connect Cronitor to different routing policies.
A job started, a job completed, and a heartbeat tick are sent with message_type INFO. Splunk's incident fields say INFO is a timeline entry that does not open an incident or page. RECOVERY is what resolves the incident identified by entity_id, and only another CRITICAL with that same id is documented to roll into an open incident. These notifications keep the monitor's entity_id and are not sent as RECOVERY. A failure is CRITICAL. A recovery is RECOVERY for that id, and also for the monitor code alone so an incident opened before the id included the environment still closes.
The kind of issue, e.g. Failed Execution, Missed Execution or SSL Expiring, is in the issue_type field. An alert and its recovery have the same value, so routing and filter rules can match on it.
From the API
Create this destination with the Integrations API.