After the Oracle SOA Suite domain is set up, you can:
Using the WebLogic Monitoring Exporter
you can scrape runtime information from a running Oracle SOA Suite instance and monitor them using Prometheus and Grafana.
Prerequisite: Before setting up monitoring, make sure that Prometheus and Grafana are deployed on the Kubernetes cluster.
Refer to the compatibility matrix of Kube Prometheus and clone the release version of the kube-prometheus
repository according to the Kubernetes version of your cluster.
Clone the kube-prometheus
repository:
$ git clone https://github.com/coreos/kube-prometheus.git
Change to folder kube-prometheus
and enter the following commands to create the namespace and CRDs, and then wait for their availability before creating the remaining resources:
$ cd kube-prometheus
$ kubectl create -f manifests/setup
$ until kubectl get servicemonitors --all-namespaces ; do date; sleep 1; echo ""; done
$ kubectl create -f manifests/
kube-prometheus
requires all nodes in the Kubernetes cluster to be labeled with kubernetes.io/os=linux
. If any node is not labeled with this, then you need to label it using the following command:
$ kubectl label nodes --all kubernetes.io/os=linux
Enter the following commands to provide external access for Grafana, Prometheus, and Alertmanager:
$ kubectl patch svc grafana -n monitoring --type=json -p '[{"op": "replace", "path": "/spec/type", "value": "NodePort" },{"op": "replace", "path": "/spec/ports/0/nodePort", "value": 32100 }]'
$ kubectl patch svc prometheus-k8s -n monitoring --type=json -p '[{"op": "replace", "path": "/spec/type", "value": "NodePort" },{"op": "replace", "path": "/spec/ports/0/nodePort", "value": 32101 }]'
$ kubectl patch svc alertmanager-main -n monitoring --type=json -p '[{"op": "replace", "path": "/spec/type", "value": "NodePort" },{"op": "replace", "path": "/spec/ports/0/nodePort", "value": 32102 }]'
Note:
32100
is the external port for Grafana32101
is the external port for Prometheus32102
is the external port for AlertmanagerFollow the steps here to set up monitoring for an Oracle SOA Suite instance.
You can publish the WebLogic Server logs to Elasticsearch using the WebLogic logging exporter
and interact with them in Kibana.
See Publish logs to Elasticsearch.
WebLogic Server logs can also be published to Elasticsearch using Fluentd
. See Fluentd configuration steps.