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

riemann-tools: 0.2.13 -> 0.2.14, add more config options #62607

Closed
wants to merge 2 commits into from
Closed

riemann-tools: 0.2.13 -> 0.2.14, add more config options #62607

wants to merge 2 commits into from

Conversation

DerTim1
Copy link

@DerTim1 DerTim1 commented Jun 3, 2019

Motivation for this change

Update riemann-tools (minor version).
Add more NixOS config options (attributes and commandSwitches) to be able to customize the monitoring client.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option 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 nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

'';
example = ["myattribute=42"];
};
commandSwitches = mkOption {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's some precedence for calling this extraArgs, so I think we should stick with that.

@@ -34,8 +37,24 @@ in {
Address of the host riemann node. Defaults to localhost.
'';
};
attributes = mkOption {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this doesn't add a lot of value over commandSwitches (which I would prefer be called extraArgs) -- can we scrap it? Keeping NixOS modules small and simple is good for evaluation time and maintainability :)

Tim Digel added 2 commits June 11, 2019 09:56
Added option "extraArgs" to forward any switches to riemann-tools.
@DerTim1
Copy link
Author

DerTim1 commented Jun 11, 2019

Thanks for your advice @srhb
I renamed the config option and removed the special option for attributes.

@mmahut
Copy link
Member

mmahut commented Aug 12, 2019

Updated in #65691.

@mmahut mmahut closed this Aug 12, 2019
@DerTim1
Copy link
Author

DerTim1 commented Aug 14, 2019

@mmahut This PR also adds more config options for NixOS, so commit 9c07699 should be merged.

@mmahut
Copy link
Member

mmahut commented Aug 14, 2019

@DerTim1 do you mind opening a new PR for that commit please?

@DerTim1
Copy link
Author

DerTim1 commented Aug 14, 2019

@mmahut Can you cherry pick the commit or do a rebase? Unfortunately I'm busy with other stuff at the moment...

@DerTim1
Copy link
Author

DerTim1 commented Aug 14, 2019

@mmahut Ok, spend 5 minutes and created a new PR. See #66606.

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

3 participants