An extension for collecting greenplum query execution metrics and reporting them to an external agent.
- What: Captures query text, normalized query text, timestamps (submit, start, end, done), and user/database info.
- GUC:
yagpcc.enable
.
- What: Triggers generation of the
EXPLAIN (TEXT, COSTS, VERBOSE)
and captures it. - GUC:
yagpcc.enable
.
- What: Triggers generation of the
EXPLAIN (JSON, ANALYZE, BUFFERS, TIMING, VERBOSE)
and captures it. - GUCs:
yagpcc.enable
,yagpcc.min_analyze_time
,yagpcc.enable_cdbstats
(ANALYZE),yagpcc.enable_analyze
(BUFFERS, TIMING, VERBOSE).
- What: Captures Instrument, Greenplum, System, Network, Interconnect, Spill metrics.
- GUC:
yagpcc.enable
.
- Nested Queries: When
yagpcc.report_nested_queries
isfalse
, only top-level queries are reported from the coordinator and segments, whentrue
, both top-level and nested queries are reported from the coordinator, from segments collected as aggregates. - Data Destination: All collected data is sent to a Unix Domain Socket. Configure the path with
yagpcc.uds_path
. - User Filtering: To exclude activity from certain roles, add them to the comma-separated list in
yagpcc.ignored_users_list
. - Trimming plans: Query texts and execution plans are trimmed based on
yagpcc.max_text_size
andyagpcc.max_plan_size
(default: 1024KB). For now, it is not recommended to set these GUCs higher than 1024KB.