- PagerDuty /
- Integrations /
- Scalyr Integration Guide
Scalyr Integration Guide
In PagerDuty
-
From the Configuration menu, select Services.
-
On your Services page: If you are creating a new service for your integration, click +Add New Service. If you are adding your integration to an existing service, click the name of the service you want to add the integration to. Then click the Integrations tab and click the +New Integration button.
-
Select your app from the Integration Type menu and enter an Integration Name. If you are creating a new service for your integration, in General Settings, enter a Name for your new service. Then, in Incident Settings, specify the Escalation Policy, Notification Urgency, and Incident Behavior for your new service.
-
Click the Add Service or Add Integration button to save your new integration. You will be redirected to the Integrations page for your service.
In Scalyr
-
Click the Alerts navigation link, then click Edit Alerts.
-
Edit the Alerts configuration file to specify PagerDuty as the alert recipient. To do this for all Scalyr alerts, create or edit analertAddress field at the top level of the file:
Replace XXXXX with the Integration Key you generated in PagerDuty (Step 6 above). To send notifications to one or more e-mail addresses in addition to PagerDuty, list them all in alertAddress:{ "alertAddress": "pagerduty:XXXXX", alerts: [ ... ] }
If you only want to use PagerDuty for certain alerts, you can specify an alertAddress field for those alerts:"alertAddress": "pagerduty:XXXXX, foo@example.com, bar@example.com",
To link a whole group of alerts to PagerDuty, specify an appropriatealertAddress for the group. See Specifying Alert Recipients.{ alertAddress: "email@example.com", alerts: [ // This alert will be sent to PagerDuty { trigger: "count:1m(error) > 10", "alertAddress": "pagerduty:XXXXX", }, // This alert will send notifications to email@example.com { trigger: "mean:10m($source='tsdb' $serverHost='server1' metric='proc.stat.cpu_rate' type='user') > 50" } ] }
Verify that Scalyr and PagerDuty are Communicating
You can verify that they are communicating by triggering a test alert. Once the alert clears, the incident will automatically be resolved within PagerDuty. Please note, it can take approximately five minutes before Scalyr will send out the RESOLVE notification to PagerDuty.FAQ
How can I setup Scalyr to be tied to multiple PagerDuty services?
You can create any number of Scalyr/Generic API services in PagerDuty, each with its own escalation policy. To link Scalyr to multiple services, simply enter the appropriate Integration Key in each alertAddress field. If you are having trouble completing the installation, please contact support.Ready to get started?
Try any product on the Operations Cloud for free.
No credit card required.