@@ -121,6 +121,9 @@ const ES_INDEX_NAME: &str = "scaphandre";
121121#[ derive( Debug , Serialize , Deserialize , PartialEq ) ]
122122pub struct ScaphandreData {
123123 pub scaphandre_version : String ,
124+ pub scaphandre_topo_stats_nb : i32 ,
125+ pub scaphandre_topo_records_nb : i32 ,
126+ pub scaphandre_topo_procs_nb : i32 ,
124127 pub scaphandre_cpu_usage_percentage : Option < u32 > ,
125128 pub scaphandre_mem_total_program_size : Option < u64 > ,
126129 pub scaphrandre_mem_resident_set_size : Option < u64 > ,
@@ -155,6 +158,9 @@ impl ElasticExporter {
155158 ) )
156159 . body ( ScaphandreData {
157160 scaphandre_version : get_scaphandre_version ( ) ,
161+ scaphandre_topo_stats_nb : self . topology . stat_buffer . len ( ) as i32 ,
162+ scaphandre_topo_records_nb : self . topology . record_buffer . len ( ) as i32 ,
163+ scaphandre_topo_procs_nb : self . topology . proc_tracker . procs . len ( ) as i32 ,
158164 scaphandre_cpu_usage_percentage : self . get_scaphandre_cpu_usage_percentage ( ) ,
159165 scaphandre_mem_total_program_size : self . get_scaphandre_mem_total_program_size ( ) ,
160166 scaphrandre_mem_resident_set_size : self . get_scaphandre_mem_resident_set_size ( ) ,
0 commit comments