Skip to content

Commit 9f7d13b

Browse files
authored
feat: add index and delete op metrics
1 parent a81478d commit 9f7d13b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,12 @@ This setup ensures continuous data synchronization and minimal downtime in captu
186186
The client collects relevant metrics related to PostgreSQL change data capture (CDC) and makes them available at
187187
the `/metrics` endpoint.
188188

189-
| Metric Name | Description | Labels | Value Type |
190-
|--------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|-----------------|------------|
191-
| go_pq_cdc_elasticsearch_process_latency_current | The latest elasticsearch connector process latency in nanoseconds. | slot_name, host | Gauge |
192-
| go_pq_cdc_elasticsearch_bulk_request_process_latency_current | The latest elasticsearch connector bulk request process latency in nanoseconds. | slot_name, host | Gauge |
189+
| Metric Name | Description | Labels | Value Type |
190+
|--------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|-----------------------------|------------|
191+
| go_pq_cdc_elasticsearch_process_latency_current | The latest elasticsearch connector process latency in nanoseconds. | slot_name, host | Gauge |
192+
| go_pq_cdc_elasticsearch_bulk_request_process_latency_current | The latest elasticsearch connector bulk request process latency in nanoseconds. | slot_name, host | Gauge |
193+
| go_pq_cdc_elasticsearch_index_total | Total number of index operation. | slot_name, host, index_name | Counter |
194+
| go_pq_cdc_elasticsearch_delete_total | Total number of delete operation. | slot_name, host, index_name | Counter |
193195

194196
You can also use all cdc related metrics explained [here](https://github.com/Trendyol/go-pq-cdc#exposed-metrics).
195197
All cdc related metrics are automatically injected. It means you don't need to do anything.

0 commit comments

Comments
 (0)