Comments (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.
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.
@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.
I want to use jmx_exporter to expose weblogic jmx metrics, what should i do ?
from jmx_exporter.
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.
@cfrantsen Could you please paste your jmx export agent execute command and config.yml? Thank you so much.
from jmx_exporter.
@cfrantsen Thank u so much. This issue i will close. @brian-brazil Thank u so much.
from jmx_exporter.
Related Issues (20)
- Can't add metrics to blacklistObjectNames HOT 6
- Plan for release with Prometheus Client 1.x? HOT 2
- no main manifest attribute, in jmx_prometheus_javaagent-0.19.0.jar HOT 1
- Hazelcast Metrics are not showing HOT 2
- Remote jmx has enabled SSL. How to configure jmx-exporter for verification? HOT 13
- Ability to use lowercaseOutputName in particular rules HOT 4
- jmx exporter inside Confluent Kafka broker container HOT 2
- After applying JMX filtering pattern, it takes 23 secs to scrape the metrics, is it expected behaviour? HOT 6
- Collection fails for Kafka using release 1.0.0 HOT 14
- feature request: allow to exclude specific attribute patterns inside a composite attribute HOT 3
- Clarify in documentation "jvm_*" metrics HOT 4
- jmxexporter adding incorrect _total suffix to #HELP and #TYPE when using COUNTER HOT 10
- Kafka Metrics showing type as "Untyped" HOT 3
- Advice for validating JMX exporter rules HOT 1
- Support multi-target in http server mode HOT 6
- JMX agent interfering with logging format of application HOT 3
- Extracting PM metrics on Kafka Cluster results in duplicate files due to different cases in the same metric names. HOT 5
- Metric name "_info" suffix gets trimmed HOT 1
- kafka command raise 'Address Already in used' after configuration HOT 11
- kafka_2.13-3.7.1 without metrics HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jmx_exporter.