首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Metricbeat中设置beat.hostname

在Metricbeat中设置beat.hostname
EN

Stack Overflow用户
提问于 2020-09-03 07:26:16
回答 1查看 339关注 0票数 0

我对这些概念是超级新手,如果这是一件愚蠢的事情,我道歉。我正在尝试使用Elasticsearch数据源在Grafana上可视化Metricbeat数据,所有数据都在本地运行,但找不到在Metricbeat配置中添加"beat.hostname“的位置。

我有Grafana和Metricbeat的最新版本,并且正在关注这个article。在“创建仪表板”部分,作者提到他在安装Metricbeat时使用了"beat.hostname=grafana“作为主机名。然后,他在查询编辑器字段上使用它来提取Grafana仪表板上的数据。

但是我们该在哪里设置它呢?我查看了Metricbeat文件夹中的两个YAML文件,但没有任何内容对此进行描述。

非常感谢你的帮助!

EN

回答 1

Stack Overflow用户

发布于 2020-09-03 17:21:07

我认为您只需在metricbeat.yml中引用'Name‘变量即可

代码语言:javascript
复制
# ================================== 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的用户,所以这部分将会站在你这边

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63714752

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档