openapi: 3.0.0
info:
contact:
email: support@datadoghq.com
name: Datadog Support
url: https://www.datadoghq.com/support/
description: The Datadog API is an HTTP REST API. The API uses resource-oriented URLs to call the API, uses status codes to indicate the success or failure of requests, returns JSON from all requests, and uses standard HTTP response codes. Use the Datadog API to access the Datadog platform programmatically.
title: Datadog Account Metrics API
version: '1.0'
servers:
- url: https://{subdomain}.{site}
variables:
site:
default: datadoghq.com
description: The regional site for Datadog customers.
enum:
- datadoghq.com
- us3.datadoghq.com
- us5.datadoghq.com
- ap1.datadoghq.com
- datadoghq.eu
- ddog-gov.com
subdomain:
default: api
description: The subdomain where the API is deployed.
- url: '{protocol}://{name}'
variables:
name:
default: api.datadoghq.com
description: Full site DNS name.
protocol:
default: https
description: The protocol for accessing the API.
- url: https://{subdomain}.{site}
variables:
site:
default: datadoghq.com
description: Any Datadog deployment.
subdomain:
default: api
description: The subdomain where the API is deployed.
security:
- apiKeyAuth: []
appKeyAuth: []
tags:
- description: 'The metrics endpoint allows you to:
- Post metrics data so it can be graphed on Datadog’s dashboards
- Query metrics from any time period (timeseries and scalar)
- Modify tag configurations for metrics
- View tags and volumes for metrics
**Note**: A graph can only contain a set number of points
and as the timeframe over which a metric is viewed increases,
aggregation between points occurs to stay below that set number.
The Post, Patch, and Delete `manage_tags` API methods can only be performed by
a user who has the `Manage Tags for Metrics` permission.
See the [Metrics page](https://docs.datadoghq.com/metrics/) for more information.'
name: Metrics
paths:
/api/v2/apm/config/metrics:
get:
description: Get the list of configured span-based metrics with their definitions.
operationId: ListSpansMetrics
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/SpansMetricsResponse'
description: OK
'403':
$ref: '#/components/responses/NotAuthorizedResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Datadog Get All Span-based Metrics
tags:
- Metrics
x-menu-order: 1
x-permission:
operator: OR
permissions:
- apm_read
x-undo:
type: safe
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
post:
description: 'Create a metric based on your ingested spans in your organization.
Returns the span-based metric object from the request body when the request is successful.'
operationId: CreateSpansMetric
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SpansMetricCreateRequest'
description: The definition of the new span-based metric.
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/SpansMetricResponse'
description: OK
'400':
$ref: '#/components/responses/BadRequestResponse'
'403':
$ref: '#/components/responses/NotAuthorizedResponse'
'409':
$ref: '#/components/responses/ConflictResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Datadog Create a Span-based Metric
tags:
- Metrics
x-codegen-request-body-name: body
x-given:
spans_metric:
parameters:
- name: body
value: "{\n \"data\": {\n \"id\": \"{{ unique }}\",\n \"attributes\": {\n \"filter\": {\n \"query\": \"source:{{ unique }}\"\n },\n \"compute\": {\n \"aggregation_type\": \"distribution\",\n \"path\": \"@duration\",\n \"include_percentiles\": false\n },\n \"group_by\": [\n {\n \"path\": \"resource_name\",\n \"tag_name\": \"resource_name\"\n }\n ]\n },\n \"type\": \"spans_metrics\"\n }\n}"
step: there is a valid "spans_metric" in the system
x-menu-order: 2
x-permission:
operator: OR
permissions:
- apm_generate_metrics
x-undo:
operationId: DeleteSpansMetric
parameters:
- name: metric_id
source: data.id
type: unsafe
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/api/v2/apm/config/metrics/{metric_id}:
delete:
description: Delete a specific span-based metric from your organization.
operationId: DeleteSpansMetric
parameters:
- $ref: '#/components/parameters/SpansMetricIDParameter'
responses:
'204':
description: OK
'403':
$ref: '#/components/responses/NotAuthorizedResponse'
'404':
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Datadog Delete a Span-based Metric
tags:
- Metrics
x-menu-order: 5
x-permission:
operator: OR
permissions:
- apm_generate_metrics
x-undo:
type: idempotent
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
get:
description: Get a specific span-based metric from your organization.
operationId: GetSpansMetric
parameters:
- $ref: '#/components/parameters/SpansMetricIDParameter'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/SpansMetricResponse'
description: OK
'403':
$ref: '#/components/responses/NotAuthorizedResponse'
'404':
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Datadog Get a Span-based Metric
tags:
- Metrics
x-menu-order: 3
x-permission:
operator: OR
permissions:
- apm_read
x-undo:
type: safe
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
patch:
description: 'Update a specific span-based metric from your organization.
Returns the span-based metric object from the request body when the request is successful.'
operationId: UpdateSpansMetric
parameters:
- $ref: '#/components/parameters/SpansMetricIDParameter'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SpansMetricUpdateRequest'
description: New definition of the span-based metric.
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/SpansMetricResponse'
description: OK
'400':
$ref: '#/components/responses/BadRequestResponse'
'403':
$ref: '#/components/responses/NotAuthorizedResponse'
'404':
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Datadog Update a Span-based Metric
tags:
- Metrics
x-codegen-request-body-name: body
x-menu-order: 4
x-permission:
operator: OR
permissions:
- apm_generate_metrics
x-undo:
type: idempotent
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/api/v2/dora/deployment:
post:
description: 'Use this API endpoint to provide data about deployments for DORA metrics.
This is necessary for:
- Deployment Frequency
- Change Lead Time
- Change Failure Rate'
operationId: CreateDORADeployment
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DORADeploymentRequest'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/DORADeploymentResponse'
description: OK
'202':
content:
application/json:
schema:
$ref: '#/components/schemas/DORADeploymentResponse'
description: OK - but delayed due to incident
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Bad Request
'403':
$ref: '#/components/responses/NotAuthorizedResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
summary: Datadog Send a Deployment Event for Dora Metrics
tags:
- Metrics
x-codegen-request-body-name: body
x-menu-order: 1
x-undo:
type: idempotent
x-unstable: '**Note**: This endpoint is in public beta.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/api/v2/dora/incident:
post:
description: 'Use this API endpoint to provide failure data for DORA metrics.
This is necessary for:
- Change Failure Rate
- Time to Restore'
operationId: CreateDORAIncident
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DORAIncidentRequest'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/DORAIncidentResponse'
description: OK
'202':
content:
application/json:
schema:
$ref: '#/components/schemas/DORAIncidentResponse'
description: OK - but delayed due to incident
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Bad Request
'403':
$ref: '#/components/responses/NotAuthorizedResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
summary: Datadog Send an Incident Event for Dora Metrics
tags:
- Metrics
x-codegen-request-body-name: body
x-menu-order: 2
x-undo:
type: idempotent
x-unstable: '**Note**: This endpoint is in public beta.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/api/v2/logs/config/metrics:
get:
description: Get the list of configured log-based metrics with their definitions.
operationId: ListLogsMetrics
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/LogsMetricsResponse'
description: OK
'403':
$ref: '#/components/responses/NotAuthorizedResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Datadog Get All Log-based Metrics
tags:
- Metrics
x-menu-order: 1
x-permission:
operator: OR
permissions:
- logs_read_config
x-undo:
type: safe
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
post:
description: 'Create a metric based on your ingested logs in your organization.
Returns the log-based metric object from the request body when the request is successful.'
operationId: CreateLogsMetric
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/LogsMetricCreateRequest'
description: The definition of the new log-based metric.
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/LogsMetricResponse'
description: OK
'400':
$ref: '#/components/responses/BadRequestResponse'
'403':
$ref: '#/components/responses/NotAuthorizedResponse'
'409':
$ref: '#/components/responses/ConflictResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Datadog Create a Log-based Metric
tags:
- Metrics
x-codegen-request-body-name: body
x-given:
logs_metric:
parameters:
- name: body
value: "{\n \"data\": {\n \"id\": \"{{ unique }}\",\n \"attributes\": {\n \"filter\": {\n \"query\": \"source:{{ unique }}\"\n },\n \"compute\": {\n \"aggregation_type\": \"count\"\n }\n },\n \"type\": \"logs_metrics\"\n }\n}"
step: there is a valid "logs_metric" in the system
logs_metric_percentile:
parameters:
- name: body
value: "{\n \"data\": {\n \"id\": \"{{ unique }}\",\n \"attributes\": {\n \"filter\": {\n \"query\": \"source:{{ unique }}\"\n },\n \"compute\": {\n \"aggregation_type\": \"distribution\",\n \"path\": \"@duration\",\n \"include_percentiles\": true\n }\n },\n \"type\": \"logs_metrics\"\n }\n}"
step: there is a valid "logs_metric_percentile" in the system
x-menu-order: 2
x-permission:
operator: OR
permissions:
- logs_generate_metrics
x-undo:
operationId: DeleteLogsMetric
parameters:
- name: metric_id
source: data.id
type: unsafe
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/api/v2/logs/config/metrics/{metric_id}:
delete:
description: Delete a specific log-based metric from your organization.
operationId: DeleteLogsMetric
parameters:
- $ref: '#/components/parameters/MetricID'
responses:
'204':
description: OK
'403':
$ref: '#/components/responses/NotAuthorizedResponse'
'404':
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Datadog Delete a Log-based Metric
tags:
- Metrics
x-menu-order: 5
x-permission:
operator: OR
permissions:
- logs_generate_metrics
x-undo:
type: idempotent
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
get:
description: Get a specific log-based metric from your organization.
operationId: GetLogsMetric
parameters:
- $ref: '#/components/parameters/MetricID'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/LogsMetricResponse'
description: OK
'403':
$ref: '#/components/responses/NotAuthorizedResponse'
'404':
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Datadog Get a Log-based Metric
tags:
- Metrics
x-menu-order: 3
x-permission:
operator: OR
permissions:
- logs_read_config
x-undo:
type: safe
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
patch:
description: 'Update a specific log-based metric from your organization.
Returns the log-based metric object from the request body when the request is successful.'
operationId: UpdateLogsMetric
parameters:
- $ref: '#/components/parameters/MetricID'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/LogsMetricUpdateRequest'
description: New definition of the log-based metric.
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/LogsMetricResponse'
description: OK
'400':
$ref: '#/components/responses/BadRequestResponse'
'403':
$ref: '#/components/responses/NotAuthorizedResponse'
'404':
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Datadog Update a Log-based Metric
tags:
- Metrics
x-codegen-request-body-name: body
x-menu-order: 4
x-permission:
operator: OR
permissions:
- logs_generate_metrics
x-undo:
type: idempotent
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/api/v2/metrics:
get:
description: 'Returns all metrics that can be configured in the Metrics Summary page or with Metrics without Limits™ (matching additional filters if specified).
Optionally, paginate by using the `page[cursor]` and/or `page[size]` query parameters.
To fetch the first page, pass in a query parameter with either a valid `page[size]` or an empty cursor like `page[cursor]=`. To fetch the next page, pass in the `next_cursor` value from the response as the new `page[cursor]` value.
Once the `meta.pagination.next_cursor` value is null, all pages have been retrieved.'
operationId: ListTagConfigurations
parameters:
- description: Filter custom metrics that have configured tags.
example: true
in: query
name: filter[configured]
required: false
schema:
type: boolean
- description: Filter tag configurations by configured tags.
example: app
in: query
name: filter[tags_configured]
required: false
schema:
description: Tag keys to filter by.
type: string
- description: Filter metrics by metric type.
in: query
name: filter[metric_type]
required: false
schema:
$ref: '#/components/schemas/MetricTagConfigurationMetricTypeCategory'
example: metric alert
- description: 'Filter distributions with additional percentile
aggregations enabled or disabled.'
example: true
in: query
name: filter[include_percentiles]
required: false
schema:
type: boolean
- description: '(Preview) Filter custom metrics that have or have not been queried in the specified window[seconds].
If no window is provided or the window is less than 2 hours, a default of 2 hours will be applied.'
example: true
in: query
name: filter[queried]
required: false
schema:
type: boolean
- description: 'Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions.
Can only be combined with the filter[queried] filter.'
example: env IN (staging,test) AND service:web
in: query
name: filter[tags]
required: false
schema:
type: string
- description: (Preview) Filter metrics that are used in dashboards, monitors, notebooks, SLOs.
example: true
in: query
name: filter[related_assets]
required: false
schema:
type: boolean
- description: 'The number of seconds of look back (from now) to apply to a filter[tag] or filter[queried] query.
Default value is 3600 (1 hour), maximum value is 2,592,000 (30 days).'
example: 3600
in: query
name: window[seconds]
required: false
schema:
format: int64
type: integer
- description: Maximum number of results returned.
in: query
name: page[size]
required: false
schema:
default: 10000
format: int32
maximum: 10000
minimum: 1
type: integer
example: 42
- description: 'String to query the next page of results.
This key is provided with each valid response from the API in `meta.pagination.next_cursor`.
Once the `meta.pagination.next_cursor` key is null, all pages have been retrieved.'
in: query
name: page[cursor]
required: false
schema:
type: string
example: example_value
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/MetricsAndMetricTagConfigurationsResponse'
description: Success
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Forbidden
'429':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Too Many Requests
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- metrics_read
summary: Datadog Get a List of Metrics
tags:
- Metrics
x-menu-order: 5
x-pagination:
cursorParam: page[cursor]
cursorPath: meta.pagination.next_cursor
limitParam: page[size]
resultsPath: data
x-permission:
operator: OR
permissions:
- metrics_read
x-undo:
type: safe
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/api/v2/metrics/config/bulk-tags:
x-merge-override:
delete: false
delete:
description: 'Delete all custom lists of queryable tag keys for a set of existing count, gauge, rate, and distribution metrics.
Metrics are selected by passing a metric name prefix.
Results can be sent to a set of account email addresses, just like the same operation in the Datadog web app.
Can only be used with application keys of users with the `Manage Tags for Metrics` permission.'
operationId: DeleteBulkTagsMetricsConfiguration
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MetricBulkTagConfigDeleteRequest'
required: true
responses:
'202':
content:
application/json:
schema:
$ref: '#/components/schemas/MetricBulkTagConfigResponse'
description: Accepted
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Not Found
'429':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Too Many Requests
summary: Datadog Delete Tags for Multiple Metrics
tags:
- Metrics
x-codegen-request-body-name: body
x-menu-order: 10
x-permission:
operator: OR
permissions:
- metric_tags_write
x-undo:
type: idempotent
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
post:
description: 'Create and define a list of queryable tag keys for a set of existing count, gauge, rate, and distribution metrics.
Metrics are selected by passing a metric name prefix. Use the Delete method of this API path to remove tag configurations.
Results can be sent to a set of account email addresses, just like the same operation in the Datadog web app.
If multiple calls include the same metric, the last configuration applied (not by submit order) is used, do not
expect deterministic ordering of concurrent calls. The `exclude_tags_mode` value will set all metrics that match the prefix to
the same exclusion state, metric tag configurations do not support mixed inclusion and exclusion for tags on the same metric.
Can only be used with application keys of users with the `Manage Tags for Metrics` permission.'
operationId: CreateBulkTagsMetricsConfiguration
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MetricBulkTagConfigCreateRequest'
required: true
responses:
'202':
content:
application/json:
schema:
$ref: '#/components/schemas/MetricBulkTagConfigResponse'
description: Accepted
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Not Found
'429':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Too Many Requests
summary: Datadog Configure Tags for Multiple Metrics
tags:
- Metrics
x-codegen-request-body-name: body
x-menu-order: 9
x-permission:
operator: OR
permissions:
- metric_tags_write
x-undo:
operationId: DeleteBulkTagsMetricsConfiguration
parameters:
- name: body
template: "{\n \"data\": {\n \"id\":\"{{ data.id }}\",\n \"type\":\"metric_bulk_configure_tags\",\n \"attributes\": {\n \"emails\": [\"{{ data.attributes.emails[0] }}\"]\n }\n }\n}"
type: unsafe
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/api/v2/metrics/{metric_name}/all-tags:
get:
description: View indexed tag key-value pairs for a given metric name over the previous hour.
operationId: ListTagsByMetricName
parameters:
- $ref: '#/components/parameters/MetricName'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/MetricAllTagsResponse'
description: Success
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Not Found
'429':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Too Many Requests
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- metrics_read
summary: Datadog List Tags by Metric Name
tags:
- Metrics
x-menu-order: 6
x-permission:
operator: OR
permissions:
- metrics_read
x-undo:
type: safe
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/api/v2/metrics/{metric_name}/assets:
get:
description: Returns dashboards, monitors, notebooks, and SLOs that a metric is stored in, if any. Updated every 24 hours.
operationId: ListMetricAssets
parameters:
- $ref: '#/components/parameters/MetricName'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/MetricAssetsResponse'
description: Success
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: API error response.
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: API error response.
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: API error response.
'429':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Too Many Requests
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ: []
summary: Datadog Related Assets to a Metric
tags:
- Metrics
x-menu-order: 12
x-undo:
type: safe
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/api/v2/metrics/{metric_name}/volumes:
get:
description: 'View distinct metrics volumes for the given metric name.
Custom metrics generated in-app from other products will return `null` for ingested volumes.'
operationId: ListVolumesByMetricName
parameters:
- $ref: '#/components/parameters/MetricName'
responses:
'200':
# --- truncated at 32 KB (123 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/datadog/refs/heads/main/openapi/datadog-metrics-api-openapi.yml