datadog-agent: suppress datadog-agent loading errors

Loading Errors for apm, process-agent and winproc.d appear on the
datadog agent.

To suppress these errors, I have removed these default configurations
that were copied in the postInstall phase.
This commit is contained in:
Takafumi Asano 2022-09-04 17:09:32 +09:00
parent f0daeb19cb
commit 796974e32e
No known key found for this signature in database
GPG Key ID: AC7AA4174AC64BA5

View File

@ -93,7 +93,8 @@ in buildGoModule rec {
# into standard paths. # into standard paths.
postInstall = '' postInstall = ''
mkdir -p $out/${python.sitePackages} $out/share/datadog-agent mkdir -p $out/${python.sitePackages} $out/share/datadog-agent
cp -R $src/cmd/agent/dist/conf.d $out/share/datadog-agent cp -R --no-preserve=mode $src/cmd/agent/dist/conf.d $out/share/datadog-agent
rm -rf $out/share/datadog-agent/conf.d/{apm.yaml.default,process_agent.yaml.default,winproc.d}
cp -R $src/cmd/agent/dist/{checks,utils,config.py} $out/${python.sitePackages} cp -R $src/cmd/agent/dist/{checks,utils,config.py} $out/${python.sitePackages}
cp -R $src/pkg/status/templates $out/share/datadog-agent cp -R $src/pkg/status/templates $out/share/datadog-agent