LogRocket Integration Guide
LogRocket is a JavaScript SDK which works by intercepting actions in your website/app, such as network requests, touch actions, and Redux events, and sending them to a remote server. It then creates meaningful insights and metrics from the data collected and helps clients monitor their front-end more effectively. TaskCall's LogRocket integration allows metric alerts from LogRocket to be converted to effective notifications and get Dev-Ops on-call responders to address major issues in real-time.
Pointers
- The integration is between a TaskCall service and LogRocket.
- Incidents will automatically resolve in TaskCall when LogRocket metrics fall back within the threshold.
- This integration only allows alerts to be received in TaskCall from LogRocket.
In TaskCall
- Go to Configurations > Integrations and click New Integration.
- Select the LogRocket integration.
- Give the integration a name and configure how incidents will be created. Only the Default Service field is required. The rest are optional.
- Incidents (Optional)
- TaskCall automatically maps incoming payloads with internal attributes to create incidents. However, this can be customized in the Incidents tab. Constant values can be included alongside placeholders to dictate which attributes should map to the Incident Title, Description, Tags, Snapshots and Vendor URL. To insert a placeholder use double curly braces.
For example, if you enter {{ alert.title }} in the Incident Title field, TaskCall will look for an attribute called "title" nested inside another attribute called "alert" in the incoming payload. If the nested attribute exists, its corresponding value will be pulled from the payload and inserted. If the nested attribute does not resolve successfully, TaskCall will fall back to the default mapping.
If you are unsure, please leave the fields empty. TaskCall will use the default mapping to create the incident for you. - Select the Urgency level the incident should be created at.
- Select the option to Group similar alerts together if you would like follow up triggers from the same alert source to be grouped into the same incident. If you leave this option unchecked, then a new incident will be created for every trigger. (This behavior is specific to new triggers; not updates to an alert.)
- Click Next to move on to the Services tab.
- TaskCall automatically maps incoming payloads with internal attributes to create incidents. However, this can be customized in the Incidents tab. Constant values can be included alongside placeholders to dictate which attributes should map to the Incident Title, Description, Tags, Snapshots and Vendor URL. To insert a placeholder use double curly braces.
- Services (Required)
- Select the Default Service incidents should be sent to. To route incidents to different services instead, set Map With Attribute to the attribute to route by using a placeholder. Then, map each value it can take to the service that should receive it.
For example, to route by a region attribute sent in the payload, set Map With Attribute to {{ region }}, then map US to one service and EU to another, and so on.
- Click Next to move on to the Authorization tab.
- Select the Default Service incidents should be sent to. To route incidents to different services instead, set Map With Attribute to the attribute to route by using a placeholder. Then, map each value it can take to the service that should receive it.
- Authorization (Optional)
- The Authorization tab allows a Bearer Token and an IP Allowlist be added if you would like to restrict who is able to send alerts to this integration. If you are unsure, this can be skipped.
- Once done, click Save.
- Copy the Integration Url that is issued for the integration. This will be used to set up the notification in LogRocket.
In LogRocket
TaskCall's LogRocket integration allows metric alerts from LogRocket to be sent to TaskCall. Before setting up the integration please ensure that you have at least one dashboard set up with some metrics. The alert notifications have to be set up per metric alert.
- Go to Metrics. Click the options button on the top right corner of the metric that you would want to set up an alert for. Click Edit .
- On the next form that is shown, set up the metric as you want and then click Add Alert.
- Select the Webhook option and paste the Integration Url you copied over from TaskCall in the Webhook URL field. Set up the alerting rule and then ensure that the alert is Enabled.
- Click Save Chart.
- Done! Now you will be receiving alerts for this metric in TaskCall whenever your set threshold is breached. You can repeat the same process for other metrics.