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

[Config] Update config logic to look for checks in 3rd-party directory (rebased) #2467

Merged
merged 1 commit into from
May 18, 2016

Conversation

olivielpeau
Copy link
Member

Based on @tmichelet's work in #2273, rebased on top of master (i.e. it now handles configs from the service discovery).

When we load the checks, we take into account the configs from files (.yaml and .default.yaml) first, and then the configs from service discovery for the checks that haven't been loaded yet.

Also, this changes the logic of get_check_class in utils.checkfiles to take into account checks from 3rd-party dirs.

cc @hkaj

Original PR message:

- Add tests on config's logic
- Refactor logic
- Update logic to look for checks in 3rd-party directory

- add tests on the config logic
- refactor the logic
- add some logic to add for checks in 3rd-party folder

--

We are starting to install checks in the 3rd-party folder.
Let the agent use these checks.
Priority should be:
- /etc/dd-agent/checks.d/
- /opt/datadog-agent/3rd-party/
- /opt/datadog-agent/agent/checks.d/

[olivier.vielpeau@datadoghq.com] Rebase on top of master and take
into account the changes related to the service discovery
@olivielpeau olivielpeau changed the title [Config] Update config logic to look for checks in 3rd-party directory [Config] Update config logic to look for checks in 3rd-party directory (rebased) May 4, 2016
@olivielpeau olivielpeau added this to the 5.8.0 milestone May 4, 2016
@olivielpeau
Copy link
Member Author

@hkaj I've tested the changes on what's directly related to 3rd-party checks, but I haven't set up and tested the service discovery part. Could you give this a try?

@hkaj
Copy link
Member

hkaj commented May 12, 2016

@olivielpeau tested service discovery with these changes, it works as expected. Do you also need a review or that was already taken care of?

@yannmh yannmh modified the milestones: 5.9.0, 5.8.0 May 13, 2016
@remh remh modified the milestones: 5.8.0, 5.9.0 May 17, 2016
@hkaj
Copy link
Member

hkaj commented May 18, 2016

LGTM :shipit:

@yannmh yannmh merged commit 536ee6c into master May 18, 2016
@yannmh yannmh deleted the olivielpeau/3rd-party-checks branch May 18, 2016 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants