You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WebLogic Monitoring Exporter is a [Prometheus](http://prometheus.io)-compatible exporter of metrics from
6
-
WebLogic Server (WLS) instances, which it obtains by using the
7
-
[WLS RESTful Management API](https://docs.oracle.com/middleware/12213/wls/WLRUR/overview.htm#WLRUR111), available in version 12.2.1 or later.
5
+
The WebLogic Monitoring Exporter is a [Prometheus](http://prometheus.io)-compatible exporter of metrics from
6
+
WebLogic Server (WLS) instances, which it obtains by using the
7
+
[WLS RESTful Management API](https://docs.oracle.com/middleware/12213/wls/WLRUR/overview.htm#WLRUR111), available in version 12.2.1 or later.
8
8
Metrics are selected using a [YAML configuration file](#Configuration).
9
9
10
10
The exporter is available in two forms:
11
-
- A [web application](#web-application) that you deploy to the server from which metrics are to be extracted.
12
-
You may include a configuration file directly in the WAR file, and you may temporarily modify the configuration in a
13
-
running system by using a web form. If a [coordination configurator](config_coordinator/README.md) is running and configured,
11
+
- A [web application](#web-application) that you deploy to the server from which metrics are to be extracted.
12
+
You may include a configuration file directly in the WAR file, and you may temporarily modify the configuration in a
13
+
running system by using a web form. If a [coordination configurator](config_coordinator/README.md) is running and configured,
14
14
that temporary configuration will be sent to all servers configured to use it.
15
-
15
+
16
16
- A [separate process](#sidecar) that is run alongside a server instance. You supply the configuration to such a
17
17
process with a PUT command, as described below. [WebLogic Server Kubernetes Operator](https://github.com/oracle/weblogic-kubernetes-operator/) versions 3.2 and later have special support for the exporter in this form.
18
-
18
+
For more information, see [Use the Monitoring Exporter with WebLogic Kubernetes Operator](#use-the-monitoring-exporter-with-weblogic-kubernetes-operator).
19
19
20
20
## Configuration
21
21
Here is an example `yaml` file configuration:
@@ -53,7 +53,7 @@ Note that there are two parts to the configuration. The optional top portion def
53
53
|`domainQualifier`| If true, the domain name will be included as a qualifier for all metrics. Defaults to false. |
54
54
|`restPort`| Optional, used in the web application only. Overrides the port on which the exporter should contact the REST API. Needed if the exporter cannot find the REST API. The most common case is running on a system with the administration port enabled. In that case, you must specify the administration port in this field and access the exporter by using the SSL port. |
55
55
56
-
Note that if unable to contact the REST API using the inferred host and port, the exporter will try the local host name and, if the REST port is specified, the local port.
56
+
Note that if unable to contact the REST API using the inferred host and port, the exporter will try the local host name and, if the REST port is specified, the local port.
57
57
58
58
The `query` field is more complex. Each query consists of a hierarchy of the [MBeans](https://docs.oracle.com/middleware/12213/wls/WLMBR/core/index.html), starting relative to `ServerRuntimes`.
59
59
Within each section, there are a number of options:
@@ -120,6 +120,40 @@ however, if the metrics request is made using a load balancer or Kubernetes Node
120
120
original request was made might not be the same as the instance's HTTP port. In such a case, the configuration should
121
121
include the `restPort` configuration to tell the exporter which port to use.
122
122
123
+
## Use the Monitoring Exporter with WebLogic Kubernetes Operator
124
+
125
+
If you are running operator-managed WebLogic Server domains in Kubernetes, simply add the [`monitoringExporter`](https://github.com/oracle/weblogic-kubernetes-operator/blob/main/documentation/domains/Domain.md) configuration element in the domain resource to enable the Monitoring Exporter. For an example, see the following `yaml` file configuration:
To use the Monitoring Exporter with Prometheus, see the directions [here](https://blogs.oracle.com/weblogicserver/post/using-prometheus-and-grafana-to-monitor-weblogic-server-on-kubernetes).
156
+
123
157
124
158
## Samples
125
159
@@ -139,7 +173,7 @@ you to change it, either by uploading a replacement or an addition to the querie
139
173
Metrics will then be available from `<application-root>/metrics`.
140
174
141
175
142
-
## Downloading the release
176
+
## Download the release
143
177
144
178
You can find all the exporter releases on the [Releases page](https://github.com/oracle/weblogic-monitoring-exporter/releases/).
145
179
@@ -149,7 +183,7 @@ To download the web application `wls-exporter.war` file and put your configurati
149
183
bash getXXX.sh <your-config-file>
150
184
```
151
185
152
-
## Building from source
186
+
## Build from source
153
187
154
188
Use `mvn install` to build the web application. This will create `wls-exporter-<version>`, where _version_
155
189
is the Maven-assigned version number.
@@ -163,9 +197,18 @@ The sidecar is a standalone process that runs the exporter.
163
197
164
198
### Build and run with Maven
165
199
166
-
There are two ways to build the sidecar implementation. The first is with Maven, using the same `mvn install` command
167
-
specified [above](#building-from-source). Note that this requires JDK11 or later; building the project with JDK8 will
168
-
skip the sidecar module. The alternative is to [build with Docker](#building-a-docker-image)
200
+
There are two ways to build the sidecar implementation. The first is with Maven, using the same `mvn install` command
201
+
specified [above](#build-from-source). Note that this requires JDK11 or later; building the project with JDK8 will
202
+
skip the sidecar module. The alternative is to [build with Docker](#build-a-docker-image).
203
+
204
+
Instead of manually building them, if you want to use pre-built images, then you can pull a pre-created image from
205
+
the [Oracle Container Registry](https://container-registry.oracle.com/ords/f?p=113:10::::::) (OCR) or from
206
+
Google Container Registry (https://ghcr.io/), as follows:
0 commit comments