---
title: "Anthropic integration | Grafana Cloud documentation"
description: "Learn about Anthropic Grafana Cloud integration."
---

# 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**

**Anthropic cost overview 2**

## Alerts

The Anthropic integration includes the following useful alerts:

Expand table

| Alert                      | Description                                         |
|----------------------------|-----------------------------------------------------|
| AnthropicDailyCostSpike    | Warning: Anthropic API daily cost spike detected.   |
| AnthropicTokenRateAnomaly  | Warning: Anthropic API token rate anomaly detected. |
| AnthropicHighCostThreshold | Critical: Anthropic API cost threshold exceeded.    |

## Changelog

md ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```md
# 1.1.1 - September 2025

* Fix API key filtering in variables

# 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
```
