-
Notifications
You must be signed in to change notification settings - Fork 45
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 Alertmanager conf as a customizable service configuration #2289
Add Alertmanager conf as a customizable service configuration #2289
Conversation
Hello ebaneck,My role is to assist you with the merge of this Status report is not available. |
Integration data createdI have created the integration data for the additional destination branches.
The following branches will NOT be impacted:
You can set option
|
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
Peer approvals must include at least 1 approval from the following list:
|
7d2bb43
to
0ba4ebd
Compare
History mismatchMerge commit #7d2bb4340427d3e8cea92d37a1d64e2400901df9 on the integration branch It is likely due to a rebase of the branch Please use the |
salt/metalk8s/addons/prometheus-operator/deployed/alertmanager-configuration-secret.sls
Outdated
Show resolved
Hide resolved
0ba4ebd
to
0b7add7
Compare
History mismatchMerge commit #efc718c8ad4153070b3d93a9426cfb3073f63a36 on the integration branch It is likely due to a rebase of the branch Please use the |
This commit adds Alertmanager notification configurations as a customizable service configuration in MetalK8s using default values read from `metalk8s-alertmanager-config` ConfigMap
/reset |
Reset completeI have successfully deleted this pull request's integration branches. |
salt/metalk8s/addons/prometheus-operator/deployed/alertmanager-configuration-secret.sls
Show resolved
Hide resolved
Integration data createdI have created the integration data for the additional destination branches.
The following branches will NOT be impacted:
You can set option
|
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
Peer approvals must include at least 1 approval from the following list:
|
We need to be able to have control over the Alertmanager configurations which is deployed as a secret using the prometheus-operator charts. Using the charts, the Alertmanager config is directly base64 encoded as such jinja substitution during the yaml dump is not possible. This commit adds a salt sls file that creates the Alertmanager secret
Using the helm template engine with Alertmanager secret (Alertmanager.yaml) does not seem to work as expected because the templated variables are directly base64 encoded instead of being replaced during the yaml dump. We resolve this by disabling the creation of the default secret for Alertmanager then create a new secret with default values making it possible for users to edit this configuration setting. This chart is finally rendered using: ./charts/render.py prometheus-operator --namespace metalk8s-monitoring charts/prometheus-operator.yaml --service-config grafana metalk8s-grafana-config --service-config prometheus metalk8s-prometheus-config --service-config alertmanager metalk8s-alertmanager-config charts/prometheus-operator/ > salt/metalk8s/addons/prometheus-operator/deployed/chart.sls Closes: #2262
0b7add7
to
26238d2
Compare
History mismatchMerge commit #029e884fcf184597d1f68bc47ccd189cc070e3bf on the integration branch It is likely due to a rebase of the branch Please use the |
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.
LGTM
/reset |
Reset completeI have successfully deleted this pull request's integration branches. |
/approve |
Integration data createdI have created the integration data for the additional destination branches.
The following branches will NOT be impacted:
You can set option
|
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
Peer approvals must include at least 1 approval from the following list:
|
Build failedThe build for commit did not succeed in branch w/2.6/feature/2262-add-Alertmanager-notification-configuration-as-a-service-configuration. The following options are set: approve |
Build failedThe build for commit did not succeed in branch feature/2262-add-Alertmanager-notification-configuration-as-a-service-configuration. The following options are set: approve |
Build failedThe build for commit did not succeed in branch w/2.6/feature/2262-add-Alertmanager-notification-configuration-as-a-service-configuration. The following options are set: approve |
/reset |
Reset completeI have successfully deleted this pull request's integration branches. The following options are set: approve |
Integration data createdI have created the integration data for the additional destination branches.
The following branches will NOT be impacted:
You can set option
The following options are set: approve |
Build failedThe build for commit did not succeed in branch w/2.6/feature/2262-add-Alertmanager-notification-configuration-as-a-service-configuration. The following options are set: approve |
/help |
Help pageThe following options and commands are available at this time. Options
Commands
The following options are set: approve |
/bypass_build_status |
In the queueThe changeset has received all authorizations and has been added to the The changeset will be merged in:
The following branches will NOT be impacted:
There is no action required on your side. You will be notified here once IMPORTANT Please do not attempt to modify this pull request.
If you need this pull request to be removed from the queue, please contact a The following options are set: bypass_build_status, approve |
I have successfully merged the changeset of this pull request
The following branches have NOT changed:
Please check the status of the associated issue None. Goodbye ebaneck. |
Component:
'salt', 'charts', 'prometheus-operator'
Context:
See #2262
Summary:
Template and store
alertmanager.yaml
as a service configuration in a MetalK8s cluster making it possible that users can customize and add new alert channels.Acceptance criteria:
Closes: #2262