Oracle WebLogic Metric Collection Failures in Aria Operations
search cancel

Oracle WebLogic Metric Collection Failures in Aria Operations

book

Article ID: 436951

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

  • When attempting to monitor Oracle WebLogic using the Telegraf agent in Aria Operations, the agent status may show as "Healthy," but no monitoring metrics are populated in the dashboard.
  • Running a configuration test on host returns a "connection refused" error for the Jolokia input plugin:

    # /opt/vmware/ucp/ucp-telegraf/usr/bin/telegraf -config /tmp/ucp-debug/telegraf.conf -test  return:
    YYYY-MM-DDTHH:MM:SS E! [inputs.jolokia2_agent] Error in plugin: unable to gather metrics for "http://localhost:<port>/jolokia": Post "http://localhost:<port>/jolokia/read": dial tcp [::1]:<port>: connect: connection refused

  • # curl -I -k https://[IP_ADDRESS]:<port>/jolokia/version return:

    HTTP/1.1 503 Service Unavailable

Environment

VMware Aria Operations 8.18.x

Cause

The issue occurs because the Jolokia agent, which is a required prerequisite for gathering JMX metrics from WebLogic, is either not deployed, not started within the WebLogic environment, or is being accessed via an incorrect protocol/address.
The "Connection Refused" error typically indicates the Telegraf agent cannot reach the Jolokia listener on the specified port.

Resolution

To successfully collect WebLogic metrics, follow these steps to deploy Jolokia and update the Telegraf configuration.

  1. Deploy and Start Jolokia:
    Ensure that the Jolokia agent is added as a deployment within your Oracle WebLogic console and that the service is in a Running state. Metrics cannot be "scraped" by Telegraf until the Jolokia application is actively listening on the target port.
  2. Update Telegraf Configuration:
    Modify the WebLogic monitoring configuration with the following parameters:

    Base URL: https://localhost:<port>

    Installed Path: The path on the target machine where WebLogic is installed. 

    Skip SSL Verification: true

    Reference "Weblogic" part for more detail:
    https://techdocs.broadcom.com/us/en/vmware-cis/aria/aria-operations/8-18/vmware-aria-operations-configuration-guide-8-18/connect-to-data-sources/os-and-application-monitoring/steps-to-monitor-your-applications/activate-a-service/configuring-supported-application-services.html