- This is sample exporter for EXPRESSCLUSTER.
- This exporter can get the following data.
- Performance data of each mirror disk resource
- Elapse time of each monitor resource
- Clone this repository.
git clone https://github.com/EXPRESSCLUSTER/clp_exporter.git
- Move to
srcdirectory.cd clp_exporter/src - Initialize and build clp_exporter.
go mod init clp_exporter
go mod tidy
go build
+---------------------+
| Ubuntu Server 24.04 |
| Prometheus |
+-+-------------------+
|
| +----------------------------------+
| | Node 1 |
| | - AlmaLinux 9.6 |
+--+ - EXPRESSCLUSTER X for Linux 5.3 |
| | - clp_exporter |
| +----------------------------------+
|
| +----------------------------------+
| | Node 2 |
| | - AlmaLinux 9.6 |
+--+ - EXPRESSCLUSTER X for Linux 5.3 |
| - clp_exporter |
+----------------------------------+
- Install Prometheus.
- Install EXPRESSCLUSTER and create a cluster.
- Save clp_exporter on both Node 1 and 2.
- Run clp_exporter.
./clp_exporter
- Open
prometheus.ymland add IP address of Node 1 and 2 as below.vim /etc/prometheus/prometheus.yml
- job_name: clp static_configs: - targets: ['192.168.122.11:29090'] labels: name: node1 - targets: ['192.168.122.12:29090'] labels: name: node2 - Open web browser and access to Prometheus.
http://<IP address>:9090
- Add the metrics of EXPRESSCLUSTER.
- clp_mirror_<mirror disk resource name>_<performance data>
- clp_monitor_<monitor resoruce name>