# Built-In Metrics

Queries in DeltaStream are long-lived and continuous. While DeltaStream provides its own tools to notify and alert you if your queries are misbehaving, you may want also to monitor queries from their own observability stacks. This document lists the built-in metrics that DeltaStream exposes so you can monitor your queries.

See [`CREATE METRICS INTEGRATION`](https://docs.deltastream.io/reference/sql-syntax/ddl/create-metrics-integration) for consuming the metrics in this document.

<table><thead><tr><th width="440">Metric Name</th><th width="127">Value Type</th><th>Description</th></tr></thead><tbody><tr><td><code>deltastream_query_consumerRecordsLagMax</code></td><td>Integer</td><td>Reports the Kafka Consumer lag in number of records that are currently behind.</td></tr><tr><td><code>deltastream_query_numRecordsInPerSecond</code></td><td>Integer</td><td>Reports current number of records being processed in per second.</td></tr><tr><td><code>deltastream_query_numRecordsOutPerSecond</code></td><td>Integer</td><td>Reports current number of records being processed out per second.</td></tr><tr><td><code>deltastream_query_numBytesInPerSecond</code></td><td>Integer</td><td>Reports current size of records being processed in per second. Values returned as binary bytes unit.</td></tr><tr><td><code>deltastream_query_numBytesOutPerSecond</code></td><td>Integer</td><td>Reports current size of records being processed out per second. Values returned as binary bytes unit.</td></tr></tbody></table>
