File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,11 @@ var (
155
155
156
156
// ClickHouse Insert Row Count Metrics
157
157
var (
158
+ ClickHouseMainStorageInsertOperations = promauto .NewCounter (prometheus.CounterOpts {
159
+ Name : "clickhouse_main_storage_insert_operations" ,
160
+ Help : "The total number of insert operations into ClickHouse main storage" ,
161
+ })
162
+
158
163
ClickHouseMainStorageRowsInserted = promauto .NewCounter (prometheus.CounterOpts {
159
164
Name : "clickhouse_main_storage_rows_inserted_total" ,
160
165
Help : "The total number of rows inserted into ClickHouse main storage" ,
Original file line number Diff line number Diff line change @@ -1358,9 +1358,10 @@ func (c *ClickHouseConnector) InsertBlockData(data []common.BlockData) error {
1358
1358
metrics .ClickHouseTransactionsInserted .Add (float64 (txsCount ))
1359
1359
metrics .ClickHouseLogsInserted .Add (float64 (logsCount ))
1360
1360
metrics .ClickHouseTracesInserted .Add (float64 (tracesCount ))
1361
+ metrics .ClickHouseMainStorageRowsInserted .Add (float64 (end - i ))
1362
+ metrics .ClickHouseMainStorageInsertOperations .Inc ()
1361
1363
}
1362
1364
1363
- metrics .ClickHouseMainStorageRowsInserted .Add (float64 (len (data )))
1364
1365
return nil
1365
1366
}
1366
1367
You can’t perform that action at this time.
0 commit comments