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

syntax error when disabling a collector thats in the default enabled array #14

Open
ayanich opened this issue Oct 30, 2018 · 1 comment

Comments

@ayanich
Copy link
Contributor

ayanich commented Oct 30, 2018

Because this cookbook sets an explicit set of collectors that are enabled and passed to the command line,

default['prometheus_exporters']['node']['collectors_enabled'] = %w[
, if you add one of these to the collectors_disabled array for the node exporter, you will end up with a command line that both enables and disables the collector which is a syntax error. To work around I am doing node.default['prometheus_exporters']['node']['collectors_enabled'] = []

@dragonsmith
Copy link
Member

@ayanich do you have any suggestions on how to resolve the issue? I can make the disabling array to have the higher precedence level for example.

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

No branches or pull requests

2 participants