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
Add VictorOps Receiver type to AlertmanagerConfig CRD #3701
Conversation
Thanks! cc @grdryn |
5df2d9f
to
1ccc228
Compare
2b59a11
to
a237070
Compare
@sev3ryn seems like this needs another rebase. :) Thanks for the hard work and patience! |
Sounds like a good plan! |
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.
Nice :) A few remarks only.
@@ -444,6 +446,29 @@ type EmailConfig struct { | |||
TLSConfig *monitoringv1.SafeTLSConfig `json:"tlsConfig,omitempty"` | |||
} | |||
|
|||
// VictorOpsConfig configures notifications via VictorOps. | |||
// See https://prometheus.io/docs/alerting/latest/configuration/#victorops_config | |||
type VictorOpsConfig 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.
Don't we miss CustomFields
here? This should be []KeyValue
.
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.
I don't see CustomFields is alertmanager configuration
https://prometheus.io/docs/alerting/latest/configuration/#victorops_config
if it is planned in future alertmanager release I believe it should be added later. But anyways if you want it to be added I'll add
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.
I should have added the link to the code in the first place :)
https://github.com/prometheus/alertmanager/blob/a7f9fdadbecbb7e692d2cd8d3334e3d6de1602e1/config/notifiers.go#L483
The documentation is out-of-date unfortunately.
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.
fixed in 348657e.
before merging this PR - please let me know - so I'll rebase all the fixup commits - to make git history nicer :) |
thanks for the quick update! We can squash all the commits before merging so no real need for you to autosquash things. |
lgtm |
fixes #3539