Monitoring IBM LinuxONE LPAR and Peer Pods
For the IBM Confidential Computing Containers for Red Hat OpenShift Container Platform (CCCO) peerpod deployments, you can monitor the health, performance, and security of IBM LinuxONE Logical Partitions (LPAR) and the peerpods. This capability applies only to LPARs running Red Hat Enterprise Linux (RHEL) operating system.
This procedure is intended for users with the role Environment Operator.
Prerequisites
Procedure
- Create a directory Monitoring for monitoring
purposes.
mkdir Monitoring - Change the directory to
Monitoring.
cd Monitoring - Run the node exporter to fetch the metrics from the LPARs.
- If you are using docker, run the following
command:
docker run -d --name <docker_container_name> -p 9100:9100 prom/node-exporter - If you are using podman, run the following
command:
sudo podman run -d --name <podman_container_name> -p 9100:9100 prom/node-exporter
- If you are using docker, run the following
command:
- Run the libvirt exporter to fetch the metrics from the libvirt peer pod VMs.
- If you are using docker, run the following
command:
docker run -d --name <libvirt_container_name> -p 9177:9177 -v /var/run/libvirt:/var/run/libvirt libvirt_exporter:latest - If you are using podman, run the following
command:
sudo podman run -d --name <libvirt_container_name> -p 9177:9177 --security-opt label=disable -v /var/run/libvirt:/var/run/libvirt:z libvirt_exporter:latest
- If you are using docker, run the following
command:
- Create
prometheus.yamlaccording to the following example:cat << EOF > prometheus.yaml global: scrape_interval: 15s scrape_configs: - job_name: 'linuxone-lpar' static_configs: - targets: ['<node_exporter_target_IP>:<port>',<Libvirt_exporter_target_IP>:<port>] (1) EOF- Specify the IP address and port where the data must be stored.
- Run prometheus container.
- If you are using docker, run the following
command:
docker run -d --name <prometheus_container_name> -p 9091:9090 -v ./prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus - If you are using podman, run the following
command:
sudo podman run -d --name <prometheus_container_name> -p 9091:9090 -v $(pwd)/prometheus.yml:/etc/prometheus/prometheus.yml:z prom/prometheus
- If you are using docker, run the following
command:
- Run Grafana.
You can either use an existing Grafana instance or create a new instance by performing the following steps:
- Ensure to use the Grafana image that is compatible with s390x.
- Create a Grafana instance.
- If you are using docker, run the following
command:
docker run -d --name <grafana_container_name> -p 3000:3000 -v grafana-storage:/var/lib/grafana prom/grafana - If you are using podman, run the following
command:
sudo podman run -d --name <grafana_container_name> -p 3000:3000 -v grafana-storage:/var/lib/grafana prom/grafana
- If you are using docker, run the following
command:
- Download the following JSON files:
- Access Grafana at
<IP_address>:3000.Specify the IP address where Grafana instance is created.
- From the GrafanaLabs page, go to Dashboards > New > Import.
- Create the dashboards for Node exporter and Libvirt exporter by importing the JSON files respectively.
- Once the dashboards are created, you can view the metrics for LPARs and peer pod VMs.
Example dashboards for the Node exporter and the Libvirt exporters are shown below:
Figure: Node exporter dashboard
Figure: Libvirt exporter dashboard