-
-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
datadog-agent: Update to v7 #105221
Comments
I marked this as stale due to inactivity. → More info |
still relevant, not stale |
I took a look at this and I came up with a minimum patch that builds and runs (#136109), but I am totally unsure if the correct integrations are built. It looks like there is a lot of new build machinery using invoke (see the datadog-agent tasks directory). |
@schneefux does this work for you? |
Hello @john-consumable, I am currently testing an upgrade to release-21.11, and the datadog-agent package lost python support: the core golang features (core checks, log collection, process-agent) work OK, but python checks don't load. Happy to help on this one, although I'm not that good at packaging. |
I'm having this problem as well — the base agent works OK, but anything that requires a Python package doesn't work at all. @xvello, did you ever figure out a fix for the rt-loader helper library? |
Heya @bojanrajkovic, I stopped my investigation at the rt-loader dependency and did not have the patience to try packaging it. Instead, I worked around the issue by running the official docker image in podman containers. I managed to get journald logs tailing and network metrics (with |
Yeah, would love that — there were a couple things I was missing when
running it as a container that I was wanting to capture: host
CPU/memory/network metrics and containers. Everything else seemed to work
more or less OK.
…On Sun, Feb 20, 2022 at 12:16 PM Xavier Vello ***@***.***> wrote:
Heya @bojanrajkovic <https://github.com/bojanrajkovic>, I stopped my
investigation at the rt-loader dependency and did not have the patience to
try packaging it.
Instead, I worked around the issue by running the official docker image in
podman containers. I managed to get journald logs tailing and network
metrics (with --network=host) and moved on. If you want, I can cleanup my
derivation and post it as a gist.
—
Reply to this email directly, view it on GitHub
<#105221 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA3BGZPPYVTA6AAXUOFE3TU4EOWDANCNFSM4UFWU7WQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@bojanrajkovic here you go: https://gist.github.com/xvello/09d8a2c5b5e1b7ee48dd744658298817 The agent is the only containers I run, so I didn't set up the podman integration, but it should work OK by mounting the right socket, as described in the documentation. |
#185805 should provide the necessary fixes to run this without podman. |
With the latest fixes I'm getting
Example:
|
@Sohalt any ideas? |
Nope, sorry. Don't have time to look into it rn. I can take a look next week if you haven't figured it out by then. |
This fixes the python init error mentioned here: NixOS#105221 (comment) However, there are still issues with the derived python environment - for some reason datadog_checks.base is not present in the env's site-packages, which all the other checks depend on, so python loading still isn't working fully (but I believe this is an improvement over what's there already at least).
I fixed the first part of the error around
Inspecting the |
@actionshrimp it looks good to me:
|
This fixes the python init error mentioned here: #105221 (comment) However, there are still issues with the derived python environment - for some reason datadog_checks.base is not present in the env's site-packages, which all the other checks depend on, so python loading still isn't working fully (but I believe this is an improvement over what's there already at least). (cherry picked from commit 845e54e)
@domenkozar - yeah some of them make it in ok, but some modules are missing, notably |
At this point, we can install the datadog-agent (v7) with nixos config. The service installs and runs as a systemd service. I can even see the agent register itself with datadoghq and send meta data. However, it seems as though the agent's plugins are not all installed or available, and a lot of integrations don't work. In my testing, the docker integration is an easy example. The process checks seem to be another. Question: do we close this issue and start a new one about the plugins not installing correctly, or do we resolve that in this issue? What do we need to do to include the agent's plugin/integration files with the agent install so they can be used by the agent? |
Let's create another issue about non-working plugins.
…On Thu, Mar 23, 2023 at 2:21 PM Ketzacoatl ***@***.***> wrote:
At this point, we can install the datadog-agent (v7) with nixos config.
The service installs and runs as a systemd service. I can even see the
agent register itself with datadoghq and send meta data.
However, it seems as though the agent's plugins are not all installed or
available, and a lot of integrations don't work. In my testing, the docker
integration is an easy example. The process checks seem to be another.
Question: do we close this issue and start a new one about the plugins not
installing correctly, or do we resolve that in this issue? What do we need
to do to include the agent's plugin/integration files with the agent
install so they can be used by the agent?
—
Reply to this email directly, view it on GitHub
<#105221 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA63A6FJ2IMANAJZ7PC4ETW5RL7XANCNFSM4UFWU7WQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@domenkozar should I create that new issue, or defer to you? |
Feel free to create one.
…On Thu, Mar 23, 2023 at 2:34 PM Ketzacoatl ***@***.***> wrote:
@domenkozar <https://github.com/domenkozar> should I create that new
issue, or defer to you?
—
Reply to this email directly, view it on GitHub
<#105221 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA63A6IZ4CJMNYEU66KQH3W5RNOVANCNFSM4UFWU7WQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Ok, is there any particular description of the problem or recommended solution that you would suggest I include? My explanation is more or less "the agent's plugins should be included in the installation". |
datadog-agent v7 is available (https://github.com/DataDog/datadog-agent) and uses python3 by default. There are many new integrations (https://github.com/DataDog/integrations-core) which are incompatible with v6.
The build process seems to have changed, the upgrade steps (https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/networking/dd-agent/README.md) do not work because there is no
Gopkg.lock
in the datadog-agent repository. As someone who does not know Go I do not know how to proceed.Checklist
Project name
nix search
name: datadog-agentcurrent version: 6.11.2
desired version: 7.24
Notify maintainers
maintainers: @thoughtpolice @domenkozar @rvl
Note for maintainers
Please tag this issue in your PR.
The text was updated successfully, but these errors were encountered: