@@ -50,7 +50,6 @@ pub struct Metrics {
5050 event_time : NaiveDateTime ,
5151 commit : String ,
5252 staging : String ,
53- cache : String ,
5453}
5554
5655#[ derive( Debug , Serialize , Default , Clone ) ]
@@ -85,7 +84,6 @@ impl Default for Metrics {
8584 event_time : Utc :: now ( ) . naive_utc ( ) ,
8685 commit : "" . to_string ( ) ,
8786 staging : "" . to_string ( ) ,
88- cache : "" . to_string ( ) ,
8987 }
9088 }
9189}
@@ -109,7 +107,6 @@ impl Metrics {
109107 event_time : Utc :: now ( ) . naive_utc ( ) ,
110108 commit : "" . to_string ( ) ,
111109 staging : "" . to_string ( ) ,
112- cache : "" . to_string ( ) ,
113110 }
114111 }
115112}
@@ -206,7 +203,7 @@ impl Metrics {
206203 }
207204 }
208205 }
209- let ( commit_id, staging, cache ) = Self :: from_about_api_response ( ingestor_metadata. clone ( ) )
206+ let ( commit_id, staging) = Self :: from_about_api_response ( ingestor_metadata. clone ( ) )
210207 . await
211208 . map_err ( |err| {
212209 error ! ( "Fatal: failed to get ingestor info: {:?}" , err) ;
@@ -215,14 +212,13 @@ impl Metrics {
215212
216213 prom_dress. commit = commit_id;
217214 prom_dress. staging = staging;
218- prom_dress. cache = cache;
219215
220216 Ok ( prom_dress)
221217 }
222218
223219 pub async fn from_about_api_response (
224220 ingestor_metadata : IngestorMetadata ,
225- ) -> Result < ( String , String , String ) , PostError > {
221+ ) -> Result < ( String , String ) , PostError > {
226222 let uri = Url :: parse ( & format ! (
227223 "{}{}/about" ,
228224 & ingestor_metadata. domain_name,
@@ -249,15 +245,7 @@ impl Metrics {
249245 . get ( "staging" )
250246 . and_then ( |x| x. as_str ( ) )
251247 . unwrap_or_default ( ) ;
252- let cache = about_api_json
253- . get ( "cache" )
254- . and_then ( |x| x. as_str ( ) )
255- . unwrap_or_default ( ) ;
256- Ok ( (
257- commit_id. to_string ( ) ,
258- staging. to_string ( ) ,
259- cache. to_string ( ) ,
260- ) )
248+ Ok ( ( commit_id. to_string ( ) , staging. to_string ( ) ) )
261249 } else {
262250 warn ! (
263251 "Failed to fetch about API response from ingestor: {}\n " ,
0 commit comments