GithubHelp home page GithubHelp logo

Comments (6)

cfrantsen avatar cfrantsen commented on July 30, 2024 6

@ZhenyangZhao
Init parameters, we use migratable servers so each JVM has it's own IP and the java agent is only bound to it's own JVMs IP.
-javaagent:/opt/prometheus/jmx_exporter/jmx_prometheus_javaagent-0.8-SNAPSHOT.jar=<hostname/IP>:9102:/opt/prometheus/jmx_exporter/weblogic.yaml

Config, this is a work in progress but should be fully functional

---
lowercaseOutputName: true
lowercaseOutputLabelNames: true
whitelistObjectNames:
  - "com.bea:Name=*,Type=ServerRuntime"
  - "com.bea:ServerRuntime=*,Type=ApplicationRuntime,*"
  - "com.bea:ServerRuntime=*,Type=JDBCOracleDataSourceRuntime,*"
  - "com.bea:ServerRuntime=*,Type=JMSDestinationRuntime,*"
  - "com.bea:ServerRuntime=*,Type=SAFRemoteEndpointRuntime,*"
  - "com.bea:ServerRuntime=*,Type=ThreadPoolRuntime,*"

rules:
  - pattern: "^com.bea<ServerRuntime=.+, Name=(.+), Type=JDBCOracleDataSourceRuntime><>(.+): (Running|Suspended|Shutdown|Overloaded|Unknown)$"
    attrNameSnakeCase: true
    name: weblogic_datasource_$2
    value: 1
    labels:
      name: $1
      state: $3

  - pattern: "^com.bea<ServerRuntime=.+, Name=(.+), Type=JDBCOracleDataSourceRuntime><>(.+):"
    attrNameSnakeCase: true
    name: weblogic_datasource_$2
    labels:
      name: $1

  - pattern: "^com.bea<ServerRuntime=.+, Name=(.+), Type=JMSDestinationRuntime, JMSServerRuntime=.+><>(.+):"
    attrNameSnakeCase: true
    name: weblogic_messaging_$2
    labels:
      destination: $1

  - pattern: "^com.bea<ServerRuntime=.+, Name=(.+), Type=SAFRemoteEndpointRuntime><>(.+):"
    attrNameSnakeCase: true
    name: weblogic_messaging_$2
    labels:
      endpoint: $1

  - pattern: "^com.bea<ServerRuntime=.+, Name=ThreadPoolRuntime, Type=ThreadPoolRuntime><>(.+):"
    attrNameSnakeCase: true
    name: weblogic_threadpool_$1

  - pattern: "^com.bea<ServerRuntime=.+, Name=(.+), Type=ApplicationRuntime><HealthStateJMX>(.+): HEALTH_(.+)"
    attrNameSnakeCase: true
    name: weblogic_application_$2
    value: 1
    labels:
      name: $1
      state: $3

  - pattern: "^com.bea<Name=.+, Type=ServerRuntime><HealthStateJMX>(.+): HEALTH_(.+)"
    attrNameSnakeCase: true
    name: weblogic_server_$1
    value: 1
    labels:
      state: $2

  - pattern: "^com.bea<Name=.+, Type=ServerRuntime><>(.+): ([A-Z_]+)$"
    attrNameSnakeCase: true
    name: weblogic_server_$1
    value: 1
    labels:
      state: $2

from jmx_exporter.

brian-brazil avatar brian-brazil commented on July 30, 2024

I've no idea what iiop is. The general advice is to use the jmx exporter as an agent, as that usually works and bypasses various weirdness.

You also shared a password, I've removed it from your post however you should still rotate it.

from jmx_exporter.

ZhenyangZhao avatar ZhenyangZhao commented on July 30, 2024

@brian-brazil Thanks u very much for reply me.
rmi-iiop
my weblogic use iiop protocol to start rmi.
but use jmx_exporter cant not visit it.
use jconsole it looks ok.
qq 20170209223954

I want to use jmx_exporter to expose weblogic jmx metrics, what should i do ?

from jmx_exporter.

cfrantsen avatar cfrantsen commented on July 30, 2024

The easiest is what brian said, run the jmx exporter as a java agent. I use it this way on WebLogic 11g and 12c without any special WebLogic configuration.

If you must use IIOP you should probably use the Oracle implementation as described in http://docs.oracle.com/middleware/1221/wls/JMXCU/accesswls.htm#JMXCU145

from jmx_exporter.

ZhenyangZhao avatar ZhenyangZhao commented on July 30, 2024

@cfrantsen Could you please paste your jmx export agent execute command and config.yml? Thank you so much.

from jmx_exporter.

ZhenyangZhao avatar ZhenyangZhao commented on July 30, 2024

@cfrantsen Thank u so much. This issue i will close. @brian-brazil Thank u so much.

from jmx_exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.