# Metrics

A step of the [Cloud application](https://gradus.kazet.blog/tree/cloud-application) tree on Gradus, in the Observability area: Logs, metrics, traces, alerts.

Page: https://gradus.kazet.blog/tree/cloud-application/step/metrics

Expose latency, error rate, traffic and saturation metrics (the four golden signals) for scraping by Prometheus or similar.

Usually comes after: [Structured logging](https://gradus.kazet.blog/tree/cloud-application/step/structured-logging).

Leads to: [Distributed tracing](https://gradus.kazet.blog/tree/cloud-application/step/distributed-tracing), [Dashboards](https://gradus.kazet.blog/tree/cloud-application/step/dashboards).

## Prompt for your AI assistant

```
Instrument the application with Prometheus-compatible metrics covering request latency, error rate, throughput and resource saturation, and expose a /metrics endpoint.
```

Every step of the tree: https://gradus.kazet.blog/tree/cloud-application/llms.txt
