# https://docs.fluentbit.io/manual/pipeline/inputs/fluentbit-metrics # # INDENTATION WITH SPACES NOT TABS # # change # output & add_label [INPUT] name fluentbit_metrics tag internal_metrics scrape_interval 5 #[OUTPUT] # name file # match internal_metrics # path /var/log # file fluent-bit.log [OUTPUT] name prometheus_remote_write match internal_metrics host ... port 443 tls on tls.verify off http_user ... http_passwd ... # standalone uri /api/v1/write # cluster #uri /insert/0/prometheus/api/v1/write log_response_payload true add_label sensor flb@HOSTNAME # eventually make it grafana k8s dashboard happy #add_label instance HOSTNAME #add_label cluster compute-nodes