> For the complete documentation index, see [llms.txt](https://docs.spice.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.spice.ai/docs/monitoring/monitoring/grafana.md).

# Grafana & Prometheus

Monitor Spice Cloud with Grafana and Prometheus

Spice Cloud can be monitored with Grafana using the [Metrics endpoint](https://github.com/spicehq/docs/tree/trunk/cloud/api/metrics.md) and a pre-built dashboard available in the [Spice repository](https://github.com/spiceai/spiceai/blob/trunk/monitoring/grafana-dashboard.json).

## Prometheus Configuration

Configure a Prometheus instance to scrape metrics from your Spice Cloud project:

```yaml
global:
  scrape_interval: 15s

scrape_configs:
  - job_name: spiceai
    scheme: https
    metrics_path: /v1/metrics
    static_configs:
      - targets: ['<project-cname>.spiceai.io']
    headers:
      X-API-Key: <API_KEY>
```

Replace `<project-cname>` with your project's CNAME (e.g. `us-west-2-prod-aws-data`) and `<API_KEY>` with your [project API key](/docs/portal/apps/api-keys.md).

## Import Grafana Dashboard

1. Navigate to **Dashboards** in Grafana and click **New** > **Import**
2. Copy the dashboard JSON from [`monitoring/grafana-dashboard.json`](https://raw.githubusercontent.com/spiceai/spiceai/trunk/monitoring/grafana-dashboard.json) into the import box
3. Click **Load**

The dashboard provides panels for system health, query performance, data acceleration, caching, AI/ML operations, and Flight protocol metrics.

## Grafana as a Query Tool

In addition to metrics monitoring, Grafana can query Spice Cloud data directly using the FlightSQL or Infinity plugins. See the [Grafana Integration](/docs/integrations/grafana.md) guide for setup instructions.

See also:

* [Metrics API](https://github.com/spicehq/docs/tree/trunk/cloud/api/metrics.md) - Endpoint reference and full list of available metrics
* [Datadog](/docs/monitoring/monitoring/datadog.md) - Alternative monitoring with Datadog


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.spice.ai/docs/monitoring/monitoring/grafana.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
