-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweblogic-jmx-config.yml
142 lines (125 loc) · 5.48 KB
/
weblogic-jmx-config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
---
# In order to get WebLogic mbeans, you need to add the following options in server's options:
# -Djavax.management.builder.initial=weblogic.management.jmx.mbeanserver.WLSMBeanServerBuilder
attrNameSnakeCase: true
lowercaseOutputName: true
lowercaseOutputLabelNames: true
whitelistObjectNames:
- "java.lang:type=OperatingSystem"
- "com.bea:ServerRuntime=*,Name=*,Type=JVMRuntime"
#- "com.bea:Name=*,Type=Domain"
- "com.bea:Name=*,Type=ServerRuntime"
- "com.bea:ServerRuntime=*,Type=ApplicationRuntime,*"
- "com.bea:ServerRuntime=*,Type=JDBCOracleDataSourceRuntime,*"
- "com.bea:ServerRuntime=*,Type=ThreadPoolRuntime,*"
- "com.bea:ServerRuntime=*,Type=JMSRuntime,*"
- "com.bea:ServerRuntime=*,Type=JMSServerRuntime,*"
- "com.bea:ServerRuntime=*,Type=JMSDestinationRuntime,*"
- "com.bea:ServerRuntime=*,Type=SAFRuntime,*"
- "com.bea:ServerRuntime=*,Type=WorkManagerRuntime,*"
- "com.bea:ServerRuntime=*,Type=PersistentStoreRuntime,*"
- "com.bea:ServerRuntime=*,Type=WebAppComponentRuntime,*"
- "com.bea:ServerRuntime=*,Type=ServletRuntime,*"
rules:
#com.bea<ServerRuntime=AdminServer, Name=AdminServer_/bea_wls_internal, ApplicationRuntime=bea_wls_internal, Type=WebAppComponentRuntime><>SessionsOpenedTotalCount)
# com.bea<ServerRuntime=AdminServer, Name=ClientClose, ApplicationRuntime=bea_wls_internal, Type=ServletRuntime, WebAppComponentRuntime=AdminServer_/bea_wls_internal><>ExecutionTimeTotal
- pattern: "^com.bea<ServerRuntime=(.+), Name=(.+), (.+)Runtime=(.*), Type=ServletRuntime, WebAppComponentRuntime=(.+)><>(.+):"
name: weblogic_$3_$6
attrNameSnakeCase: true
labels:
server: $1
name: $2
application: $4
# ex: java.lang<type=OperatingSystem><>ProcessCpuTime
- pattern: "^java.lang<type=OperatingSystem><>(.+):"
name: weblogic_$1
attrNameSnakeCase: true
# ex: com.bea<Name=Server-0, Type=ServerRuntime><>StableState
- pattern: "^com.bea<Name=(.+), Type=(.+)Runtime><>(.+):"
name: weblogic_$2_$3
attrNameSnakeCase: true
labels:
server: $1
# com.bea<ServerRuntime=AdminServer, Name=ClientClose, ApplicationRuntime=bea_wls_internal, Type=ServletRuntime, WebAppComponentRuntime=AdminServer_/bea_wls_internal><>InvocationTotalCount
# ex: com.bea<ServerRuntime=AdminServer, Name=default, ApplicationRuntime=moduleJMS, Type=WorkManagerRuntime><>CompletedRequests
- pattern: "^com.bea<ServerRuntime=(.+), Name=(.+), (.+)Runtime=(.*), Type=(.+)Runtime><>(.+):"
name: weblogic_$3_$5_$6
attrNameSnakeCase: true
labels:
server: $1
name: $2
application: $4
# ex: com.bea<ServerRuntime=Server, Name=application, Type=ApplicationRuntime><>Metric
- pattern: "^com.bea<ServerRuntime=(.+), Name=(.+), Type=ApplicationRuntime><>(.+):"
name: weblogic_application_$3
attrNameSnakeCase: true
labels:
server: $1
name: $2
# ex: com.bea<ServerRuntime=Server, Name=runtimename, Type=JVMRuntime><>Metric
- pattern: "^com.bea<ServerRuntime=(.+), Name=(.+), Type=JVMRuntime><>(.+):"
name: weblogic_jvm_$3
attrNameSnakeCase: true
labels:
server: $1
name: $2
# ex: com.bea<ServerRuntime=Server, Name=dsName, Type=JDBCOracleDataSourceRuntime><>Metric // we have to use JDBCOracleDataSource for weblogic jdbc pool
- pattern: "^com.bea<ServerRuntime=(.+), Name=(.+), Type=JDBCOracleDataSourceRuntime><>(.+):"
name: weblogic_jdbcoracledatasource_$3
attrNameSnakeCase: true
labels:
server: $1
name: $2
#ex: com.bea<ServerRuntime=Server, Name=ThreadPoolRuntime, Type=ThreadPoolRuntime><>Metric
- pattern: "^com.bea<ServerRuntime=(.+), Name=(.+), Type=ThreadPoolRuntime><>(.+):"
name: weblogic_threadpool_$3
attrNameSnakeCase: true
labels:
server: $1
name: $2
#ex: com.bea<ServerRuntime=Server, Name=servername.jms, Type=JMSRuntime><>Metric
- pattern: "^com.bea<ServerRuntime=(.+), Name=(.+), Type=JMSRuntime><>(.+):"
name: weblogic_jms_$3
attrNameSnakeCase: true
labels:
server: $1
jmsruntime: $2
#ex: com.bea<ServerRuntime=Server, Name=JMSServer-2a, Type=JMSServerRuntime><>Metric
- pattern: "^com.bea<ServerRuntime=(.+), Name=(.+), Type=JMSServerRuntime><>(.+):"
name: weblogic_jms_$3
attrNameSnakeCase: true
labels:
server: $1
jmsserver: $2
#ex: com.bea<ServerRuntime=Server, Name=module!servername@topicname, Type=JMSDestinationRuntime, JMSServerRuntime=JMSServer-2a><>Metric
- pattern: "^com.bea<ServerRuntime=(.+), Name=(.+), Type=JMSDestinationRuntime, JMSServerRuntime=(.+)><>(.+):"
name: weblogic_jms_dest_$4
attrNameSnakeCase: true
labels:
server: $1
destination: $2
jmsserver: $3
- pattern: "^com.bea<ServerRuntime=.+, Name=(.+), Type=SAFRemoteEndpointRuntime><>(.+):"
attrNameSnakeCase: true
name: weblogic_messaging_$2
labels:
endpoint: $1
- pattern: "^com.bea<ServerRuntime=(.+), Name=(.+), Type=PersistentStoreRuntime><>(.+):"
name: weblogic_persistentstore_$3
attrNameSnakeCase: true
labels:
server: $1
name: $2
# ex: com.bea<ServerRuntime=AdminServer, Name=bea_wls_cluster_internal, Type=ApplicationRuntime><OverallHealthStateJMX>IsCritical
- pattern: "^com.bea<ServerRuntime=(.+), Name=(.+), Type=(.+)Runtime><(.+)>(.+):"
name: weblogic_$3_$4_$5
attrNameSnakeCase: true
labels:
server: $1
name: $2
# uncomment this to fetch domain name from mbeans
# - pattern: "^com.bea<Name=(.*), Type=Domain><>(id): (.+)"
# name: weblogic_id
# attrNameSnakeCase: true
# labels:
# domain: $1