Problem
You created a custom infrastructure on-host integration using the Integrations SDK, but you're not seeing data in the infrastructure UI.
Solution
To troubleshoot and resolve the problem:
- Verify that your integration meets our integration requirements.
- After ruling out common problems with integration requirements, follow the more in-depth troubleshooting procedures for error logs and integration loading.
If you are not receiving data from your custom integration, verify that your integration follows these requirements.
Integration requirements | Comments |
---|---|
Environment | Make sure your environment meets the Integrations SDK requirements. |
Configuration file |
|
Definition file |
|
Metric sets | Verify that the integration:
|
JSON payload | Verify that the integration does not generate a single JSON payload of more than 5 MB. |
After ruling out common problems with integration requirements, follow these more in-depth troubleshooting procedures.
Recommendation: Configure a log file in the infrastructure agent configuration. This helps separate the types of errors so you can spot integration errors more easily.
When there is an error loading or running your integration, the infrastructure agent adds an error message to the log file. Errors are logged even if verbose
mode is disabled.
- Check the log file for lines that include
"level=error"
. - If there are no error messages, check whether the infrastructure agent is loading the integration correctly.
To verify whether the infrastructure agent is loading the integration correctly:
Enable
verbose
mode in the infrastructure agent configuration.Verify that the first lines of the log file contain two messages:
"loaded plugin" plugin=<your_integration_name>"found plugin config file" plugin-path="<your_integration_config_path>"Check for errors just before or after these lines that indicate a problem with loading.
The agent schedules data to be sent based on the schedule set in the definition file. Look in the log file for the integration's JSON.
JSON payload example
nri-nginx: {\"name\":\"com.newrelic.nginx\",\"protocol_version\":\"1\",\"integration_version\":\"0.5.0\",\"metrics\":[{\"event_type\":\"NginxSample\",\"net.connectionsAcceptedPerSecond\":0.10344827586206896,\"net.connectionsActive\":1,\"net.connectionsDroppedPerSecond\":0,\"net.connectionsReading\":0,\"net.connectionsWaiting\":0,\"net.connectionsWriting\":1,\"net.requestsPerSecond\":0.10344827586206896,\"software.edition\":\"open source\",\"software.version\":\"1.4.6 (Ubuntu)\"}],\"inventory\":{},\"events\":[]}