Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Monitoring WebLogic Server with the Grafana Dashboard

This is an end-to-end sample that demonstrates setting up monitoring for WebLogic domains using Prometheus and Grafana. When completed, you'll have Prometheus, Grafana, and WebLogic domains installed, configured, and running. This sample includes Grafana dashboards to visualize the WebLogic Server runtime metrics and demonstrates how to fire alerts based on the metrics.

First, look at what's in the WebLogic Server Dashboard.

See the following diagram for the overall architecture containing the basic components that we'll deploy to a Kubernetes cluster.

architecture

Here's how the WebLogic runtime metrics are generated, scraped, stored, and used:

  • WebLogic Servers expose their runtime data using the REST API.
  • The exporter, running on each WebLogic Server instance, acquires WebLogic data by calling the REST API, which it then translates to the Prometheus metrics format and exposes in an HTTP endpoint.
  • The Prometheus server periodically scrapes the metrics from the endpoints and stores them in its time series database.
  • Graphing - The Grafana server queries the metrics from the Prometheus server using PromQL and displays the metrics and series in a visualization dashboard.
  • Alerting
    • Alerting rules are defined in the Prometheus server using PromQL expressions.
    • When alert conditions are met, the Prometheus server fires alerts to the Alertmanager.
    • The Alertmanager can potentially deduplicate, group, and route all the alerts and send notifications accordingly to various receivers, like email, Slack, webhook, and such. In this sample, the Alertmanager simply sends notifications to a test webhook.

Prerequisites

  • Have a running Kubernetes cluster version 1.10 or higher.
  • Have Helm installed.
  • Clone this repository.
    git clone https://github.com/oracle/weblogic-monitoring-exporter.git
    
  • Change the directory to the root folder of this sample. All the commands in the step-by-step guide are written to run under this root folder.
    cd weblogic-monitoring-exporter/samples/kubernetes/end2end/
    

Step-by-Step Guide

  1. Configuring the PV Path
  2. Preparing and Running a WebLogic Domain
  3. Setting up Prometheus
  4. Setting up Grafana
  5. Setting up and Firing Alerts
  6. How to Monitor an Existing WebLogic Domain
  7. Cleanup