Fluentbit unable to export metrics from node_metrics_exporter input to kafka output

120 views Asked by At

Configured fluentbit daemonset in kubernetes with following data in configmap given below

data:
  custom_parsers.conf: |

    [PARSER]
        Name        json
        Format      json
        Time_Key    time
        Time_Format %d/%b/%Y:%H:%M:%S %z

  fluent-bit.conf: |
    [SERVICE]
        Daemon Off
        Flush 1
        Log_Level info
        Parsers_File /fluent-bit/etc/parsers.conf
        Parsers_File /fluent-bit/etc/conf/custom_parsers.conf
        HTTP_Server On
        HTTP_Listen 0.0.0.0
        HTTP_Port 2020
        Health_Check On

    [INPUT]
        Name            node_exporter_metrics
        Tag             node_metrics_cpu
        Scrape_interval 2
        metrics         cpu, cpufreq, loadavg

    [OUTPUT]
        Name     stdout
        Match    node_metrics_cpu

    [OUTPUT]
        Name        kafka
        Match       node_metrics_cpu
        Brokers     example-kafka-bootstrap.fluentbit-demo.svc.cluster.local:9092
        Topics      cpu_metrics
        Format      json

stdout is producing the output but kafka topic is not exporting data.

Kafka cluster is created using strimzi-kafka operator

Is there something missed in the above fluentbit config file

0

There are 0 answers