【问题标题】:Setting up beat.hostname in Metricbeat在 Metricbeat 中设置 beat.hostname
【发布时间】:2020-09-02 23:26:15
【问题描述】:

我对这些概念非常陌生,如果这是一件愚蠢的事情,我深表歉意。我正在尝试使用 Elasticsearch 数据源在 Grafana 上可视化 Metricbeat 数据,所有这些数据都在本地运行,但无法找到在 Metricbeat 配置中添加“beat.hostname”的位置。

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

但是我们在哪里设置呢?我查看了 Metricbeat 文件夹中的两个 YAML 文件,但没有任何描述。

非常感谢您的帮助!

【问题讨论】:

    标签: elasticsearch grafana metricbeat


    【解决方案1】:

    我认为您只是在 metricbeat.yml 中引用“名称”变量

    # ================================== 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 的真正用户,所以这部分会站在你这边

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-10-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多