hub needs initial get before data can be received
This commit is contained in:
parent
ded1d51717
commit
9a334e196c
1 changed files with 1 additions and 0 deletions
1
main.go
1
main.go
|
|
@ -39,6 +39,7 @@ func main() {
|
|||
|
||||
func metricsTask() {
|
||||
hub := dockerhub.Dockerhub{}
|
||||
hub.GetLimits()
|
||||
checkInterval, err := strconv.Atoi(os.Getenv("CHECK_INTERVAL"))
|
||||
if err != nil || checkInterval == 0 {
|
||||
log.Log.Warn("Invalid or no CHECK_INTERVAL defined, using default value of 60s")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue