Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High CPU load when general.scrapeTime is set to 0 in version 23.6.0 #43

Closed
Mahagon opened this issue Jun 15, 2023 · 0 comments
Closed

Comments

@Mahagon
Copy link

Mahagon commented Jun 15, 2023

After updating from 22.11.0 to 23.6.0 we are experiencing 100% CPU load on a single core.
It seems that setting collectors.general.scrapeTime = 0 doesn't work anymore as the following messages are spammed after starting the container:

2023-06-15 08:21:48.979 | {"level":"info","caller":"collector/collector.go:339","msg":"finished metrics collection, next run in 0s","collector":"general","duration":0.000018939,"nextRun":"2023-06-15T06:21:48.979Z"}
2023-06-15 08:21:48.979 | {"level":"info","caller":"collector/collector.go:339","msg":"finished metrics collection, next run in 0s","collector":"general","duration":0.000018653,"nextRun":"2023-06-15T06:21:48.979Z"}
2023-06-15 08:21:48.979 | {"level":"info","caller":"collector/collector.go:339","msg":"finished metrics collection, next run in 0s","collector":"general","duration":0.000021911,"nextRun":"2023-06-15T06:21:48.979Z"}
2023-06-15 08:21:48.979 | {"level":"info","caller":"collector/collector.go:339","msg":"finished metrics collection, next run in 0s","collector":"general","duration":0.000019355,"nextRun":"2023-06-15T06:21:48.979Z"}
2023-06-15 08:21:48.979 | {"level":"info","caller":"collector/collector.go:339","msg":"finished metrics collection, next run in 0s","collector":"general","duration":0.000018812,"nextRun":"2023-06-15T06:21:48.979Z"}

This is how our config in 23.6.0 looks like:

config.yaml:

azure:
  subscriptions: ["SUBSCRIPTION ID"]
  locations: ["germanywestcentral"]
collectors:
  # set general.scrapeTime to 0 to deactivate all scrapers by default.
  general:
    scrapeTime: "0"
  quota:
    scrapeTime: "5m"

Commandline args:

--config "/etc/config/config.yaml"
--azure.tenant "TENANT ID"

In version 22.11.0 it looked like this and was working just fine:

--scrape.time "0"
--scrape.time.quota "5m"
--azure.subscription "SUBSCRIPTION ID"
--azure.location "germanywestcentral"
--azure.tenant "TENANT ID"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant