在metricbeat中设置beat.hostname

wtlkbnrh  于 2021-06-15  发布在  ElasticSearch
关注(0)|答案(1)|浏览(558)

我是超级新的这些概念,我道歉,如果这是一个愚蠢的事情。我试图用elasticsearch数据源可视化grafana上的metricbeat数据,所有这些数据都在本地运行,但找不到metricbeat配置中添加“beat.hostname”的位置。
我有grafana和metricbeat的最新版本,正在关注这篇文章。在“createdashboard”部分,作者提到他在安装metricbeat时使用了“beat.hostname=grafana”作为主机名。然后他在查询编辑器字段中使用它来提取grafana Jmeter 板上的数据。
但是我们在哪里设置这个呢?我查看了metricbeat文件夹中的两个yaml文件,但没有任何描述。
非常感谢你的帮助!

okxuctiv

okxuctiv1#

我想您只是引用了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”,并可以对其进行筛选。

我不是一个真正的用户格拉法纳,所以这部分将站在你这边

相关问题