PostgreSQL 数据库 metricset
编辑PostgreSQL 数据库 metricset
编辑这是 PostgreSQL 模块的 database
metricset。
这是一个默认的 metricset。如果主机模块未配置,则默认启用此 metricset。
有关 metricset 中每个字段的描述,请参阅导出字段 部分。
这是一个由该 metricset 生成的示例文档
{ "@timestamp": "2017-10-12T08:05:34.853Z", "event": { "dataset": "postgresql.database", "duration": 115000, "module": "postgresql" }, "metricset": { "name": "database", "period": 10000 }, "postgresql": { "database": { "blocks": { "hit": 43969, "read": 381, "time": { "read": { "ms": 0 }, "write": { "ms": 0 } } }, "conflicts": 0, "deadlocks": 0, "name": "postgres", "number_of_backends": 2, "oid": 13395, "rows": { "deleted": 42, "fetched": 26418, "inserted": 98, "returned": 53201, "updated": 14 }, "stats_reset": "2021-03-05T18:39:18.089Z", "temporary": { "bytes": 0, "files": 0 }, "transactions": { "commit": 445, "rollback": 5 } } }, "service": { "address": "192.168.128.2:5432", "type": "postgresql" } }