Hi Murugan, Are you running the container in Kubernetes? If so you might want to consider the Prometheus Agent for Kubernetes from New Relic rather than adding the agent to the Docker image. This does assume that your Docker image is exposing a Prometheus metrics endpoint.
https://docs.newrelic.com/docs/infrastructure/prometheus-integrations/get-started/send-prometheus-metric-data-new-relic/ Kind regards, Jim > On 23 Sep 2024, at 15:14, T, Murugan <muruga...@paramount.com> wrote: > > Hi Team, > > I hope this message finds you well ! > > I am writing to inquire about the feasibility of integrating Apache Nifi with > New Relic for monitoring and performance management. > We are exploring option to enable New Relic APM agent for one of our Nifi > workflow, but we are facing issue that Nifi metrics was not captured and > would like to understand if there are any existing solutions or > recommendations for setting up this integration. > > Nifi version that we are currently using is, v1.27.0 > And we are deploying our Nifi in Kubernetes environment using Docker. We use > below commands in our Docker file to download New Relic jar > > # Download the new relic jar > ADD > https://download.newrelic.com/newrelic/java-agent/newrelic-agent/current/newrelic-agent.jar > /opt/newrelic/newrelic.jar > COPY config/newrelic.yml /opt/newrelic/ > RUN chmod -R 755 /opt/newrelic/ > > Java agent command that we used in our start up script, > > exec java -javaagent:/opt/newrelic/newrelic.jar \ > -jar nifi-deploy-config-viacom-1.3.1-jar-with-dependencies.jar \ > -nifi http://$CONTAINER_IP:8080/nifi-api \ > -conf musicvideo_ingestion_low.yml musicvideo_publish.yml \ > -mode deploy 2>&1 >&1 > > Specifically, we would like to monitor key performance metrics, system health > and workflows in Nifi using New Relic’s platform. If this integration is > possible, could you please provide guidance or documentation on how to > achieve it ? > > Thank you for your assistance, look forward to your response. > > Regards, > Murugan