The Discord receiver is designed to retrieve Discord statistical data from a single Discord server: it generates metrics from the channel messages in the server.
This collector receiver works as a Discord application, so you need to prepare the token in advance.
The following settings are required:
token
: Discord API token for a server.server_wide
(default =false
): If it istrue
, the receiver collects statistics from all channels in the server. If it isfalse
, the receiver collects statistics per channel.buffer_interval
(default ="30s"
): Interval period to buffer Discord messages to collect metrics. Valid units are the ones supported bytime.ParseDuration
.
The following settings are optional:
channels
(dafault =""
): The list of channels to collect statistics from. If it is blank, all channels are collected. This setting is ignored ifserver_wide
istrue
.
Example:
receivers:
discord:
token: <YOUR_APPLICATION_TOKEN>
server_wide: false
buffer_interval: "1m"
channels:
- "general"
- "random"