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

Add missing gohai derivation and fix dd-agent service unit #41015

Merged
merged 2 commits into from May 24, 2018

Conversation

tazjin
Copy link
Member

@tazjin tazjin commented May 24, 2018

Motivation for this change

This change adds the gohai package by DataDog, which is required for the existing dd-agent package to function correctly.

The issue tracking this problem is #39810

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

This project does not have a default versioning scheme. go2nix
suggests using the date of the most recent change.
The Datadog agent requires `gohai` to be available on its `$PATH` in
order to collect certain metrics.

It would previously start up and collect certain types of metrics, but
log errors related to the missing gohai binary.

This commit configures the systemd-unit to make gohai available at
runtime.

This fixes NixOS#39810.
@Mic92
Copy link
Member

Mic92 commented May 24, 2018

I suppose this should be backported? cc @domenkozar

@tazjin tazjin deleted the feat/datadog-gohai branch May 24, 2018 09:32
@tazjin
Copy link
Member Author

tazjin commented May 24, 2018

@Mic92 If we're talking backports, there's technically a second issue with the dd-agent at the moment. The version of iostat in NixOS has a slightly different output than what it expects (which is fixed in newer versions of the agent). This causes runtime errors, too, but a different kind :)

I'll take a look at bumping the agent version but from a cursory glance it seems to be more involved than simply upping the version and updating the source. Should probably also file an issue for it ...


edit: issue already exists, #40103

@coretemp
Copy link
Contributor

Can this also be merged into 18.03 (since the module in stable is broken in various ways anyway)?

@Mic92
Copy link
Member

Mic92 commented May 24, 2018

Is the Problem regarding ifstat also on stable?

@tazjin
Copy link
Member Author

tazjin commented May 24, 2018

@Mic92 Yes, we have the issue on current 18.03. I have submitted a fix in #41035

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants