Tracing Application Metrics
Nouvelles annonces sur les technologies sans serveur et réseau ainsi que sur le RUM (Real-User Monitoring) dévoilées à la conférence Dash ! Nouvelles annonces dévoilées à la conférence Dash !

Tracing Application Metrics

Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.

Overview

The trace metrics namespace is trace.<NAME>.<METRICS>{<TAGS>}.

Tracing application metrics are collected after enabling trace collection and instrumenting your application. These metrics are available for dashboards and monitors.

Metric names

Trace metric names are formatted as trace.<NAME>.<METRIC> or trace.<NAME>.<METRIC_2ND_PRIM_TAG>.

ParameterDescription
<NAME>The name of the operation or span.name (examples: redis.command, pylons.request, rails.request, mysql.query).
<METRIC>The name of the metric (examples: duration, hits, span_count).
<METRIC_2ND_PRIM_TAG>If the metric name accounts for the second primary tag, this tag is part of the metric name.

Tags

Trace metrics come with a variety of tags. The possible tags are:

  • env
  • service
  • resource
  • sublayer_type
  • sublayer_service
  • http.status_code
  • http.status_class
  • Datadog Agent tags (including the host and second primary tag)

Note: Tags are attached based on the specific metric. See the metrics table below.

Data collected

Metrics

trace.NAME.duration
(gauge)
This metric exists for any APM service. It has the tags `env`, `service`, `resource`, and `http.status_code`. It also includes the second primary tag and Datadog Agent tags.
Shown as second
trace.NAME.duration.by_http_status
(gauge)
This metric exists for HTTP/WEB APM services if http metadata exists. It has the tags `env`, `service`, `resource`, `http.status_class` and `http.status_code`. It also includes the second primary tag and Datadog Agent tags.
Shown as second
trace.NAME.duration.by_service
(gauge)
This metric exists for any APM service. It has the tags `env`, `service`, `resource`, `sublayer_service`, and `http.status_code`. It also includes the second primary tag and Datadog Agent tags.
Shown as second
trace.NAME.duration.by_service.by_http_status
(gauge)
This metric exists for HTTP/WEB APM services if http metadata exists. It has the tags `env`, `service`, `resource`, `sublayer_service`, `http.status_class`, and `http.status_code`. It also includes the second primary tag and Datadog Agent tags.
Shown as second
trace.NAME.duration.by_type
(gauge)
This metric exists for any APM service. It has the tags `env`, `service`, `resource`, `sublayer_type`, and `http.status_code`. It also includes the second primary tag and Datadog Agent tags.
Shown as second
trace.NAME.duration.by_type.by_http_status
(gauge)
This metric exists for HTTP/WEB APM services if http metadata exists. It has the tags `env`, `service`, `resource`, `sublayer_type`, `http.status_class`, and `http.status_code`. It also includes the second primary tag and Datadog Agent tags.
Shown as second
trace.NAME.hits
(count)
This metric exists for any APM service. It has the tags `env`, `service`, `resource`, and `http.status_code`. It also includes the second primary tag and Datadog Agent tags.
Shown as hit
trace.NAME.hits.by_http_status
(count)
This metric exists for HTTP/WEB APM services if http metadata exists. It has the tags `env`, `service`, `resource`, `http.status_class`, and `http.status_code`. It also includes the second primary tag and Datadog Agent tags.
Shown as hit
trace.NAME.span_count
(count)
This metric exists for any APM service. It has the tags `env`, `service`, `resource`, and `http.status_code`. It also includes the second primary tag and Datadog Agent tags.
trace.NAME.span_count.by_http_status
(count)
This metric exists for HTTP/WEB APM services if http metadata exists. It has the tags `env`, `service`, `resource`, `http.status_class`, and `http.status_code`. It also includes the second primary tag and Datadog Agent tags.
trace.NAME.apdex.by.resource_2ND_PRIM_TAG_service
(gauge)
This metric exists for any HTTP/WEB APM service. It has the tags `env`, `service`, `resource`, and the second primary tag.
Shown as second
trace.NAME.apdex.by.resource_service
(gauge)
This metric exists for any HTTP/WEB APM service. It has the tags `env`, `service`, and `resource`.
Shown as second
trace.NAME.apdex.by.2ND_PRIM_TAG_service
(gauge)
This metric exists for any HTTP/WEB APM service. It has the tags `env`, `service`, and the second primary tag.
Shown as second
trace.NAME.apdex.by.service
(gauge)
This metric exists for any HTTP/WEB APM service. It has the tags `env` and `service`.
Shown as second
trace.NAME.duration.by.resource_2ND_PRIM_TAG_service.100p
(gauge)
This metric exists for any APM service. It has the tags `env`, `service`, `resource`, and the second primary tag.
Shown as second
trace.NAME.duration.by.resource_2ND_PRIM_TAG_service.50p
(gauge)
This metric exists for any APM service. It has the tags `env`, `service`, `resource`, and the second primary tag.
Shown as second
trace.NAME.duration.by.resource_2ND_PRIM_TAG_service.75p
(gauge)
This metric exists for any APM service. It has the tags `env`, `service`, `resource`, and the second primary tag.
Shown as second
trace.NAME.duration.by.resource_2ND_PRIM_TAG_service.90p
(gauge)
This metric exists for any APM service. It has the tags `env`, `service`, `resource`, and the second primary tag.
Shown as second
trace.NAME.duration.by.resource_2ND_PRIM_TAG_service.95p
(gauge)
This metric exists for any APM service. It has the tags `env`, `service`, `resource`, and the second primary tag.
Shown as second
trace.NAME.duration.by.resource_2ND_PRIM_TAG_service.99p
(gauge)
This metric exists for any APM service. It has the tags `env`, `service`, `resource`, and the second primary tag.
Shown as second
trace.NAME.duration.by.resource_service.100p
(gauge)
This metric exists for any APM service. It has the tags `env`, `service`, and `resource`.
Shown as second
trace.NAME.duration.by.resource_service.50p
(gauge)
This metric exists for any APM service. It has the tags `env`, `service`, and `resource`.
Shown as second
trace.NAME.duration.by.resource_service.75p
(gauge)
This metric exists for any APM service. It has the tags `env`, `service`, and `resource`.
Shown as second
trace.NAME.duration.by.resource_service.90p
(gauge)
This metric exists for any APM service. It has the tags `env`, `service`, and `resource`.
Shown as second
trace.NAME.duration.by.resource_service.95p
(gauge)
This metric exists for any APM service. It has the tags `env`, `service`, and `resource`.
Shown as second
trace.NAME.duration.by.resource_service.99p
(gauge)
This metric exists for any APM service. It has the tags `env`, `service`, and `resource`.
Shown as second
trace.NAME.duration.by.2ND_PRIM_TAG_service.100p
(gauge)
This metric exists for any APM service. It has the tags `env` and `service`.
Shown as second
trace.NAME.duration.by.2ND_PRIM_TAG_service.50p
(gauge)
This metric exists for any APM service. It has the tags `env` and `service`.
Shown as second
trace.NAME.duration.by.2ND_PRIM_TAG_service.75p
(gauge)
This metric exists for any APM service. It has the tags `env` and `service`.
Shown as second
trace.NAME.duration.by.2ND_PRIM_TAG_service.90p
(gauge)
This metric exists for any APM service. It has the tags `env` and `service`.
Shown as second
trace.NAME.duration.by.2ND_PRIM_TAG_service.95p
(gauge)
This metric exists for any APM service. It has the tags `env` and `service`.
Shown as second
trace.NAME.duration.by.2ND_PRIM_TAG_service.99p
(gauge)
This metric exists for any APM service. It has the tags `env` and `service`.
Shown as second
trace.NAME.duration.by.service.100p
(gauge)
This metric exists for any APM service. It has the tags `env` and `service`.
Shown as second
trace.NAME.duration.by.service.50p
(gauge)
This metric exists for any APM service. It has the tags `env` and `service`.
Shown as second
trace.NAME.duration.by.service.75p
(gauge)
This metric exists for any APM service. It has the tags `env` and `service`.
Shown as second
trace.NAME.duration.by.service.90p
(gauge)
This metric exists for any APM service. It has the tags `env` and `service`.
Shown as second
trace.NAME.duration.by.service.95p
(gauge)
This metric exists for any APM service. It has the tags `env` and `service`.
Shown as second
trace.NAME.duration.by.service.99p
(gauge)
This metric exists for any APM service. It has the tags `env` and `service`.
Shown as second

Further Reading