-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat: incident.io Notifier #4372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: incident.io Notifier #4372
Conversation
98ed08f
to
416cac1
Compare
2de7c7f
to
118a310
Compare
- Adds the technical implementation, and tests, for the incident.io notifier - Configured through the following config: ```yaml receivers: - name: 'incidentio-notifications' incidentio_configs: - url: '$alert_source_url' alert_source_token: '$alert_source_token' ``` Signed-off-by: Rory Malcolm <[email protected]>
118a310
to
4bc00a7
Compare
@@ -521,6 +528,49 @@ func (c *SlackConfig) UnmarshalYAML(unmarshal func(interface{}) error) error { | |||
return nil | |||
} | |||
|
|||
// IncidentioConfig configures notifications via incident.io. | |||
type IncidentioConfig struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about adding a field Metadata
to this struct? Something similar to the Details
field in the OpsgenieConfig
struct.
This would enable users to define additional data (see incident.io API definition for reference).
17d6a6f
to
255befe
Compare
You have some lint failures in |
8f16fcd
to
bbc39ce
Compare
You still have some failing tests I'm afraid https://github.com/prometheus/alertmanager/actions/runs/14933150149/job/41982648209?pr=4372
|
- Made a change to demarcate `AlertSourceToken` as required - Now error if an authorization header is set, and a alert_source_token is set - Ensure the alert source endpoint is no longer secret - Add documentation for the incidentio_config Signed-off-by: Rory Malcolm <[email protected]>
bbc39ce
to
07604e3
Compare
Ah - apols; fixed! |
Closes #4367
Adds the technical implementation, and tests, for the incident.io notifier
Configured through the following config: