<@U088WCP3B4P> I want to get each elementary alert...
# ask-elementary-ai
a
@kapa.ai I want to get each elementary alert in separate message in slack. Provide example of command parameters
k
A message from kapa.ai
To ensure each Elementary alert is sent as a separate message in Slack (i.e., not grouped), you should set the
--group-alerts-threshold
parameter to a very high value or avoid setting it altogether, as grouping only occurs when the number of alerts exceeds the threshold. By default, Elementary will send individual alerts unless you have configured grouping. Here’s an example command to send each alert as a separate Slack message:
Copy code
edr monitor --slack-token <your_slack_token> --slack-channel-name <your_channel>
Or, if you are using a webhook:
Copy code
edr monitor --slack-webhook <your_slack_webhook_url>
If you want to explicitly ensure no grouping, you can set the threshold to a very high number (e.g., 9999):
Copy code
edr monitor --slack-token <your_slack_token> --slack-channel-name <your_channel> --group-alerts-threshold 9999
According to the documentation and support responses, unless you configure grouping (either via the
--group-alerts-threshold
flag or in your config), alerts should be sent individually by default. If you are seeing grouped alerts without having set this, check your configuration for any grouping settings and remove them if present. The default grouping threshold is 20, so setting a much higher value effectively disables grouping[Slack forum: grouping threshold](https://slack.com/archives/C02CTC89LAX/p1741623108619459) [Alerts CLI flags](https://docs.elementary-data.com/oss/guides/alerts/alerts-configuration#alerts-cli-flags).