@@ -871,10 +871,13 @@ func TestAPIs(t *testing.T) {
871
871
"instance" : "127.0.0.1:9090" ,
872
872
"job" : "prometheus" ,
873
873
},
874
- "scrapeUrl" : "http://127.0.0.1:9090" ,
875
- "lastError" : "error while scraping target" ,
876
- "lastScrape" : testTime .UTC ().Format (time .RFC3339Nano ),
877
- "health" : "up" ,
874
+ "scrapePool" : "prometheus" ,
875
+ "scrapeUrl" : "http://127.0.0.1:9090" ,
876
+ "globalUrl" : "http://127.0.0.1:9090" ,
877
+ "lastError" : "error while scraping target" ,
878
+ "lastScrape" : testTime .UTC ().Format (time .RFC3339Nano ),
879
+ "lastScrapeDuration" : 0.001146115 ,
880
+ "health" : "up" ,
878
881
},
879
882
},
880
883
"droppedTargets" : []map [string ]interface {}{
@@ -901,10 +904,13 @@ func TestAPIs(t *testing.T) {
901
904
"instance" : "127.0.0.1:9090" ,
902
905
"job" : "prometheus" ,
903
906
},
904
- ScrapeURL : "http://127.0.0.1:9090" ,
905
- LastError : "error while scraping target" ,
906
- LastScrape : testTime .UTC (),
907
- Health : HealthGood ,
907
+ ScrapePool : "prometheus" ,
908
+ ScrapeURL : "http://127.0.0.1:9090" ,
909
+ GlobalURL : "http://127.0.0.1:9090" ,
910
+ LastError : "error while scraping target" ,
911
+ LastScrape : testTime .UTC (),
912
+ LastScrapeDuration : 0.001146115 ,
913
+ Health : HealthGood ,
908
914
},
909
915
},
910
916
Dropped : []DroppedTarget {
0 commit comments