@@ -976,10 +976,13 @@ func TestAPIs(t *testing.T) {
976
976
"instance" : "127.0.0.1:9090" ,
977
977
"job" : "prometheus" ,
978
978
},
979
- "scrapeUrl" : "http://127.0.0.1:9090" ,
980
- "lastError" : "error while scraping target" ,
981
- "lastScrape" : testTime .UTC ().Format (time .RFC3339Nano ),
982
- "health" : "up" ,
979
+ "scrapePool" : "prometheus" ,
980
+ "scrapeUrl" : "http://127.0.0.1:9090" ,
981
+ "globalUrl" : "http://127.0.0.1:9090" ,
982
+ "lastError" : "error while scraping target" ,
983
+ "lastScrape" : testTime .UTC ().Format (time .RFC3339Nano ),
984
+ "lastScrapeDuration" : 0.001146115 ,
985
+ "health" : "up" ,
983
986
},
984
987
},
985
988
"droppedTargets" : []map [string ]interface {}{
@@ -1006,10 +1009,13 @@ func TestAPIs(t *testing.T) {
1006
1009
"instance" : "127.0.0.1:9090" ,
1007
1010
"job" : "prometheus" ,
1008
1011
},
1009
- ScrapeURL : "http://127.0.0.1:9090" ,
1010
- LastError : "error while scraping target" ,
1011
- LastScrape : testTime .UTC (),
1012
- Health : HealthGood ,
1012
+ ScrapePool : "prometheus" ,
1013
+ ScrapeURL : "http://127.0.0.1:9090" ,
1014
+ GlobalURL : "http://127.0.0.1:9090" ,
1015
+ LastError : "error while scraping target" ,
1016
+ LastScrape : testTime .UTC (),
1017
+ LastScrapeDuration : 0.001146115 ,
1018
+ Health : HealthGood ,
1013
1019
},
1014
1020
},
1015
1021
Dropped : []DroppedTarget {
0 commit comments