> For the complete documentation index, see [llms.txt](https://tradesync.gitbook.io/tradesync/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tradesync.gitbook.io/tradesync/dealshistory/metrics.md).

# Metrics

| Name                                                            | Type        | Description                                                                   |
| --------------------------------------------------------------- | ----------- | ----------------------------------------------------------------------------- |
| `deals_history_deals_send_count`                                | `counter`   | count of deals send via Rest                                                  |
| `deals_history_ch_insert_success_count`                         | `counter`   | Number of successful inserts in ClickHouse from BatchWriter (written in DB)   |
| `deals_history_ch_insert_failure_count`                         | `counter`   | Number of unsuccessful inserts in ClickHouse from BatchWriter (written in DB) |
| `deals_history_deals_duration_from_mt_to_deals_history_current` | `gauge`     | duration of getting deals from mt server to DealsHistory                      |
| `deals_history_deals_get_count`                                 | `counter`   | count of deals get                                                            |
| `deals_history_deals_get_duration_from_mt_to_deals_history`     | `histogram` | duration of getting deals from mt server to deals history                     |
| `deals_history_deals_get_duration_from_mt_to_rw_manager`        | `histogram` | duration of getting deals from mt server to RW manager                        |
| `deals_history_deals_get_duration_from_nats_to_deals_history`   | `histogram` | duration of getting deals from NATS to deals history                          |
| `deals_history_deals_get_duration_from_rw_manager_to_nats`      | `histogram` | duration of getting deals from RW manager to NATS                             |
|                                                                 |             |                                                                               |
