Anthropic Usage and Costs integration metrics

The official Datadog integration for monitoring Anthropic Usage and Costs. It collects 8 metrics.

Official summary

Optimize your Anthropic usage: monitor token consumption, track your costs, and attribute usage.

Metric types

  • gauge (value at a point in time): 7
  • count (occurrences in the interval): 1

Metrics

Descriptions are the official definitions, unedited.

MetricTypeUnit
anthropic.cache_creation.ephemeral_1h_input_tokensInput tokens used during ephemeral 1 hour cache creation.gaugetoken
anthropic.cache_creation.ephemeral_5m_input_tokensInput tokens used during ephemeral 5 minute cache creation.gaugetoken
anthropic.cache_read_input_tokensInput tokens retrieved from anthropic cache reads.gaugetoken
anthropic.input_tokensNumber of input tokens used in a request to Anthropic.gaugetoken
anthropic.messages.input_tokensNumber of input tokens used in a request to Anthropic.gaugetoken
anthropic.messages.output_tokensNumber of output tokens generated in a response from Anthropic.gaugetoken
anthropic.output_tokensNumber of output tokens generated in a response from Anthropic.gaugetoken
anthropic.server_tool_use.web_search_requestsNumber of web search requests triggered by server tool use in Anthropic.countrequest

Official documentation

Official documentation for the Anthropic Usage and Costs integration

Metric names and descriptions are the official Datadog integration definitions (Copyright Datadog, Inc., BSD-3-Clause), reproduced unedited. The full license terms are on the About page.