traefik-helm-chart icon indicating copy to clipboard operation
traefik-helm-chart copied to clipboard

Add support for prometheus ServiceMonitor

Open arlyon opened this issue 4 years ago • 10 comments

It would be nice to be able to be able to include a CRD for a prometheus service monitor with the chart.

arlyon avatar Apr 20 '20 20:04 arlyon

Hello @arlyon,

as previously stated, up until know we declined feature requests like that. However, I'd like to acknowledge that we started some discussions around that topic, as we see that you, our community has a demand for it.

So for now, no real updates on it but please be aware, we're talking over it.

SantoDE avatar Apr 23 '20 15:04 SantoDE

Since then you can use the additionalServiceMonitors feature in the Prometheus-Operator. That's what we are using right now.

prometheus:
  additionalServiceMonitors:
    - name: traefik
      selector:
        matchLabels:
      ...

r3kzi avatar May 06 '20 08:05 r3kzi

It would be nice because the old stable/traefik Helm Chart had this option. Might I create a PR?

k3daevin avatar Aug 28 '20 03:08 k3daevin

@SantoDE are there any news since April on the discussions? I would also like to have a possibility to setup a ServiceMonitor or PodMonitor and maybe a PrometheusRule from this chart, as many here do. This is a common pattern.

cubic3d avatar Aug 28 '20 10:08 cubic3d

@k3daevin you probably don't need to ask to create a PR and just create a PR :stuck_out_tongue:

jeanlucmongrain avatar Sep 08 '20 05:09 jeanlucmongrain

@bclermont We already have two of them rejected ;)

cubic3d avatar Sep 08 '20 05:09 cubic3d

+1 for PodMonitor

azhang avatar Oct 17 '20 23:10 azhang

Is there an update for this?

If you're not opposed to the idea anymore, maybe you can merge one of the existing PRs? Like #133?

cwrau avatar Mar 18 '21 10:03 cwrau

Moving from nginx-ingress to Traefik and I'm really surprised this is not available out of the box.

StianOvrevage avatar May 26 '21 13:05 StianOvrevage

Any chance this will be included soon? I see there were some PR that have added service monitors, but on master AFAIK it is not available anymore

dmpe avatar Jan 28 '22 09:01 dmpe