@@ -64,8 +64,8 @@ pub struct Report {
6464 server_mode : String ,
6565 version : String ,
6666 commit_hash : String ,
67- active_ingesters : u64 ,
68- inactive_ingesters : u64 ,
67+ active_ingestors : u64 ,
68+ inactive_ingestors : u64 ,
6969 stream_count : usize ,
7070 total_events_count : u64 ,
7171 total_json_bytes : u64 ,
@@ -91,7 +91,7 @@ impl Report {
9191 cpu_count = info. cpus ( ) . len ( ) ;
9292 mem_total = info. total_memory ( ) ;
9393 }
94- let ingester_metrics = fetch_ingesters_metrics ( ) . await ;
94+ let ingestor_metrics = fetch_ingestors_metrics ( ) . await ;
9595
9696 Self {
9797 deployment_id : storage:: StorageMetadata :: global ( ) . deployment_id ,
@@ -106,12 +106,12 @@ impl Report {
106106 server_mode : CONFIG . parseable . mode . to_string ( ) ,
107107 version : current ( ) . released_version . to_string ( ) ,
108108 commit_hash : current ( ) . commit_hash ,
109- active_ingesters : ingester_metrics . 0 ,
110- inactive_ingesters : ingester_metrics . 1 ,
111- stream_count : ingester_metrics . 2 ,
112- total_events_count : ingester_metrics . 3 ,
113- total_json_bytes : ingester_metrics . 4 ,
114- total_parquet_bytes : ingester_metrics . 5 ,
109+ active_ingestors : ingestor_metrics . 0 ,
110+ inactive_ingestors : ingestor_metrics . 1 ,
111+ stream_count : ingestor_metrics . 2 ,
112+ total_events_count : ingestor_metrics . 3 ,
113+ total_json_bytes : ingestor_metrics . 4 ,
114+ total_parquet_bytes : ingestor_metrics . 5 ,
115115 metrics : build_metrics ( ) . await ,
116116 }
117117 }
@@ -122,7 +122,7 @@ impl Report {
122122 }
123123}
124124
125- /// build the node metrics for the node ingester endpoint
125+ /// build the node metrics for the node ingestor endpoint
126126pub async fn get_analytics ( _: HttpRequest ) -> impl Responder {
127127 let json = NodeMetrics :: build ( ) ;
128128 web:: Json ( json)
@@ -148,23 +148,23 @@ fn total_event_stats() -> (u64, u64, u64) {
148148 ( total_events, total_json_bytes, total_parquet_bytes)
149149}
150150
151- async fn fetch_ingesters_metrics ( ) -> ( u64 , u64 , usize , u64 , u64 , u64 ) {
151+ async fn fetch_ingestors_metrics ( ) -> ( u64 , u64 , usize , u64 , u64 , u64 ) {
152152 let event_stats = total_event_stats ( ) ;
153153 let mut node_metrics =
154154 NodeMetrics :: new ( total_streams ( ) , event_stats. 0 , event_stats. 1 , event_stats. 2 ) ;
155155
156156 let mut vec = vec ! [ ] ;
157- let mut active_ingesters = 0u64 ;
158- let mut offline_ingesters = 0u64 ;
157+ let mut active_ingestors = 0u64 ;
158+ let mut offline_ingestors = 0u64 ;
159159 if CONFIG . parseable . mode == Mode :: Query {
160160 // send analytics for ingest servers
161161
162- // ingester infos should be valid here, if not some thing is wrong
163- let ingester_infos = cluster:: get_ingester_info ( ) . await . unwrap ( ) ;
162+ // ingestor infos should be valid here, if not some thing is wrong
163+ let ingestor_infos = cluster:: get_ingestor_info ( ) . await . unwrap ( ) ;
164164
165- for im in ingester_infos {
165+ for im in ingestor_infos {
166166 if !check_liveness ( & im. domain_name ) . await {
167- offline_ingesters += 1 ;
167+ offline_ingestors += 1 ;
168168 continue ;
169169 }
170170
@@ -185,15 +185,15 @@ async fn fetch_ingesters_metrics() -> (u64, u64, usize, u64, u64, u64) {
185185
186186 let data = serde_json:: from_slice :: < NodeMetrics > ( & resp. bytes ( ) . await . unwrap ( ) ) . unwrap ( ) ;
187187 vec. push ( data) ;
188- active_ingesters += 1 ;
188+ active_ingestors += 1 ;
189189 }
190190
191191 node_metrics. accumulate ( & mut vec) ;
192192 }
193193
194194 (
195- active_ingesters ,
196- offline_ingesters ,
195+ active_ingestors ,
196+ offline_ingestors ,
197197 node_metrics. stream_count ,
198198 node_metrics. total_events_count ,
199199 node_metrics. total_json_bytes ,
0 commit comments