Skip to content

Fluentbit metrics service and monitor is not created #2135

@vipinjn24

Description

@vipinjn24

Describe the bug:
I tried to install the operator with the logging enabled.

logging:
  enabled: true
  controlNamespace: logging
  fluentd:
    metrics:
      serviceMonitor: true
  fluentbit:
    metrics:
      serviceMonitor: true

Expected behaviour:
It should create the metrics service and service monitor for fluentbit also.

Steps to reproduce the bug:
Use the above configuration and it does create Logging resource and FluentBit Agent resource but FluentBit Agent despite having the service monitor it doesnt create the service and monitor.

Additional context:
The generated manifest for Fluentbit

apiVersion: logging.banzaicloud.io/v1beta1
kind: FluentbitAgent
metadata:
  annotations:
    meta.helm.sh/release-name: logging-operator
    meta.helm.sh/release-namespace: logging-operator
  labels:
    app.kubernetes.io/instance: logging-operator
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: logging-operator
    app.kubernetes.io/version: 6.1.0
    helm.sh/chart: logging-operator-6.1.0
  name: logging-operator
spec:
  metrics:
    serviceMonitor: true

Environment details:

  • Kubernetes version (e.g. v1.15.2): v1.31.13
  • Cloud-provider/provisioner (e.g. AKS, GKE, EKS, PKE etc): Baremetal
  • logging-operator version (e.g. 2.1.1): 6.1.0
  • Install method (e.g. helm or static manifests): Operator using helm chart
  • Logs from the misbehaving component (and any other relevant logs): Provided in additional context
  • Resource definition (possibly in YAML format) that caused the issue, without sensitive data: Provided in additional context

/kind bug

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions