You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 9, 2023. It is now read-only.
Currently the scrape interval is 1 minute. As the metrics we are tracking are
rather slow moving we can accept a delay of up to 10 minutes for changes to be
reflected. This reduces the load in Snyk APIs significantly and also reduces
resource usage of the exporter (as it does the scraping 10 times less).
Copy file name to clipboardexpand all lines: main.go
+1-1
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ func main() {
52
52
flags:=kingpin.New("snyk_exporter", "Snyk exporter for Prometheus. Provide your Snyk API token and the organization(s) to scrape to expose Prometheus metrics.")
53
53
snykAPIURL:=flags.Flag("snyk.api-url", "Snyk API URL").Default("https://snyk.io/api/v1").String()
54
54
snykAPIToken:=flags.Flag("snyk.api-token", "Snyk API token").Required().String()
55
-
snykInterval:=flags.Flag("snyk.interval", "Polling interval for requesting data from Snyk API in seconds").Short('i').Default("60").Int()
55
+
snykInterval:=flags.Flag("snyk.interval", "Polling interval for requesting data from Snyk API in seconds").Short('i').Default("600").Int()
56
56
snykOrganizations:=flags.Flag("snyk.organization", "Snyk organization ID to scrape projects from (can be repeated for multiple organizations)").Strings()
57
57
requestTimeout:=flags.Flag("snyk.timeout", "Timeout for requests against Snyk API").Default("10").Int()
58
58
listenAddress:=flags.Flag("web.listen-address", "Address on which to expose metrics.").Default(":9532").String()
0 commit comments