Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们似乎无法在 promtail 中找到将 kubernetes 标签添加到日志数据的方法——似乎只允许将该数据复制到标签,而不是日志数据本身。这可能吗?
我没有找到“正确”的方法,但有一个解决方法:
relabel_configs: - replacement: your_label_val source_labels: - __path__ target_label: your_label