您好,我正在尝试将数据发送到Grafana
. 数据正在输入,但是当我尝试动态标记日志时,它似乎不起作用
这是相同的配置
<match haproxy>
@type loki
url "http://localhost:3100"
flush_interval 1s
flush_at_shutdown true
buffer_chunk_limit 1m
extra_labels {"job":"haproxy","node":"sfo2","agent":"fluentd","tag":"#{tag}"}
</match>
试图将 extra_label 更改为
extra_labels {"job":"haproxy","node":"sfo2","agent":"fluentd","tag":"${tag}"}
安装的插件
fluentd_plugins:
- fluent-plugin-rewrite-tag-filter
- fluent-plugin-prometheus
- fluent-plugin-record-modifier
- fluent-plugin-loki
- fluent-plugin-grafana-loki