我对这些概念是超级新手,如果这是一件愚蠢的事情,我道歉。我正在尝试使用Elasticsearch数据源在Grafana上可视化Metricbeat数据,所有数据都在本地运行,但找不到在Metricbeat配置中添加"beat.hostname“的位置。
我有Grafana和Metricbeat的最新版本,并且正在关注这个article。在“创建仪表板”部分,作者提到他在安装Metricbeat时使用了"beat.hostname=grafana“作为主机名。然后,他在查询编辑器字段上使用它来提取Grafana仪表板上的数据。
但是我们该在哪里设置它呢?我查看了Metricbeat文件夹中的两个YAML文件,但没有任何内容对此进行描述。
非常感谢你的帮助!
发布于 2020-09-03 17:21:07
我认为您只需在metricbeat.yml中引用'Name‘变量即可
# ================================== General ===================================
# The name of the shipper that publishes the network data. It can be used to group
# all the transactions sent by a single shipper in the web interface.
name: "jeremy-laptop"
# The tags of the shipper are included in their own field with each
# transaction published.
tags: ["laptop", "ubuntu"]你会发现这个值是"host.name“,并且能够对其进行过滤。

我不是Grafana的用户,所以这部分将会站在你这边
https://stackoverflow.com/questions/63714752
复制相似问题