IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
PostgreSQL activity metricset
editPostgreSQL activity metricset
editThis is the activity
metricset of the PostgreSQL module.
Fields
editFor a description of each field in the metricset, see the exported fields section.
Here is an example document generated by this metricset:
{ "@timestamp": "2017-10-12T08:05:34.853Z", "agent": { "hostname": "host.example.com", "name": "host.example.com" }, "event": { "dataset": "postgresql.activity", "duration": 115000, "module": "postgresql" }, "metricset": { "name": "activity" }, "postgresql": { "activity": { "application_name": "", "backend_start": "2019-03-05T08:38:21.348Z", "client": { "address": "172.26.0.1", "hostname": "", "port": 41582 }, "database": { "name": "postgres", "oid": 12379 }, "pid": 347, "query": "SELECT * FROM pg_stat_activity", "query_start": "2019-03-05T08:38:21.352Z", "state": "active", "state_change": "2019-03-05T08:38:21.352Z", "transaction_start": "2019-03-05T08:38:21.352Z", "user": { "id": 10, "name": "postgres" }, "waiting": false } }, "service": { "address": "172.26.0.2:5432", "type": "postgresql" } }