weblogic-monitoring-exporter icon indicating copy to clipboard operation
weblogic-monitoring-exporter copied to clipboard

Suggestion: Gather Health and State Metrics

Open eagle-rr opened this issue 3 years ago • 3 comments

Allow for polling of "state" (ex.: "RUNNING") and "overallHealthState:state" (ex.: "ok") to values which can be reported/gathered by prometheus (Ex.: 1 = RUNNING; 2 = WARNING; 3 = STOPPED). This would be valuable when reporting status of managed server, deployed applications, jdbc connections, etc.

eagle-rr avatar Apr 23 '21 14:04 eagle-rr

Have you considered using the WebLogic Remote Console to gather this kind of monitoring information? Please refer to https://github.com/oracle/weblogic-remote-console

mriccell avatar May 06 '21 13:05 mriccell

I do not see a method of using weblogic-remote-console as an exporter which Prometheus can scrape. Basically, it would be good to get various WebLogic's component's health available to be scraped into Prometheus and then we can alert via AlertManager (ex.: via pagerduty to operator).

eagle-rr avatar May 06 '21 15:05 eagle-rr

We will capture this requirement.

mriccell avatar Dec 09 '21 17:12 mriccell

This is now in the main branch and will be included in the next release. With this config

queries:
- prefix: wls_server_
  key: name
  keyName: location
  applicationRuntimes:
    key: name
    keyName: app
    componentRuntimes:
      type: WebAppComponentRuntime
      prefix: wls_webapp_config_
      key: name
      values: [deploymentState, contextRoot, sourceInfo, sessionsOpenedTotalCount, openSessionsCurrentCount, openSessionsHighCount]
      stringValues:
        status: [deployed, undeployed]

we now get metrics like

wls_webapp_config_status{domain="mydomain",location="myserver",app="wls-exporter",name="myserver_/wls-exporter"} 0

russgold avatar Sep 15 '22 19:09 russgold