> ## Documentation Index
> Fetch the complete documentation index at: https://hercules.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent analytics

> See how your Hercules Agents are doing: how often they run and fail, how long they take, which tools they use, how they score, and what each one costs.

<Note>
  Agents is in private beta, so things may change. If you hit a problem, tell us via [Support &
  feedback](/docs/company/contact).
</Note>

Analytics answers three questions about your Agent: is it running, is it working, and what is it costing?

Go to **Agents** → open an Agent → **Monitor** → **Analytics**.

<div className="screenshot sunset">
  <img src="https://mintcdn.com/zeus-0f6dadbf/AUzCpLx0wjCzKFM0/images/agents/analytics-main.png?fit=max&auto=format&n=AUzCpLx0wjCzKFM0&q=85&s=8275275c554a433ecba75a5588724e3e" alt="Agent analytics showing the Runs volume and latency charts over the last 24 hours" width="1896" height="1640" data-path="images/agents/analytics-main.png" />
</div>

### What do the charts show?

The page has six sections. Use the tabs at the top to move between them, and the controls beside the heading to change the dates. **Filter** narrows every chart to a trigger, a version, or a model.

| Section | What's in it |
| - | - |
| **Runs** | How many runs, how they ended, which model they asked for, how long they took, and how often they failed |
| **LLM calls** | Every time the Agent asked a model something, and how long it waited |
| **Cost & tokens** | Credits per run, total usage, and where your spend is going |
| **Tools** | How often each tool was used, how slow it was, and how often it failed |
| **Step types** | What the Agent's steps were made up of |
| **Scores** | How your Agent is scoring on real runs, and how many were graded |

Runs you stopped yourself, and runs stopped by a limit, don't count as failures, but they're still part of the total the failure rate is measured against. Timings only count runs that finished.

### How do I compare all my Agents?

Go to **Agents** → **Analytics** in the sidebar. It ranks every Agent in your Organization over the dates you pick:

* Totals for spend, runs, active Agents, error rate, and run time
* A table of every Agent, sorted by spend by default. Sort by any column, and click an Agent to open its own Analytics
* Spend and runs over time for your busiest Agents, with the rest grouped as **Other agents**
* Runs by trigger, spend by source and by model, and the tools your Agents call most

Spend here includes [Auto-improve](/docs/agents/auto-improve), scoring, and run summaries, so an Agent that rarely runs can still rank high. Deleted Agents are grouped in one row at the bottom, since their spend still counts.

### Why is my spend higher than the runs chart suggests?

Because runs aren't the only thing that costs credits. **Spend by source**, under the Cost charts, splits your spend into runs and everything else: [Auto-improve](/docs/agents/auto-improve), scoring real runs, and run summaries.

The other charts only count runs, so this is where the rest shows up.

### How do I bring costs down?

* Cap a single run under **Build** → **More** → **Run limits**
* Drop the model tier if the Agent's job doesn't need the top one
* Remove tools the Agent doesn't use
* Grade fewer real runs, or turn that off completely
* Put a credit cap on Auto-improve

See [Costs and limits](/docs/agents/costs-and-limits).

### Additional FAQ

<AccordionGroup>
  <Accordion title="What counts as a failed run?">
    A run that finished and failed. Runs you stopped yourself, and runs stopped by a limit, aren't
    counted as failures, though they're still in the total the rate is measured against. Only runs
    that never reached a known ending are left out altogether.
  </Accordion>

  <Accordion title="Where do I see credits for my whole Organization?">
    On the [AI Credits](/docs/platform/billing/ai-credits) page. **Agents** → **Analytics** covers what
    your Agents spent; AI Credits also covers apps and chat.
  </Accordion>

  <Accordion title="My Agent is slow. What do I check?">
    Open a slow run in [Run history](/docs/agents/run-history) and read back through its steps. You'll see
    whether the time went on the model or on one of the tools, and the **Tools** section here shows
    which tool is slow across every run.
  </Accordion>

  <Accordion title="The Scores section is empty">
    Nothing has graded a real run yet. Turn on grading for a [scorer](/docs/agents/scorers) that doesn't
    need an expected answer.
  </Accordion>
</AccordionGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.