【问题标题】:How to configure uwsgi.yml for metricbeat properly?如何为 metricbeat 正确配置 uwsgi.yml?
【发布时间】:2018-12-18 12:04:01
【问题描述】:

我已经为 metricbeat 启用了 uwsgi 模块。但是,日志不会出现在 kibana 上。我正在为 metricbeat 使用默认的 uwsgi.yml,它看起来像这样。

# Module: uwsgi
# Docs:     https://www.elastic.co/guide/en/beats/metricbeat/6.5/metricbeat-modul-uwsgi.html

- module: uwsgi
  #metricsets:
  #  - status
  period: 10s
  hosts: ["tcp://127.0.0.1:9090"]

我什至试图找到正在运行的端口 uwsgi,但我失败了。我应该如何更改 uwsgi.yml 文件以使其正常工作?我自己从未使用过 uwsgi,而且我的 linux 知识非常基础。提前致谢。

【问题讨论】:

    标签: uwsgi devops elastic-stack metricbeat


    【解决方案1】:

    您需要在您的 uwsgi 配置中添加这一行(通常在 /etc/uwsgi/apps-enabled/yourapp.ini 中):

    stats = 127.0.0.1:9090
    

    【讨论】:

      猜你喜欢
      • 2019-10-07
      • 1970-01-01
      • 1970-01-01
      • 2021-02-21
      • 2023-03-23
      • 2017-05-18
      • 2018-05-27
      • 1970-01-01
      • 2017-11-20
      相关资源
      最近更新 更多