JXM Exporter Configuration for Weblogic

27 views
Skip to first unread message

Julian Ade Putra

unread,
Feb 28, 2020, 10:41:52 AM2/28/20
to Prometheus Users
Hi All,

Currently i have successfully injected JMX Exporter into Oracle Weblogic (version 12.2.12) and get the metrics. But somehow, i don't find some weblogic parameters like OpenSocketsCurrentCount, ManagedServers name, etc.
Can someone help to explain how i can get full metrics of weblogic paramters? 

Below my jmx configuration file :
---
attrNameSnakeCase
: true
lowercaseOutputName
: true
lowercaseOutputLabelNames
: true
whitelistObjectNames
:
 
- "com.bea:Name=*,Type=ServerRuntime"
 
- "com.bea:ServerRuntime=*,Type=ApplicationRuntime,*"
 
- "com.bea:ServerRuntime=*,Type=JDBCDataSourceRuntime,*"
 
- "com.bea:ServerRuntime=*,Type=JMSDestinationRuntime,*"
 
- "com.bea:ServerRuntime=*,Type=JDBCStoreRuntime,*"
 
- "com.bea:ServerRuntime=*,Type=FileStoreRuntime,*"
 
- "com.bea:ServerRuntime=*,Type=SAFRemoteEndpointRuntime,*"
 
- "com.bea:ServerRuntime=*,Type=ThreadPoolRuntime,*"
 
- "com.bea:ServerRuntime=*,Type=JMSRuntime,*"
 
- "com.bea:ServerRuntime=*,Type=SAFRuntime,*"
 
- "com.bea:ServerRuntime=*,Type=WorkManagerRuntime,*"
 
- "com.bea:ServerRuntime=*,Type=MessagingBridgeRuntime,*"
 
- "com.bea:ServerRuntime=*,Type=PersistentStoreRuntime,*"
 
- "com.bea:ServerRuntime=*,Type=WebServerRuntime,*"

rules
:
 
- pattern: "^com.bea<ServerRuntime=(.+), Name=(.+), (.+)Runtime=(.*), Type=(.+)Runtime><>(.+):"

    name
: weblogic_$3_$5_$6
    attrNameSnakeCase
: true
    labels
:
      runtime
: $1
      name
: $2
      application
: $4

 
- pattern: "^com.bea<ServerRuntime=(.+), Name=(.+), Type=(.+)Runtime><>(.+):"
    name
: weblogic_$3_$4
    attrNameSnakeCase
: true
    labels
:
      runtime
: $1
      name
: $2

 
- pattern: "^com.bea<ServerRuntime=(.+), Name=(.+), Type=(.+)Runtime><(.+)>(.+):"

    name
: weblogic_$3_$4_$5
    attrNameSnakeCase
: true
    labels
:
      runtime
: $1
      name
: $2


Reply all
Reply to author
Forward
0 new messages