File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ const batchMetricsWriteClient = influx.getWriteApi(
35
35
setInterval ( ( ) => {
36
36
publishWriteClient . flush ( ) . catch ( console . error )
37
37
networkInfoWriteClient . flush ( ) . catch ( console . error )
38
- batchMetricsWriteClient . flush ( ) . catch ( console . error )
39
38
} , 10_000 ) . unref ( )
40
39
41
40
const recordFn = ( client , name , fn ) => {
@@ -51,6 +50,5 @@ export {
51
50
publishWriteClient ,
52
51
networkInfoWriteClient ,
53
52
recordPublishTelemetry ,
54
- recordNetworkInfoTelemetry ,
55
- batchMetricsWriteClient
53
+ recordNetworkInfoTelemetry
56
54
}
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ export const publish = async ({
131
131
132
132
logger . log ( 'Done!' )
133
133
134
- // Enhanced telemetry recording with separate batch metrics
134
+ // Telemetry recording with batch size metrics
135
135
recordTelemetry ( 'publish' , point => {
136
136
// Existing metrics
137
137
point . intField ( 'round_index' , roundIndex )
@@ -142,16 +142,10 @@ export const publish = async ({
142
142
uploadMeasurementsDuration
143
143
)
144
144
point . intField ( 'add_measurements_duration_ms' , ieAddMeasurementsDuration )
145
- } )
146
145
147
- // Separate batch metrics recording for better organization
148
- recordTelemetry ( 'batch_metrics' , point => {
146
+ // Add batch size metrics to existing publish point
149
147
point . intField ( 'batch_size_bytes' , batchSizeBytes )
150
148
point . floatField ( 'avg_measurement_size_bytes' , batchSizeBytes / measurements . length )
151
- point . intField ( 'measurement_count' , measurements . length )
152
- point . tag ( 'cid' , cid . toString ( ) )
153
- point . tag ( 'round_index' , roundIndex . toString ( ) )
154
- point . timestamp ( new Date ( ) )
155
149
} )
156
150
}
157
151
You can’t perform that action at this time.
0 commit comments