‹ Plugins / Notifier
HTTP

Notifier

The Notifier plugin lets InfluxDB users send alerts through Slack, Discord, webhooks, SMS, or WhatsApp from one endpoint. It helps teams route issues to the right people faster, making alerting, automation, and escalation simpler and more reliable.

Configuration

This HTTP plugin receives all configuration via the request body. No trigger arguments are required.

Plugin metadata

This plugin includes a JSON metadata schema in its docstring that defines supported trigger types and configuration parameters. This metadata enables the InfluxDB 3 Explorer UI to display and configure the plugin.

Request body parameters

Send these parameters as JSON in the HTTP POST request body:

Parameter Type Default Description
notification_text string required Text content of the notification message
senders_config object required Configuration for each notification channel

Sender-specific configuration (in request body)

The senders_config object accepts channel configurations where keys are sender names and values contain channel-specific settings:

Slack notifications

Parameter Type Default Description
slack_webhook_url string required Slack webhook URL
slack_headers string none Base64-encoded JSON headers

Discord notifications

Parameter Type Default Description
discord_webhook_url string required Discord webhook URL
discord_headers string none Base64-encoded JSON headers

HTTP webhook notifications

Parameter Type Default Description
http_webhook_url string required Custom webhook URL for HTTP POST
http_headers string none Base64-encoded JSON headers

SMS notifications (via Twilio)

Parameter Type Default Description
twilio_sid string required Twilio Account SID (or use TWILIO_SID env var)
twilio_token string required Twilio Auth Token (or use TWILIO_TOKEN env var)
twilio_from_number string required Sender phone number in E.164 format
twilio_to_number string required Recipient phone number in E.164 format

WhatsApp notifications (via Twilio)

Parameter Type Default Description
twilio_sid string required Twilio Account SID (or use TWILIO_SID env var)
twilio_token string required Twilio Auth Token (or use TWILIO_TOKEN env var)
twilio_from_number string required Sender WhatsApp number in E.164 format
twilio_to_number string required Recipient WhatsApp number in E.164 format

Examples

Example 1: Slack notification

Send a notification to Slack:

curl -X POST http://localhost:8181/api/v3/engine/notify \
  -H "Authorization: Bearer $INFLUXDB3_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "notification_text": "Alert: High CPU usage detected on server1",
    "senders_config": {
      "slack": {
        "slack_webhook_url": "'"$SLACK_WEBHOOK_URL"'"
      }
    }
  }'

Set INFLUXDB3_AUTH_TOKEN and SLACK_WEBHOOK_URL to your credentials.

Expected output

Notification sent to Slack channel with message: “Alert: High CPU usage detected on server1”

Example 2: SMS notification

Send an SMS via Twilio:

curl -X POST http://localhost:8181/api/v3/engine/notify \
  -H "Authorization: Bearer $INFLUXDB3_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "notification_text": "Critical alert: System down",
    "senders_config": {
      "sms": {
        "twilio_from_number": "'"$TWILIO_FROM_NUMBER"'",
        "twilio_to_number": "'"$TWILIO_TO_NUMBER"'"
      }
    }
  }'

Set TWILIO_FROM_NUMBER and TWILIO_TO_NUMBER to your phone numbers. Twilio credentials can be set via TWILIO_SID and TWILIO_TOKEN environment variables.

Example 3: Multi-channel notification

Send notifications via multiple channels simultaneously:

curl -X POST http://localhost:8181/api/v3/engine/notify \
  -H "Authorization: Bearer $INFLUXDB3_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "notification_text": "Performance warning: Memory usage above threshold",
    "senders_config": {
      "slack": {
        "slack_webhook_url": "'"$SLACK_WEBHOOK_URL"'"
      },
      "discord": {
        "discord_webhook_url": "'"$DISCORD_WEBHOOK_URL"'"
      }
    }
  }'

Set SLACK_WEBHOOK_URL and DISCORD_WEBHOOK_URL to your webhook URLs.

Ready to get started?

Download InfluxDB 3 and have Notifier running in minutes.