Alerts & Notifications2 min read

    How to Get Notified by Webhook

    Share

    What is Webhook Notification?

    Webhooks allow Xitoring to send HTTP POST requests with JSON payloads to any URL you specify whenever an incident occurs. This is the most flexible notification channel, enabling you to build custom integrations, trigger automations, or feed data into your own systems.

    Why Use Webhook Notifications?

    • Ultimate flexibility — Send alerts to any system with an HTTP endpoint
    • Custom integrations — Build your own alerting pipeline
    • Automation — Trigger scripts, runbooks, or auto-remediation
    • Data enrichment — Feed incident data into dashboards or analytics

    How to Configure Webhook Notifications

    Step 1: Prepare Your Endpoint

    1. Set up an HTTP endpoint that can receive POST requests
    2. Ensure it returns a 2xx status code on success
    3. Note down the URL

    Step 2: Create a Notification Role

    1. Log in to your Xitoring Dashboard
    2. Go to Settings → Notification Roles
    3. Click Create New Role
    4. Name it (e.g., "Custom Webhook")

    Step 3: Add the Webhook

    1. Click Add Contact in the notification role
    2. Select Webhook as the channel
    3. Enter your endpoint URL
    4. Configure any custom headers if needed

    Step 4: Test the Webhook

    1. Click Send Test to send a test payload
    2. Verify your endpoint received the request
    3. Check the payload structure for your integration

    Webhook Payload

    The webhook sends a JSON payload containing:

    • Incident type and severity
    • Monitor details (name, type, target)
    • Timestamp and duration
    • Status change information

    Best Practices

    • Implement retry logic on your endpoint for reliability
    • Use HTTPS endpoints for security
    • Validate incoming payloads using request signatures
    • Log received webhooks for debugging
    • Set up a fallback channel (email/SMS) in case your endpoint is down

    Learn More

    Explore all available Notification Channels to complement your webhook integration.