25 Centralized Monitoring Using Grafana and Prometheus
When using Prometheus and Grafana, you can configure non-Kubernetes products to send their data to the console. This data is in addition to data from the Kubernetes components.
This chapter includes the following topics:
- Oracle HTTP Server
If you are using a centralized Prometheus and Grafana to monitor your infrastructure, you can send Oracle HTTP Server data to this application. - Oracle Database
You can send monitoring information from the Oracle Database to Prometheus. To send data, you should create a Database Exporter inside the Kubernetes cluster and connect it to your database.
Oracle HTTP Server
If you are using a centralized Prometheus and Grafana to monitor your infrastructure, you can send Oracle HTTP Server data to this application.
To send the Oracle HTTP Server data, perform the following steps:
- Enabling Oracle HTTP Server Status Monitoring
- Enabling Iptables/Firewalls
- Running the Apache Exporter
- Adding External Hosts to the Prometheus Operator
Parent topic: Centralized Monitoring Using Grafana and Prometheus
Enabling Oracle HTTP Server Status Monitoring
Parent topic: Oracle HTTP Server
Enabling Iptables/Firewalls
If the validation command does not work and you have a firewall enabled or Iptables running, you need to ensure that traffic can reach the web server from the Kubernetes worker hosts.
If you are using Iptables, run the following command:
sudo iptables -I INPUT -p tcp -m tcp --dport 9117 -j ACCEPT
Parent topic: Oracle HTTP Server
Running the Apache Exporter
The earlier commands (see Enabling Oracle HTTP Server Status Monitoring and Enabling Iptables/Firewalls) enable you to expose the server information from the Oracle HTTP Server. After you expose the information, run the Apache Exporter for Prometheus. This step creates an agent on the webhost, which can be interrogated by Prometheus.
To create an agent, perform the following step:
Downloading and Installing the Apache Exporter
Parent topic: Running the Apache Exporter
Adding External Hosts to the Prometheus Operator
Parent topic: Oracle HTTP Server
Oracle Database
You can send monitoring information from the Oracle Database to Prometheus. To send data, you should create a Database Exporter inside the Kubernetes cluster and connect it to your database.
Note:
If you are using a container database, you must connect to the service associated with the container database; not to individual PDBs.Parent topic: Centralized Monitoring Using Grafana and Prometheus
Creating an Oracle Database Exporter
Parent topic: Oracle Database