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

nixos: datadog: process config + fix config loading #25288

Closed
wants to merge 2 commits into from

Conversation

domenkozar
Copy link
Member

Two changes to datadog module:

  1. support processConfig option: c5d4f0d

  2. fix config loading: bdabc6f

@rbvermaa @edolstra @thoughtpolice

It was tested on 17.03, I'll also cherry-pick to mater.

@mention-bot
Copy link

@domenkozar, thanks for your PR! By analyzing the history of the files in this pull request, we identified @thoughtpolice, @rbvermaa and @mbbx6spp to be potential reviewers.

@domenkozar domenkozar changed the title Nixos datadog process config nixos: datadog: process config + fix config loading Apr 28, 2017
Before NixOS 17.03, we were using dd-agent 5.5.X which
used configuration from /etc/dd-agent/conf.d

In NixOS 17.03 the default conf.d location is first used relative,
meaning that $out/agent/conf.d was used without NixOS overrides.

This patch first copies $out/agent/cond.d and then applies all nixos
config changes and stores them in a single derivation.
@domenkozar
Copy link
Member Author

Going to merge this in a few days if there are no objections.

@domenkozar
Copy link
Member Author

@rbvermaa said that we should also keep a way to add additional configs via environment.etc or similar way.

rbvermaa added a commit that referenced this pull request May 4, 2017
to /etc/dd-agent/conf.d by default, and make sure
/etc/dd-agent/conf.d is used.

Before NixOS 17.03, we were using dd-agent 5.5.X which
used configuration from /etc/dd-agent/conf.d

In NixOS 17.03 the default conf.d location is first used relative,
meaning that $out/agent/conf.d was used without NixOS overrides.

This change implements similar functionality as PR #25288, without
breaking backwards compatibility.
rbvermaa added a commit that referenced this pull request May 4, 2017
to /etc/dd-agent/conf.d by default, and make sure
/etc/dd-agent/conf.d is used.

Before NixOS 17.03, we were using dd-agent 5.5.X which
used configuration from /etc/dd-agent/conf.d

In NixOS 17.03 the default conf.d location is first used relative,
meaning that $out/agent/conf.d was used without NixOS overrides.

This change implements similar functionality as PR #25288, without
breaking backwards compatibility.

(cherry picked from commit 77c85b0)
@domenkozar
Copy link
Member Author

Refactored by @rbvermaa to keep backwards compatibility, I pushed processConfig in a983b62

@domenkozar domenkozar closed this May 4, 2017
@domenkozar domenkozar deleted the nixos-datadog-process-config branch May 4, 2017 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants