Skip to content

fakerdeft/scouter-plugin-server-alert-discord

Repository files navigation

English | 한국어

Scouter Plugin Server Alert - Discord

A Scouter APM server plugin that sends alert notifications to Discord via webhook.

Based on scouter-plugin-server-null.

Features

  • Server Alert - Forwards Scouter server alerts to Discord with color-coded embeds
    • CPU usage (Warning / Fatal)
    • Memory usage (Warning / Fatal)
    • Disk usage (Warning / Fatal)
    • Agent connect / disconnect / reconnect
    • Any other alerts generated by Scouter
  • Slow API Detection - Monitors XLog and notifies when API response time exceeds the configured threshold

Installation

  1. Build the plugin:

    ./gradlew build
  2. Copy the built JAR to the Scouter server plugin directory:

    cp build/libs/scouter-plugin-server-alert-discord.jar /path/to/scouter-server/lib/
  3. Add the following properties to scouter.conf on your Scouter server:

    # (Required) Discord webhook URL
    ext_plugin_discord_webhook_url=https://discord.com/api/webhooks/your-webhook-url
    
    # (Optional) Timezone for timestamps (default: UTC)
    ext_plugin_discord_timezone=UTC
    
    # (Optional) Enable slow API detection via XLog (default: false)
    ext_plugin_discord_xlog_enabled=false
    
    # (Optional) Response time threshold in ms for slow API alerts (default: 2000)
    ext_plugin_discord_xlog_elapsed_threshold=2000
  4. Restart the Scouter server.

Alert Examples

Server Alert

Triggered when Scouter detects a server alert (CPU, Memory, GC, etc.).

Field Description
Time Alert timestamp
Level Info / Warn / Error / Fatal
Agent Scouter agent name
Title Alert title
Message Alert message detail

Slow API Alert

Triggered when an API response time exceeds the configured threshold.

Field Description
Time Detection timestamp
Agent Scouter agent name
API HTTP method + endpoint
Elapsed Response time in ms

Requirements

  • Scouter Server 1.8.x+
  • Java 8+

License

This project is licensed under the Apache License 2.0.

Based on Scouter APM and scouter-plugin-server-null.

About

Scouter server plugin for alerting by discord

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages