Skip to main content

astroctl notifications integrations configure

Configure a notification integration

Synopsis​

Configure a notification integration for your organization.

Integrations define where and how notifications are delivered. You can configure an email address or a Slack incoming webhook to receive notifications about your applications and clusters.

Once configured, integrations are automatically enabled and ready to receive notifications based on your subscription preferences.

A Slack webhook URL is a credential, so it is never shown again once saved: it is returned with its secret part replaced by asterisks. Configure the channel again with a complete new URL to replace it, and send a test message with "astroctl notifications integrations test --channel slack".

Terminal
astroctl notifications integrations configure [flags]

Examples​

Terminal

# Configure an email integration
astroctl notifications integrations configure --channel email --email admin@company.com

# Configure a Slack webhook integration (webhook will be tested automatically)
astroctl notifications integrations configure --channel slack --webhook-url https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX

# Configure a Slack webhook without testing (not recommended)
astroctl notifications integrations configure --channel slack --webhook-url https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX --skip-webhook-test

Options​

Terminal
--channel string Channel type (email, slack) (required)
--email string Email address (for email channel)
-h, --help help for configure
--skip-webhook-test Skip testing Slack webhook (not recommended)
--slack-channel string Slack channel name to record with the integration (optional; an incoming webhook posts to the channel it was created for)
--webhook-url string Webhook URL (for slack channel)

Options inherited from parent commands​

Terminal
-o, --output string Output format (table|json|yaml) (default "table")

SEE ALSO​