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

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

The question should be specific, self-contained, and written in natural language.
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.
