Menu
Grafana Cloud

Anthropic integration for Grafana Cloud

The Anthropic integration allows you to stay on top of your AI costs by showing detailed reports and configuring useful alert rules.

Before you begin

  • Authentication - You need an Anthropic Admin API key. These differ from regular API keys and start with sk-ant-admin...

Install Anthropic integration for Grafana Cloud

  1. In your Grafana Cloud stack, click Connections in the left-hand menu.
  2. Find and select the Anthropic tile to open the integration.
  3. Follow the steps outlined on the Configuration page to configure scrape jobs, which pull the data from Anthropic.
  4. Once scrape jobs are configured, click Install to add the prebuilt dashboards to your Grafana Cloud instance.

Configuration

The Anthropic integration works by periodically scraping the Anthropic API for new usage data. You can set up multiple scrape jobs on one Grafana Cloud instance. This can be useful, if you want to monitor the costs of multiple accounts in a single instance.

Create scrape jobs

To configure scrape jobs for the Anthropic integration, follow these steps:

  1. Give a unique name to your scrape job using only alphanumeric characters, dashes, and underscores. All metric series that this scrape job collects will be labeled with the associated scrape job name. For example, gen_ai_cost{job="my-production-account"}.
  2. Set the API key for the scrape job.
  3. Test the connection to ensure that Grafana Cloud can connect using this API key. If there is an error, an error message will specify the reason for the failure.
  4. Save the scrape job, which will automatically begin scraping your metrics and push them into your Grafana Cloud Metrics instance.

After installation, visit the Anthropic API usage dashboard to check the status of your scrape job or explore your metrics.

Dashboards

The Anthropic integration installs the following dashboard in your Grafana Cloud instance.

  • Anthropic API usage
  • Scrape overview

Anthropic cost overview 1

image

Anthropic cost overview 2

image

Alerts

The Anthropic integration includes the following useful alerts:

AlertDescription
AnthropicDailyCostSpikeWarning: Anthropic API daily cost spike detected.
AnthropicTokenRateAnomalyWarning: Anthropic API token rate anomaly detected.
AnthropicHighCostThresholdCritical: Anthropic API cost threshold exceeded.

Changelog

md
# 1.1.0 - August 2025

* Use new panel type for token consuption to improve usability
* Add filtering by API key

# 1.0.0 - August 2025

* Initial release of the Anthropic integration providing cost observability