idealista / prom2teams

prom2teams is an HTTP server built with Python that receives alert notifications from a previously configured Prometheus Alertmanager instance and forwards it to Microsoft Teams using defined connectors
Apache License 2.0
268 stars 84 forks source link

Can this helm chart be added to any chart repo, So that we can use the same in our flux cd directly #321

Closed kabilanmani93 closed 1 year ago

kabilanmani93 commented 1 year ago

Description

Can the chart be added to any repo, so that we can use helmrelease object in flux cd

for example: (prometheus cloudwatch exporter deployment using flux cd)

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts helm search repo prometheus-community

apiVersion: helm.fluxcd.io/v1 kind: HelmRelease metadata: name: prometheus-cloudwatch-exporter-gitlab namespace: gitlab-monitoring spec: releaseName: prometheus-cloudwatch-exporter-gitlab chart: repository: https://prometheus-community.github.io/helm-charts name: prometheus-cloudwatch-exporter version: 0.22.0 values:

Why is this needed?

To use it in flux cd helm releaseobject

ebini commented 1 year ago

Hi,

in flux you can directly add this repositry

Define the repo:

apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: GitRepository
metadata:
  name: prom2teams-chart
  namespace: flux-system
spec:
  interval: 12h
  ref:
    tag: "4.2.0"

  url: https://github.com/idealista/prom2teams.git
  ignore: |
    # exclude all
    /*
    # include charts directory
    !/helm/

and the Helmchart reference the repo.

apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
  name: prom2teams
spec:
  chart:
    spec:
      chart: ./helm
      sourceRef:
        kind: GitRepository
        name: prom2teams-chart
  interval: 10m
  releaseName: oprom2teams

But i agree: a public "real" helm chart would be nice

Also to improve the chart. I want to add a Pull request soon.

Best regards Ebini

kabilanmani93 commented 1 year ago

Okay, Please keep us posted if the chart is published in a chart repo. That would be great.

Currently we do not allow "GitRepository" kind in our cluster

ebini commented 1 year ago

Meanwhile I use https://github.com/prometheus-msteams/prometheus-msteams This is comparable with a helm chart. But it seems that also this project is not "too active" like this one. It has a helm chart and is almost the same (in go lang written)

EvertonSA commented 1 year ago

+1

robenn11 commented 1 year ago

+1

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.