Java Vert.x Event Bus integración proporciona instrumentación para monitoreo del (Vert.x)[https://vertx.io/] Event Bus, que permite el seguimiento del flujo de eventos a través del bus. Diseñado específicamente para Vert.x Verticles que se extienden AbstractVerticle
, esta extensión instrumenta cada clase desplegar para monitor todos los métodos excepto aquellos específicamente definidos por AbstractVerticle
.
Métodos admitidos
La integración rastrea o excluye métrica. Aquí hay una lista de cada uno:
Métodos rastreados:
- Métodos que facilitan el seguimiento del flujo de eventos.
- Métodos que mejoran la visibilidad del comportamiento y rendimiento de la aplicación.
Métodos excluidos:
- Métodos de configuración y ciclo de vida específicos (
start
,stop
,rxStart
,rxStop
,config
,deploymentID
,getVertx
,init
,processArgs
)
Instalar el agente de Java
Se debe instalar el agente Java APM para configurar las extensiones Java Vert.x. Siga las instrucciones para instalar el agente Java APM.
Una vez que Java agente APM esté instalado y configurado para su aplicación, cree una carpeta extensions
en el directorio newrelic
si aún no existe:
$# Open your Java APM Agent installation location and create 'extensions' folder ( if it is not existing) $cd path/to/newrelic$mkdir extensions
Instalar y configurar Java Vert.x Event Bus integración
Para instalar y configurar Java Vert.x Event Bus integración, sigue estos pasos:
Actualice la ubicación de la carpeta
extensions
del agente Java APM en el script bash proporcionado.Copie los comandos actualizados a un script bash
install_vertx_integration.sh
.Ejecute el script para integrar Java Vert.x Event Bus Monitoreo con New Relic APM.
bash$#!/bin/bash$$# Define variables$apiUrl="https://api.github.com/repos/newrelic/newrelic-java-vertx/releases/latest"$tempZipPath="/tmp/latest.zip"$tempExtractPath="/tmp/Extracted"$extensionsDir="/path/to/newrelic/extensions"$$# Retrieve the download URL for the latest release ZIP file$downloadUrl=$(curl -s "$apiUrl" | grep -o "browser_download_url.*\.zip" | cut -d '"' -f 3)$$echo $downloadUrl$$# Check if the download URL is empty or invalid$if [ -z "$downloadUrl" ]; then$echo "Failed to retrieve download URL. Exiting."$exit 1$fi$$# Download the latest release ZIP file$curl -L -o "$tempZipPath" "$downloadUrl"$$# Check if the ZIP file was downloaded successfully$if [ ! -f "$tempZipPath" ]; then$echo "Failed to download the ZIP file. Exiting."$exit 1$fi$$# Create a temporary extraction folder$mkdir -p "$tempExtractPath"$$# Extract the contents of the ZIP file to the temporary folder$unzip -q "$tempZipPath" -d "$tempExtractPath"$$# Check if the extraction was successful$if [ $? -ne 0 ]; then$echo "Failed to extract the ZIP file. Exiting."$exit 1$fi$$# Copy all .jar files to the Java APM Agent 'extensions' directory$find "$tempExtractPath" -name "*.jar" -exec cp {} "$extensionsDir" \;$$# Clean up temporary files$rm "$tempZipPath"$rm -r "$tempExtractPath"$$echo "Installation completed successfully."
Para instalar y configurar Java Vert.x Event Bus integración, sigue estos pasos:
Actualice la ubicación de la carpeta 'extensiones' del agente Java APM en los comandos de PowerShell proporcionados.
bash$# Define variables$$apiUrl = "https://api.github.com/repos/newrelic/newrelic-java-vertx/releases/latest"$$tempZipPath = "C:\Temp\latest.zip"$$tempExtractPath = "C:\Temp\Extracted"$$extensionsDir = "C:\Path\To\newrelic\extensions"$$# Download the latest release ZIP file from GitHub$$response = Invoke-WebRequest -Uri $apiUrl$$downloadUrl = ($response.Content | ConvertFrom-Json).assets[0].browser_download_url$Invoke-WebRequest -Uri $downloadUrl -OutFile $tempZipPath$$# Extract the contents of the ZIP file to a temporary folder$New-Item -ItemType Directory -Path $tempExtractPath -Force$Expand-Archive -Path $tempZipPath -DestinationPath $tempExtractPath$$# Copy all .jar files to the Java APM Agent 'extensions' directory$Get-ChildItem -Path $tempExtractPath -Filter "*.jar" | Copy-Item -Destination $extensionsDir$$# Clean up temporary files$Remove-Item -Path $tempZipPath -Force$Remove-Item -Path $tempExtractPath -Recurse -Force
Desde Java Vert.x Event Bus Integration Releases, descargue vertx-instrumentation-vx.y.z.zip
a un directorio temporal y descomprímalo. Copie todos los archivos 'jar' a la carpeta 'extensiones' de New Relic Java agente APM.
Verifica tu integración
Luego de configurar Java Vert.x Event Bus integración, podrás visualizar el Vert.x de tu aplicación Event Bus transacción y traza directamente dentro de New Relic APM and Services.
Informar problemas de integración
Si encuentra algún problema con Java Vert.x Event Bus integración, por favor repórtalos en el repositorio de GitHub. Sus comentarios nos ayudan a identificar y abordar los problemas rápidamente, lo que garantiza una experiencia de monitoreo fluida y confiable para Vert.x. aplicación. Gracias por contribuir a la mejora de nuestra integración.