# https://docs.fluentbit.io/manual/pipeline/inputs/fluentbit-metrics # # INDENTATION WITH SPACES NOT TABS [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 {{tsdb_host}} port {{tsdb_port}} #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@{{ansible_hostname}} add_label instance {{ansible_hostname}} add_label host {{ansible_hostname}}