91 lines
2.7 KiB
YAML
91 lines
2.7 KiB
YAML
|
- name: statement
|
||
|
type: group
|
||
|
description: >
|
||
|
One document per query per user per database, showing information related
|
||
|
invocation of that query, such as cpu usage and total time. Collected by
|
||
|
querying pg_stat_statements.
|
||
|
release: beta
|
||
|
fields:
|
||
|
- name: user.id
|
||
|
type: long
|
||
|
description: >
|
||
|
OID of the user logged into the backend that ran the query.
|
||
|
- name: database.oid
|
||
|
type: long
|
||
|
description: >
|
||
|
OID of the database the query was run on.
|
||
|
- name: query.id
|
||
|
type: long
|
||
|
description: >
|
||
|
ID of the statement.
|
||
|
- name: query.text
|
||
|
description: >
|
||
|
Query text
|
||
|
- name: query.calls
|
||
|
type: long
|
||
|
description: >
|
||
|
Number of times the query has been run.
|
||
|
- name: query.rows
|
||
|
type: long
|
||
|
description: >
|
||
|
Total number of rows returned by query.
|
||
|
- name: time.total
|
||
|
type: long
|
||
|
description: >
|
||
|
Total number of milliseconds spent running query.
|
||
|
- name: time.min
|
||
|
type: long
|
||
|
description: >
|
||
|
Minimum number of milliseconds spent running query.
|
||
|
- name: time.max
|
||
|
type: long
|
||
|
description: >
|
||
|
Maximum number of milliseconds spent running query.
|
||
|
- name: time.mean
|
||
|
type: long
|
||
|
description: >
|
||
|
Mean number of milliseconds spent running query.
|
||
|
- name: time.stddev
|
||
|
type: long
|
||
|
description: >
|
||
|
Population standard deviation of time spent running query, in milliseconds.
|
||
|
- name: memory.shared.hit
|
||
|
type: long
|
||
|
description: >
|
||
|
Total number of shared block cache hits by the query.
|
||
|
- name: memory.shared.read
|
||
|
type: long
|
||
|
description: >
|
||
|
Total number of shared block cache read by the query.
|
||
|
- name: memory.shared.dirtied
|
||
|
type: long
|
||
|
description: >
|
||
|
Total number of shared block cache dirtied by the query.
|
||
|
- name: memory.shared.written
|
||
|
type: long
|
||
|
description: >
|
||
|
Total number of shared block cache written by the query.
|
||
|
- name: memory.local.hit
|
||
|
type: long
|
||
|
description: >
|
||
|
Total number of local block cache hits by the query.
|
||
|
- name: memory.local.read
|
||
|
type: long
|
||
|
description: >
|
||
|
Total number of local block cache read by the query.
|
||
|
- name: memory.local.dirtied
|
||
|
type: long
|
||
|
description: >
|
||
|
Total number of local block cache dirtied by the query.
|
||
|
- name: memory.local.written
|
||
|
type: long
|
||
|
description: >
|
||
|
Total number of local block cache written by the query.
|
||
|
- name: memory.temp.read
|
||
|
type: long
|
||
|
description: >
|
||
|
Total number of temp block cache read by the query.
|
||
|
- name: memory.temp.written
|
||
|
type: long
|
||
|
description: >
|
||
|
Total number of temp block cache written by the query.
|