PostgreSQL activity 度量集

编辑

这是 PostgreSQL 模块的 activity 度量集。

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

字段

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

以下是由此度量集生成的示例文档

{
    "@timestamp": "2017-10-12T08:05:34.853Z",
    "event": {
        "dataset": "postgresql.activity",
        "duration": 115000,
        "module": "postgresql"
    },
    "metricset": {
        "name": "activity",
        "period": 10000
    },
    "postgresql": {
        "activity": {
            "application_name": "",
            "backend_start": "2021-03-05T19:01:40.467Z",
            "backend_type": "client backend",
            "client": {
                "address": "192.168.128.1",
                "hostname": "",
                "port": 33414
            },
            "database": {
                "name": "postgres",
                "oid": 13395
            },
            "pid": 2236,
            "query": "SELECT * FROM pg_stat_activity",
            "query_start": "2021-03-05T19:01:40.469Z",
            "state": "idle",
            "state_change": "2021-03-05T19:01:40.471Z",
            "user": {
                "id": 10,
                "name": "postgres"
            }
        }
    },
    "service": {
        "address": "192.168.128.2:5432",
        "type": "postgresql"
    }
}