Grafana Cloud

Coding agents billing integration for Grafana Cloud

The Coding agents billing integration brings what your coding agents cost into Grafana Cloud, straight from your provider’s bill, broken down by person, product and model. It needs one admin key and nothing on developers’ machines, and it covers all the spend: every developer, CI, and apps that call the API with a key. Anthropic is supported today.

How it differs from related integrations:

  • Claude Code and OpenAI Codex collect telemetry from each developer’s CLI, with cost estimated on the developer’s machine. This integration reads the amount the provider bills, including use those CLIs don’t report. Use them together: telemetry for activity, billing for cost.
  • Anthropic shows cost by workspace and model. This integration adds who spent it and on which product, such as Claude Code or the API.

The integration reads the cost your provider bills you for, not an estimate from agent telemetry. Each scrape job reads one provider.

Supported providers

ProviderKeyOrganizations
AnthropicAdmin API key (starts with sk-ant-admin)Claude Console organizations. Support for Claude Enterprise organizations is coming soon. Claude Pro, Max and Team plans aren’t supported.

Before you begin

  • Anthropic: you need an Admin API key for your Claude Console organization. Admin API keys differ from regular API keys and start with sk-ant-admin. Only organization admins can create them, in the Claude Console under Settings > Admin keys.

Install the Coding agents billing integration for Grafana Cloud

  1. In your Grafana Cloud stack, click Connections in the left-hand menu.
  2. Find and select the Coding agents billing tile to open the integration.
  3. Follow the steps on the Configuration page to create a scrape job, which pulls the billed cost from your provider.
  4. Once the scrape job is created, click Install to add the prebuilt dashboards to your Grafana Cloud instance.

Configuration

The integration scrapes your provider’s billing API every 5 minutes. You can create several scrape jobs on one Grafana Cloud instance, for example one per provider or one per organization.

Create a scrape job

  1. Give the scrape job a unique name, using only alphanumeric characters, dashes and underscores. Every series the job collects is labeled with this name in scrape_job.
  2. Select the provider.
  3. Enter the provider’s key.
  4. Choose whether to Break down cost per person. It’s on by default and adds a user label with each person’s email. Turn it off if you don’t want people’s emails in your metrics.
  5. Click Test connection to check that Grafana Cloud can read the billing API with this key. If it can’t, an error message says why.
  6. Save the scrape job. It starts scraping right away and writes the metrics into your Grafana Cloud Metrics instance.

After installation, open the Coding agents billing overview dashboard to explore the billed cost, or the Scrape overview dashboard to check the status of your scrape jobs.

How to read the data

  • agento11y_billed_cost_total is the billed cost in USD for a calendar month (month label, UTC). It only goes up during the month. Use its latest value for “this month”.
  • With Break down cost per person on, spend made with an API key has the key’s creator in user and the key’s name in api_key. A person’s own spend has no api_key. Spend with no person behind it, such as a service account’s key or a key whose creator has left the organization, has user="unassigned".
  • The provider’s numbers are usually a few hours behind, and up to 24 hours. agento11y_billed_cost_data_through_timestamp_seconds says up to when they’re complete. A month’s values can still change after it ends.
  • When the provider rejects a scrape, for example because a key was revoked, the cost series stop updating and metrics_endpoint_export_response_success is 0, with the provider’s status code in status_code.

Dashboards

The Coding agents billing integration installs the following dashboards in your Grafana Cloud instance.

  • Coding agents billing overview
  • Scrape overview

Billed cost this month, by product, model and cost type

image

Billed cost by person and by day

image

Changelog

md
# 1.0.0 - December 2026

* Initial release: billed cost from Anthropic, with a billing overview dashboard and a scrape overview dashboard