# CONFIGURED BY ANSIBLE # # custom opensearch metrics # [INPUT] name tail path /var/log/dam.osearch.log tag osearch-logs parser json_no_time [FILTER] name log_to_metrics match osearch-logs tag osearch-metrics metric_mode gauge metric_name opensearch_shards metric_description opensearch shards per node value_field shards label_field node #[OUTPUT] # name file # match osearch-metrics # path /var/log # file fluent-bit.log [OUTPUT] name prometheus_remote_write match osearch-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 osearch_metrics@{{ansible_hostname}} add_label instance {{ansible_hostname}} add_label host {{ansible_hostname}}