Note:

Introduction

About this Workshop

This workshop provides step-by-step instructions on how to set up monitoring of WebLogic Server on Kubernetes using Oracle Enterprise Manager Cloud Control (EMCC/EM).

As a prerequisite for this lab, the WebLogic domain setup used in the workshop was provisioned by the WebLogic Kubernetes Operator and deployed on Oracle Container Engine for Kubernetes (OKE) in the Oracle Cloud. That can be accomplished following these three steps:

For more information on the WebLogic Kubernetes Operator, refer to the WebLogic Kubernetes Operator documentation.

Although OKE is used as the example in this workshop, the approach of using the Kubernetes load balancer service to monitor WebLogic Server with EM, could also be used in hosted solutions on other cloud platforms, such as the Azure Kubernetes Service (AKS).

Video for Monitor WebLogic on Kubernetes using Oracle Enterprise Manager

EMCC console Middleware Home Page monitoring WLS on Kubernetes

Prerequisites

Note: If you have a Free Trial account, when your Free Trial expires, your account will be converted to an Always Free account. You will not be able to conduct Free Tier workshops unless the Always Free environment is available. Click here for the Free Tier FAQ page.

Objectives - How to use this workshop

Two types of use cases are considered.

  1. Complete the tutorials as hands-on lab exercise. In this use case, you will first need to go to the Migrating WebLogic Server to Kubernetes workshop, and create a lab environment with a sample WebLogic domain deployed on OKE. You will then follow the tutorials in this workshop to configure the lab environment to enable the monitoring of the sample WebLogic Servers using your EM.

  2. Use as reference documentation for an existing setup of WebLogic on Kubernetes. In this use case, you have a WebLogic domain deployed on a hosted Kubernetes service, and want to monitor it with EM. You can refer to the instructions in the workshop as needed, and learn about the general approach in order to use EM to monitor WebLogic Servers on Kubernetes.

Estimated Workshop Time: 100 minutes

Setup Details

The WebLogic domain was provisioned in OKE following the steps described in the Migrating WebLogic Server to Kubernetes workshop. Access to the WebLogic pods is restricted in the private subnet.

To enable the communication between the WebLogic Servers and the EM Agent in the VCN, the Kubernetes load balancer service was set up in a private subnet and connected to each WebLogic Server pod. Each load balancer service has an external IP (private IP), allowing access from the same VCN. Ports (7001 for admin server, and the port 8001 for managed servers) were opened in the load balancers to bridge the communication between the WebLogic Server services and the EM Agent.

Within the VCN, a new compute instance was created in a public subnet for the EM agent installation, and the firewall was configured to communicate with the Oracle Management Service (OMS) instance. OMS is the central piece of EM and runs in a different VCN in the Oracle Cloud.

Finally, the EM Agent was pushed from the OMS and installed in the agent compute instance. WebLogic domain and related targets were discovered from the Middleware home page in the EM console, using the ports and the external IPs of the load balancer as discovery parameters.

The block diagram below explains the above-mentioned details.

EM with WLS on OKE setup diagram

Limitations

Because EM monitors the WebLogic Servers remotely through the Kubernetes load balancer, it is crucial to know that certain limitations exist. For example, shell-script-based metrics or file-based metrics cannot be monitored, for both WebLogic target metrics and configurations. This is because an EM agent does not exist in the target host in this model, while script or file-based metrics require a local agent.

However, considering that the out-of-box metrics included in the EM’s WebLogic Server management are predominantly JMX based, the method described in this document is considered as an effective monitoring solution to the WebLogic on Kubernetes, when the exceptions are understood. Known limitations when monitoring WebLogic using this model:

In short, using this model, most of the WebLogic Server target metrics are available to monitor with EM. You can configure alerts to these metrics and receive notifications using the EM’s monitoring functionalities. JVMD can be set up for the performance diagnostics, and a limited set of WebLogic configurations are collected. On the other hand, any option that requires OMS to log on to the target host, or to the WebLogic admin console, are not supported.

Learn More

Oracle Cloud APM Workshops