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
## Known Problems
- When running on Windows, the data is collected and written to InfluxDB, but in Grafana there is no data.
2020-08-13 15:50:26 +00:00
## Usage Instructions
2020-08-11 14:26:16 +00:00
2020-08-13 15:50:26 +00:00
### Create Configuration
2020-08-11 14:26:16 +00:00
2020-08-13 20:01:22 +00:00
Modify the ** /opt/hmci/conf/hmci.groovy** configuration file to suit your environment.
2020-08-11 14:26:16 +00:00
2020-08-13 15:50:26 +00:00
### Run HMCi Tool
2020-08-13 20:01:22 +00:00
Requires Java 8+ runtime
/opt/hmci/bin/hmci
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.