-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Improve documentation for custom check in dev env #4116
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice addition because it's not quite automatic if you don't know it!
However, I think it'll be enabled only after an agent.build
task run? If that's the case, we should probably mention it.
docs/dev/checks/README.md
Outdated
@@ -8,6 +8,10 @@ fit for your use case, please [refer to the official documentation][custom-check | |||
Every check has its own YAML configuration file. The file has one mandatory key, | |||
`instances` and one optional, `init_config`. | |||
|
|||
Note: If you want to run the custom check inside your development workspace | |||
(github.com/DataDog/datadog-agent), you need to put `MyCheck.yaml` and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(github.com/DataDog/datadog-agent), you need to put `MyCheck.yaml` and | |
(github.com/DataDog/datadog-agent), you must put `MyCheck.yaml` and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like it might be worth it to rephrase a little bit for clarity/accuracy?
docs/dev/checks/README.md
Outdated
@@ -8,6 +8,12 @@ fit for your use case, please [refer to the official documentation][custom-check | |||
Every check has its own YAML configuration file. The file has one mandatory key, | |||
`instances` and one optional, `init_config`. | |||
|
|||
Note: If you want to run the custom check inside your development workspace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like that the corollary to this is that the proper location is bin/agent/dist
? Wondering if this might mislead people into thinking dropping the checks and config files in dev/dist
is enough if they read this quickkly. I would maybe simplify/reorder this message to say:
Note:
If you want to run a custom check inside your development workspace
(github.com/DataDog/datadog-agent), you must put `MyCheck.yaml` and
`MyCheck.py` in the `bin/agent/dist` folder located at the root of the
datadog-agent repository.
Please keep in mind that the `invoke agent.build` task will copy the
contents inside`dev/dist` to `bin/agent/dist` when ran, so you can use
that path if you need alonger-lived location for your custom checks.
Or something along those lines?
What does this PR do?
Explain how to use a custom check inside the development environment.