2020-08-11 14:26:16 +00:00
# HMC Insights
2020-08-13 15:50:26 +00:00
Small utility to fetch metrics from one or more HMC's and push those to an InfluxDB time-series database.
2020-08-11 14:26:16 +00:00
2020-08-13 20:01:22 +00:00
2020-08-13 15:50:26 +00:00
## Usage Instructions
2020-08-11 14:26:16 +00:00
2020-08-14 07:34:44 +00:00
- Ensure you have correct date/time and NTP running to keep it accurate.
2020-08-13 15:50:26 +00:00
2020-08-14 07:34:44 +00:00
Modify the */opt/hmci/conf/hmci.groovy* configuration file to suit your environment and run the program:
2020-08-13 20:01:22 +00:00
/opt/hmci/bin/hmci
2020-08-14 07:34:44 +00:00
Configure Grafana to communicate with your InfluxDB and import dashboards from *doc/* into Grafana. The dashboards are slightly modified versions of the dashboard provided by the nmon2influxdb tool.
2020-08-13 15:50:26 +00:00
2020-08-11 14:26:16 +00:00
## Development Information
2020-08-13 15:50:26 +00:00
### Build & Test
2020-08-11 14:26:16 +00:00
2020-08-12 15:00:31 +00:00
Use the gradle build tool
2020-08-11 14:26:16 +00:00
2020-08-12 15:00:31 +00:00
./gradlew clean build
2020-08-13 15:50:26 +00:00
2020-08-11 14:26:16 +00:00
2020-08-12 15:00:31 +00:00
### InfluxDB for local testing
Start the InfluxDB container
2020-08-11 14:26:16 +00:00
2020-08-13 09:48:00 +00:00
docker run --name=influxdb --rm -d -p 8086:8086 influxdb
2020-08-11 14:26:16 +00:00
2020-08-12 15:00:31 +00:00
To use the Influx client from the same container
2020-08-11 14:26:16 +00:00
docker exec -it influxdb influx
2020-08-12 15:00:31 +00:00
2020-08-13 15:50:26 +00:00
### Grafana for local testing
2020-08-12 15:00:31 +00:00
Start the Grafana container, linking it to the InfluxDB container
2020-08-13 09:48:00 +00:00
docker run --name grafana --link influxdb:influxdb --rm -d -p 3000:3000 grafana/grafana:7.1.3
2020-08-13 15:50:26 +00:00
Configure a new InfluxDB datasource on **http://influxdb:8086** named **hmci** to connect to the InfluxDB container. The database must be created beforehand, this can be done by running the hmci tool first. Grafana dashboards can be imported from the **doc/** folder.