Run integrations manually

Problem

You want to know if an integration is gathering metrics or not. To diagnose it, run the integration manually.

Solution

Use the following commands to run your integrations manually:

Kafka
echo 'kafka.network:type=RequestMetrics,name=*,request=*’ | nrjmx -host host -port port  
RabbitMQ
  • Basic connect test:
./bin/nri-rabbitmq -hostname rabbitmqhost -username user -password password

  • Non-default port connect test:
./bin/nri-rabbitmq -hostname rabbitmqhost -username user -password password -port port_number
MSSQL
  • Basic connect test:
.\bin\nri-mssql -hostname sqlhost -username user -password password

  • Instance connect test:
.\bin\nri-mssql -hostname sqlhost -username user -password password -instance instance_name

  • Non-default port connect test:
.\bin\nri-mssql -hostname sqlhost -username user -password password -port port_number
Oracle
ORACLE_HOME=/path/to/oracle/home/var/db/newrelic-infra/newrelic-integrations/bin/nr-oracledb -username user -password password -hostname host -port port -service_name name -verbose
JMX
echo 'java.lang:type=GarbageCollector,name=*' | nrjmx -d -hostname localipv4 -port port_number -username user -password password --verbose true

For more, see troubleshooting via jmxterm.

All integrations allow the following options:

-help: Display the list of allowed parameters

-pretty: Outputs pretty formatted JSON