Closed medavisjr closed 2 years ago
Mentioning folks who have recently worked on this particular integration, as otherwise I have no idea if anyone will ever see this. :)
@rseste-daitan @cleosson-daitan
Hi @rodalli, thanks for reporting this issue.
Re this step:
Install ns1 integration in container as described here: https://docs.datadoghq.com/agent/guide/use-community-integrations/?tab=agentv721v621
Did you run the agent integration install
command inside the agent container or did you build an updated image of the datadog-agent with the integration installed? The recommended method to install an integration from the integrations-extras
repo in a containerized environment is to build a new version of the agent. See the Docker
tab of the documentation: https://docs.datadoghq.com/agent/guide/use-community-integrations/?tab=docker. I was able to install the ns1 integration successfully using this method.
@fanny-jiang Forgot I had opened this issue - yes, I was trying to run the command inside the container before I noticed the recommendation to build a new image. I was able to get it working with the new image build. I'm not sure why this is necessary, maybe something to do with permissions for the datadog user.
I really don't like the overhead of having to manage the additional operation complexity and toil of keeping a redundant image up-to-date. My hope was that this could be done with a k8s init container in the same pod. Ideally, this would be as simple as adding some labels or annotations on the agent pod to get it to bootstrap the custom integration itself.
Output of the info page
Additional environment details (Operating System, Cloud provider, etc):
Running in a standalone pod (non-DaemonSet) on an AWS EKS worker node. Worker nodes are running on Amazon Linux 2 kernel version
5.4.156-83.273.amzn2.x86_64
, using thecontainerd://1.4.6
container runtime.Steps to reproduce the issue:
/etc/datadog-agent/conf.d/ns1.d/conf.yaml
with the following config:Describe the results you received:
No metrics appear are received by Datadog, and an
agent status
command run on the container reports the following:However, checking
agent integration show datadog-ns1
shows that the integration was installed successfully:Describe the results you expected:
We would expect the integration to be found and correctly loaded
Additional information you deem important (e.g. issue happens only occasionally):
We've tried this with both v0.0.4 and v0.0.5 (latest) of the
ns1
integration, and both fail in the same way. This same config file was used on a baremetal server and was working well. Running in a container in EKS, however, we get this error.