Use this API to retrieve the definitions of the metrics that GitLab collects for Service Ping.

Download metric definitions

GET /api/v4/usage_data/metric_definitions

Downloads all metric definitions as a single YAML file.

Parameters

NameTypeDescription
include_paths
Query
BooleanInclude file paths in the metric definitions
Example: true

Responses

CodeDescriptionSchema
200OKString (application/yaml)
400Bad Request—
401Unauthorized—
404Not found—