Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Use common agent config package for parsing process-config #261

Merged
merged 2 commits into from
Mar 4, 2019

Conversation

sunhay
Copy link
Member

@sunhay sunhay commented Mar 4, 2019

This PR is just part 1 of a series. First step is updating the processes YAML config.

  • Use the new common config utility package: github.com/DataDog/datadog-agent/pkg/config
  • Tests were updated to use resource files for example YAML configuration files.

@sunhay sunhay requested a review from sfluor March 4, 2019 21:57
if interval := config.Datadog.GetInt(key(ns, "intervals", check)); interval != 0 {
log.Infof("Overriding container check interval to %ds", interval)
a.CheckIntervals[checkKey] = time.Duration(interval) * time.Second
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we log something if the interval is 0 ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No - default would be zero so we'd always see that log message

Copy link
Contributor

@sfluor sfluor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few comments, otherwise LGTM 👍

@sunhay sunhay merged commit 567fa0a into master Mar 4, 2019
@sunhay sunhay deleted the sunhay/use-common-yaml-package branch March 4, 2019 22:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants