# Enable Fluentbit / Fluentd Metrics

**URL:** <https://forums.suse.com/t/enable-fluentbit-fluentd-metrics/42548>\
**Category:** SUSE Rancher Prime\
**Created:** [February 13, 2024, 1:27pm UTC](https://forums.suse.com/t/enable-fluentbit-fluentd-metrics/42548 "2024-02-13T13:27:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndrStnz](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/andrstnz/32/10711_2.png) [@AndrStnz](https://forums.suse.com/u/AndrStnz)\
**Post date:** [February 13, 2024, 1:27pm UTC](https://forums.suse.com/t/enable-fluentbit-fluentd-metrics/42548/1 "2024-02-13T13:27:46Z")

</div>

Hi everyone!

We are currently trying to enable metrics with the `rancher-logging` chart.  
We set `monitoring.serviceMonitor.enabled: true` and can see a service monitor being created, and discovered by prometheus, but we don´t see any metrics regarding fluentbit or anything really that indicates that it worked.

So my question is:  
Is there any way to get `rancher-logging` metrics into prometheus with the HELM chart.

Thanks in advance!  
Andre

---

<div class="post-metadata">

**Author:** ![AndrStnz](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/andrstnz/32/10711_2.png) [@AndrStnz](https://forums.suse.com/u/AndrStnz)\
**Post date:** [February 13, 2024, 3:21pm UTC](https://forums.suse.com/t/enable-fluentbit-fluentd-metrics/42548/2 "2024-02-13T15:21:53Z")

</div>

Soooo…  
It seems like you need to put the following into your `rancher-logging` values.yaml:

```auto
fluentd:
  metrics:
    prometheusRules: true
    serviceMonitor: true
fluentbit:
  metrics:
    prometheusRules: true
    serviceMonitor: true

```

So you need both `prometheusRules` and `serviceMonitor` set to `true`

Have a good one!

---

<div class="post-metadata">

**Author:** ![AndrStnz](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/andrstnz/32/10711_2.png) [@AndrStnz](https://forums.suse.com/u/AndrStnz)\
**Post date:** [February 13, 2024, 4:30pm UTC](https://forums.suse.com/t/enable-fluentbit-fluentd-metrics/42548/3 "2024-02-13T16:30:19Z")

</div>

So, it does not work anymore after uninstalling and reinstalling the HELM chart. With the same values.yaml

I feel like I am taking crazy pills…  
Please send Help.

---

<div class="post-metadata">

**Author:** ![AndrStnz](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/andrstnz/32/10711_2.png) [@AndrStnz](https://forums.suse.com/u/AndrStnz)\
**Post date:** [February 14, 2024, 1:05pm UTC](https://forums.suse.com/t/enable-fluentbit-fluentd-metrics/42548/4 "2024-02-14T13:05:44Z")

</div>

To close my monologue and for everyone the future stumbling across this:

The `rancher-logging` chart is for the lack of a better word dead.  
It did not get any updates for several years now. So no wonder stuff does not work in the current k8s version.  
We did install the current `kube-logging` chart via HELM and did not have any issues with the enablement of metrics or prometheusrules.

It is incredible that the `rancher-logging` chart is abandoned without ANY notice on the app page or somewhere else in Rancher, quite annoying.

Main takeaway: always check if there are new versions available…
