> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/tsr/latest/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/tsr/latest/metrics.md).

# Metrics

TSR Sink exposes the following metrics:

| Name | Description | Type |
|---|---|---|
| tsr_ipfix_received | Number of received IPFIX messages | Counter |
| tsr_ipfix_persisted | Number of persisted IPFIX messages | Counter |
| tsr_sql_statements | Number of SQL statements sent to the database | Counter |
| tsr_sql_statement_execution_time | Histogram of SQL statement execution time in milliseconds | Histogram |
| tsr_db_insert_error | Number of errors while inserting data | Counter |
| tsr_create_table_error | Number of errors while creating a table | Counter |

> **NOTE:** `tsr_ipfix_received` is larger than `tsr_ipfix_persisted` if data is aggregated.
