Add non default configuration event

What does this MR do?

Introduces a new event used to gather configuration environment variables that are not set to default values. The scan_uuid allows joining to other Dependency scan metrics.

Gemnasium

{
	"event": "collect_gemnasium_scan_non_default_config_metrics_from_pipeline",
	
	// Columns (join, filter, fast)
	
	"property": "scan_uuid",          // join: Allows joining
	"label": "<CONFIG_VAR>"           // fast: Config environment variable
}

Gemnasium-python

{
	"event": "collect_gemnasium_python_scan_non_default_config_metrics_from_pipeline",
	
	// Columns (join, filter, fast)
	
	"property": "scan_uuid",          // join: Allows joining
	"label": "<CONFIG_VAR>"           // fast: Config environment variable
}

Gemnasium-maven

{
	"event": "collect_gemnasium_maven_scan_non_default_config_metrics_from_pipeline",
	
	// Columns (join, filter, fast)
	
	"property": "scan_uuid",          // join: Allows joining
	"label": "<CONFIG_VAR>"           // fast: Config environment variable
}

DS analyzer

{
	"event": "collect_ds_analyzer_scan_non_default_config_metrics_from_pipeline",
	
	// Columns (join, filter, fast)
	
	"property": "scan_uuid",          // join: Allows joining
	"label": "<CONFIG_VAR>"           // fast: Config environment variable
}

What are the relevant issue numbers?

Collect config environment variable usage metric (gitlab-org/gitlab#572467)

Does this MR meet the acceptance criteria?

Edited by Nick Ilieskou

Merge request reports

Loading