Closed crLawther closed 6 years ago
Hi @crLawther,
the custom_attributes attribute of the cookbook's New Relic infrastructure agent LWRP is expected to be a hash of custom attributes, rather than JSON objects. eg. {"customAttribute_1" => "SOME_ATTRIBUTE", "customAttribute_2" => "SOME_ATTRIBUTE_2"}
It's iterated upon in the template to create the YAML for the newrelic infrastructure agent custom attributes configuration.
Please let me know how it goes!
Kind regards, David
Closing this one for now as per the custom_attributes info above - happy to discuss further here though if needed!
I am using the newrelic infrastructure LWRP and passing values from a json into the customer_attribute property.
My Json for node['newrelic']['application_monitoring'] is as follows:
This populates newrelic-infra.yml with the following values:
The issue is that the additional these values being added to this template, such as {"enable"=>nil} are unable to be parsed by newrelic and the newrelic-infra process terminates.
If I delete the lines with values surrounded by {} the file parses successfully leaving me to believe this to be the issue.