URL: Your incident.io webhook URL, such as https://incident-io-my-url/api/public/v2/alert_events/chronosphere/01HZKELEKAMDNE8D9FNEKD
Add the URL from your incident.io dashboard, called as a POST request, to the
url key.
Apply the changes:
chronoctl apply -f FILE_NAME.yaml
Replace FILE_NAME with the name of your notifier YAML file.
To create a webhook notifier for incident.io:
Create a webhook notifier with Terraform by using the
chronosphere_webhook_alert_notifier type followed by a name in a resource
declaration:
resource "chronosphere_webhook_alert_notifier" "webhook_notifier" { name = "incident.io notifier" # Optional slug of the webhook notifier. slug = "incident-io-notifier" # Notifier-specific required configuration # Detailed definitions can be found at: https://prometheus.io/docs/alerting/latest/configuration/#webhook_config url = "https://incident-io-my-url/api/public/v2/alert_events/chronosphere/01HZKELEKAMDNE8D9FNEKD" ## (Optional) Base configuration common to all notifiers send_resolved = true # The default value ## (Optional) HTTP configuration common to HTTP notifiers basic_auth_username = "username" basic_auth_password = "strong+p@ssword" # Can use bearer_token instead of basic auth proxy_url = "https://my-proxy-url" tls_insecure_skip_verify = false}
Add the URL from your incident.io dashboard, called as a POST request, to the
url key.
Run terraform apply to create the notifier resource.
terraform apply
To complete this action with the Chronosphere API, use the webhook object in the
CreateNotifier endpoint.Because the Chronosphere API requires authentication, include an API token with your
curl request, as shown in the following example. For more details, see
Create an API token.
INSTANCE: The subdomain name for your organization’s Observability Platform instance.
METHOD: The HTTP method to use with the request, such as GET or POST.
ENDPOINT_PATH: The specific endpoint you want to access.
After creating your notifier, you can
create a notification policy
that uses the incident.io notifier you created.When you create a monitor in Observability
Platform, select the incident.io notification policy to send alerts from incident.io
to Observability Platform.