Skip to content
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

[alertmanager] add new chart #64

Merged

Conversation

naseemkullah
Copy link
Member

Special notes for your reviewer:

Adds a minimalist alertmanager chart.

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

@naseemkullah naseemkullah requested a review from a team as a code owner September 8, 2020 03:28
@naseemkullah naseemkullah force-pushed the add-alertmanager-chart branch 3 times, most recently from cec7e58 to 85bcf02 Compare September 8, 2020 03:33
@torstenwalter
Copy link
Member

Did you see that AlertManager is part of https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus-operator/templates/alertmanager?

@scottrigby
Copy link
Member

It would be good to provide some context. I happen to know from earlier conversations with @naseemkullah and @brancz that this is a step toward componentizing that chart into standalone parts. In future, the kube-prometheus-stack chart could switch to pulling this in as a dependency. Alternatively this could be installed separately with other standalone charts like prometheus.

But @naseemkullah you might have more context details.

@scottrigby scottrigby changed the title Add alertmanager chart [alertmanager] add new chart Sep 8, 2020
@naseemkullah
Copy link
Member Author

Use cases would indeed be for standalone chart and potentially eventual replacement of alertmanager component in prometheus chart (not prometheus-operator/kube-prometheus-stack chart though, since it is a CRD there).

@naseemkullah naseemkullah force-pushed the add-alertmanager-chart branch from 85bcf02 to 55c6ccd Compare September 8, 2020 07:33
Copy link
Member

@Xtigyro Xtigyro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would anybody need a separate chart for Alertmanager?

@naseemkullah naseemkullah force-pushed the add-alertmanager-chart branch from 55c6ccd to 6019d56 Compare September 8, 2020 07:38
@naseemkullah
Copy link
Member Author

naseemkullah commented Sep 8, 2020

@Xtigyro

  • One may choose to use alertmanager as the alerting system for a client other than prometheus.

  • One may choose to deploy multiple prometheus releases and a centralized alertmanager release that is not tied to any particular prometheus release

  • For systems that deploy a vendored Prometheus but not Alertmanger (namely Linkerd see: https://github.com/linkerd/linkerd2/tree/main/charts/add-ons/prometheus) in which case it would be nice to have a community alertmanager chart to deploy alongside it.

@naseemkullah naseemkullah requested a review from Xtigyro September 8, 2020 07:47
@Xtigyro
Copy link
Member

Xtigyro commented Sep 8, 2020

I'm torn here.

@zanhsieh @monotek @bismarck @vsliouniaev @gianrubio
Your thoughts please.

charts/alertmanager/values.yaml Outdated Show resolved Hide resolved
charts/alertmanager/values.yaml Show resolved Hide resolved
charts/alertmanager/values.yaml Outdated Show resolved Hide resolved
charts/alertmanager/values.yaml Outdated Show resolved Hide resolved
charts/alertmanager/values.yaml Show resolved Hide resolved
charts/alertmanager/values.yaml Outdated Show resolved Hide resolved
charts/alertmanager/Chart.yaml Outdated Show resolved Hide resolved
charts/alertmanager/templates/NOTES.txt Outdated Show resolved Hide resolved
@monotek
Copy link
Member

monotek commented Sep 8, 2020

@Xtigyro

Generally i like the idea to have alertmanager as standalone chart, as it can be used as dependency in other charts or you could solve one of the usecases mentioned by @naseemkullah

@Xtigyro
Copy link
Member

Xtigyro commented Sep 8, 2020

@naseemkullah Would you be able to work on splitting the Alertmanager component from the prometheus chart and using this as a dependency?

@naseemkullah
Copy link
Member Author

naseemkullah commented Sep 8, 2020

@naseemkullah Would you be able to work on splitting the Alertmanager component from the prometheus chart and using this as a dependency?

Eventually yes, not immediately though, I also think we should discuss the best way forward in terms of feature parity. There is a lot of cruft we should reevaluate in the prometheus chart('s subcomponents). It would not be a bad idea to have a prometheus chart maintainers call at some point to figure out what we want to do.

@Xtigyro
Copy link
Member

Xtigyro commented Sep 8, 2020

@naseemkullah Very nice! After resolving the comments from @monotek - I believe this should be good to go.

@monotek
Copy link
Member

monotek commented Sep 8, 2020

Maybe it would also make sense to add the same maintainers for the standalone charts as for the prometheus chart?

At least when the standalone chart(s) should be used as dependencies in the prometheus chart later?

Having a call about this sounds good to me too. Not sure if dependency charts should replace current implementation or be usable optionally. So let's have a call :-)

What's your timezone guys? I'm in cet.

@naseemkullah
Copy link
Member Author

naseemkullah commented Sep 8, 2020

Maybe it would also make sense to add the same maintainers for the standalone charts as for the prometheus chart?

At least when the standalone chart(s) should be used as dependencies in the prometheus chart later?

Having a call about this sounds good to me too. Not sure if dependency charts should replace current implementation or be usable optionally. So let's have a call :-)

What's your timezone guys? I'm in cet.

EST, we can start with an async group chat in k8s slack too

@zanhsieh are you on k8s slack?

@scottrigby
Copy link
Member

FWIW I'm really encouraged by this thread

@GMartinez-Sisti
Copy link
Member

I'm sure you all know this already, but I would like to remind that the Alertmanager deployed in kube-prometheus-stack is managed by the prometheus-operator operator, so I believe this chart does not qualify as a possible dependency for that chart, but instead, as already mentioned, an isolated solution for other use cases.

@naseemkullah
Copy link
Member Author

I'm sure you all know this already, but I would like to remind that the Alertmanager deployed in kube-prometheus-stack is managed by the prometheus-operator operator, so I believe this chart does not qualify as a possible dependency for that chart, but instead, as already mentioned, an isolated solution for other use cases.

Yep this may have gotten buried in the other comments: #64 (comment)

Signed-off-by: Naseem <naseem@transit.app>
@naseemkullah
Copy link
Member Author

Thanks for the great feedback @monotek , changes applied and ready for re-review.

@zanhsieh @gianrubio @Xtigyro please let me know if you'd like to help maintain this chart as well and I will add you to the maintainers list. Thanks.

@scottrigby scottrigby requested a review from monotek September 13, 2020 18:38
monotek
monotek previously approved these changes Sep 13, 2020
@Xtigyro
Copy link
Member

Xtigyro commented Sep 14, 2020

@scottrigby Shouldn't we create a PR for the Prometheus chart before merging this one - so no double efforts are required for maintenance of Alertmanager?

@monotek
Copy link
Member

monotek commented Sep 14, 2020

@Xtigyro
I don't think so, as this chart is not dependent from the prometheus chart.

Imho we don't plan to change anything in the altermanager component for prometheus so i don't seee double effort there.
It could also be a benefit for others, if they can use it now as they won't need to do work twice.
Standalone usage is also an argument to merge it now.

Copy link
Member

@scottrigby scottrigby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just this one suggestion. Otherwise this looks good!


## Installation

```sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My only thought now is to improve the README a bit. How about the README template laid out for the other charts in this repo?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good! I did not find a template per se but mimicked what I saw in prometheus adapter. PTAL

@scottrigby
Copy link
Member

Re dependency, we are thinking this could be a drop in replacement for the alert manager in the prometheus chart, right?

If so, I was thinking this is the order:

  1. This new alertmanager chart PR must be merged in order to create the chart version package
  2. then a PR can be made against the prometheus chart to replace the existing component with this newly available alertmanager package as a dependency

But either way, that would be a follow up PR. Am I right this is what you're thinking though @naseemkullah ?

@Xtigyro
Copy link
Member

Xtigyro commented Sep 15, 2020

Re dependency, we are thinking this could be a drop in replacement for the alert manager in the prometheus chart, right?

If so, I was thinking this is the order:

1. This new alertmanager chart PR must be merged in order to create the chart version package

2. then a PR can be made against the prometheus chart to replace the existing component with this newly available alertmanager package as a dependency

But either way, that would be a follow up PR. Am I right this is what you're thinking though @naseemkullah ?

@scottrigby @naseemkullah

OK - very nice! Agreed.
P.S. I'll be happy to help with the follow-up PR.

Xtigyro
Xtigyro previously approved these changes Sep 15, 2020
Signed-off-by: Naseem <naseem@transit.app>
@naseemkullah naseemkullah dismissed stale reviews from Xtigyro and monotek via fdd8231 September 24, 2020 01:26
Copy link
Member

@scottrigby scottrigby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@scottrigby scottrigby merged commit 2994ad7 into prometheus-community:main Sep 27, 2020
@torstenwalter
Copy link
Member

@naseemkullah @monotek Chart looks great. The only thing which is unclear for me is who maintains that chart?

In CODEOWNERS is says:
/charts/alertmanager/ @monotek @naseemkullah

In Chart.yaml it's just

maintainers:
  - name: naseemkullah
    email: naseem@transit.app

@naseemkullah naseemkullah deleted the add-alertmanager-chart branch September 28, 2020 01:21
monotek pushed a commit to monotek/prometheus-helm-charts that referenced this pull request Oct 7, 2020
* Add alertmanager chart

Signed-off-by: Naseem <naseem@transit.app>

* mimic readme in other prometheus repos

Signed-off-by: Naseem <naseem@transit.app>
Signed-off-by: André Bauer <andre.bauer@kiwigrid.com>
junotx pushed a commit to junotx/prometheus-helm-charts that referenced this pull request Jun 3, 2024
[prometheus-node-exporter] Adjust GlobalRuleGroup name for calico-exporter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants