Nginx stubstatus 指标集

编辑

Nginx stubstatus 指标集从 Nginx ngx_http_stub_status 模块收集数据。它从 ngx_http_stub_status 生成的网页中抓取服务器状态数据。

这是一个默认指标集。如果主机模块未配置,则默认启用此指标集。

字段

有关指标集中每个字段的描述,请参阅导出的字段部分。

这是此指标集生成的示例文档

{
    "@timestamp": "2017-10-12T08:05:34.853Z",
    "agent": {
        "hostname": "host.example.com",
        "name": "host.example.com"
    },
    "event": {
        "dataset": "nginx.stubstatus",
        "duration": 115000,
        "module": "nginx"
    },
    "metricset": {
        "name": "stubstatus"
    },
    "nginx": {
        "stubstatus": {
            "accepts": 6254,
            "active": 2,
            "current": 1,
            "dropped": 0,
            "handled": 6254,
            "hostname": "127.0.0.1",
            "reading": 0,
            "requests": 6259,
            "waiting": 1,
            "writing": 1
        }
    },
    "service": {
        "address": "127.0.0.1",
        "type": "nginx"
    }
}