@@ -237,7 +237,7 @@ private void registerIndicesMetrics() {
237
237
238
238
catalog .registerGauge ("indices_completion_size_bytes" , "Size of completion suggest statistics" , "node" );
239
239
240
- catalog .registerCounter ("indices_segments_number" , "Current number of segments" , "node" );
240
+ catalog .registerGauge ("indices_segments_number" , "Current number of segments" , "node" );
241
241
catalog .registerGauge ("indices_segments_memory_bytes" , "Memory used by segments" , "node" , "type" );
242
242
243
243
catalog .registerGauge ("indices_suggest_current_number" , "Current rate of suggests" , "node" );
@@ -326,7 +326,7 @@ private void updateIndicesMetrics(NodeIndicesStats idx) {
326
326
327
327
catalog .setGauge ("indices_completion_size_bytes" , idx .getCompletion ().getSizeInBytes (), node );
328
328
329
- catalog .setCounter ("indices_segments_number" , idx .getSegments ().getCount (), node );
329
+ catalog .setGauge ("indices_segments_number" , idx .getSegments ().getCount (), node );
330
330
catalog .setGauge ("indices_segments_memory_bytes" , idx .getSegments ().getMemoryInBytes (), node , "all" );
331
331
catalog .setGauge ("indices_segments_memory_bytes" , idx .getSegments ().getBitsetMemoryInBytes (), node , "bitset" );
332
332
catalog .setGauge ("indices_segments_memory_bytes" , idx .getSegments ().getDocValuesMemoryInBytes (), node , "docvalues" );
0 commit comments