Metrics
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
GET | |
POST | |
GET | |
POST | |
POST |
Create metrics samples
Raw individual emissions for a metric (the events model), newest first — backs the Samples view and the metric->trace pivot.
Required API key scopes
metrics:readRequest parameters
- query
Response
Example request
POST /api /projects /:project_id /metrics /samplesExample response
Status 200
Create metrics samples
Raw individual emissions for a metric (the events model), newest first — backs the Samples view and the metric->trace pivot.
Required API key scopes
metrics:readRequest parameters
- query
Response
Example request
POST /api /projects /:project_id /metrics /samplesExample response
Status 200
List all metrics suggested dashboards
Dashboards from the metrics dashboard bank that suit the metrics this project sends, best fit first.
Required API key scopes
metrics:readExample request
GET /api /projects /:project_id /metrics /suggested_dashboardsExample response
Status 200
Create metrics suggested dashboards dashboard
Create the suggested dashboard in this project, with only the charts whose metrics the project sends. A second call returns the dashboard that the first one created.
Required API key scopes
metrics:readdashboard:writeinsight:writePath parameters
- idstring
Response
Example request
POST /api /projects /:project_id /metrics /suggested_dashboards /:id /dashboardExample response
Status 201
Status 400 The project no longer sends the metrics of this dashboard.
Retrieve metrics values
Distinct metric names for the team. Backs the catalog UI.
Required API key scopes
metrics:readQuery parameters
- limitintegerDefault:
100 - servicestring
- valuestringDefault:
Response
Example request
GET /api /projects /:project_id /metrics /valuesExample response
Status 200
Retrieve metrics values
Distinct metric names for the team. Backs the catalog UI.
Required API key scopes
metrics:readQuery parameters
- limitintegerDefault:
100 - servicestring
- valuestringDefault:
Response
Example request
GET /api /projects /:project_id /metrics /valuesExample response
Status 200
Create metrics values
Distinct metric names for the team. Backs the catalog UI.
Required API key scopes
metrics:readRequest parameters
- valuestringDefault:
- limitintegerDefault:
100 - servicestring
- namesarray
Response
Example request
POST /api /projects /:project_id /metrics /valuesExample response
Status 200
Create metrics values
Distinct metric names for the team. Backs the catalog UI.
Required API key scopes
metrics:readRequest parameters
- valuestringDefault:
- limitintegerDefault:
100 - servicestring
- namesarray
Response
Example request
POST /api /projects /:project_id /metrics /valuesExample response
Status 200
Create metrics variable options
The options of one dashboard variable, for the variable selects on dashboards.
Required API key scopes
metrics:readRequest parameters
- source
- querystring | null
- customValuesarray | null
- regexstring | null
- variablesarray
- dateFromstring | null
- dateTostring | null
Response
Example request
POST /api /projects /:project_id /metrics /variable_optionsExample response
Status 200
Create metrics variable options
The options of one dashboard variable, for the variable selects on dashboards.
Required API key scopes
metrics:readRequest parameters
- source
- querystring | null
- customValuesarray | null
- regexstring | null
- variablesarray
- dateFromstring | null
- dateTostring | null
Response
Example request
POST /api /projects /:project_id /metrics /variable_options










