> 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.md).

# Monitoring

Spice Cloud exposes a [Prometheus-compatible metrics endpoint](https://github.com/spicehq/docs/blob/trunk/cloud/api/metrics.md) (`/v1/metrics`) on each app instance. Use it to scrape runtime metrics and build dashboards and alerts in your monitoring platform of choice.

```bash
curl https://<app-cname>.spiceai.io/v1/metrics \
  -H "X-API-Key: <API_KEY>"
```

Pre-built dashboards and setup guides are available:

* [Portal](/docs/monitoring/monitoring/portal.md) - Built-in monitoring dashboard in the Spice.ai Cloud portal
* [Grafana & Prometheus](/docs/monitoring/monitoring/grafana.md) - Scrape metrics with Prometheus, visualize in Grafana
* [Datadog](/docs/monitoring/monitoring/datadog.md) - Scrape metrics with the Datadog Agent's OpenMetrics integration
* [Zipkin](/docs/monitoring/monitoring/zipkin.md) - Distributed tracing with Zipkin

For the full list of available metrics, see the [Metrics API reference](https://github.com/spicehq/docs/blob/trunk/cloud/api/metrics.md#available-metrics).

{% hint style="warning" %}
The metrics endpoint provides Spice runtime metrics only. Kubernetes pod-level metrics (CPU, memory, etc.) are not currently included.
{% endhint %}


---

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