I have installed Newrelic infrastructure agent and wanted to send metric data for java process only. As per the documentation (https://docs.newrelic.com/docs/infrastructure/install-infrastructure-agent/configuration/infrastructure-agent-configuration-settings#include-matching-metrics) I have added “include_matching_metrics” variable in newrelic-infra.yml to filter the java processes but I could see all the processes reporting to Newrelic(Infrastructure->(filter by)Host->Processes Tab). Please find below my newrelic-infra.yml.
- regex “^java”
Let me know if anything I am missing or any other configuration changes required to filter the specific process for infrastructure agent.
Thanks and Regards,