Skip to content

Instantly share code, notes, and snippets.

@hagen1778
Created June 12, 2024 14:09
Show Gist options
  • Save hagen1778/65603b78d802e1a4f7dbb3b8ae4f9524 to your computer and use it in GitHub Desktop.
Save hagen1778/65603b78d802e1a4f7dbb3b8ae4f9524 to your computer and use it in GitHub Desktop.
prometheus log scrape timestamps
index c285f05e3..affb717e5 100644
--- a/scrape/scrape.go
+++ b/scrape/scrape.go
@@ -1241,7 +1241,7 @@ mainLoop:
}
last = sl.scrapeAndReport(last, scrapeTime, errc)
-
+ fmt.Println("scrape timestamp", scrapeTime.UnixMilli(), "actual timestamp:", time.Now())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment