Merged in issue/01 (pull request #6)
Issue/01 Approved-by: Mark Nellemann <mark.nellemann@gmail.com>
This commit is contained in:
commit
bbb10cce71
|
@ -1,3 +1,3 @@
|
|||
id = hmci
|
||||
group = biz.nellemann.hmci
|
||||
version = 0.2.2
|
||||
version = 0.2.3
|
||||
|
|
|
@ -152,12 +152,20 @@ class Insights {
|
|||
|
||||
|
||||
void writeMetricsForManagedSystems() {
|
||||
systems.forEach((systemId, system) -> influxClient.writeManagedSystem(system));
|
||||
try {
|
||||
systems.forEach((systemId, system) -> influxClient.writeManagedSystem(system));
|
||||
} catch (NullPointerException npe) {
|
||||
log.warn("writeMetricsForManagedSystems() - NPE: " + npe.toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void writeMetricsForLogicalPartitions() {
|
||||
partitions.forEach((partitionId, partition) -> influxClient.writeLogicalPartition(partition));
|
||||
try {
|
||||
partitions.forEach((partitionId, partition) -> influxClient.writeLogicalPartition(partition));
|
||||
} catch (NullPointerException npe) {
|
||||
log.warn("writeMetricsForLogicalPartitions() - NPE: " + npe.toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -174,7 +182,6 @@ class Insights {
|
|||
Runtime.getRuntime().addShutdownHook(shutdownHook);
|
||||
|
||||
do {
|
||||
|
||||
try {
|
||||
getMetricsForSystems();
|
||||
getMetricsForPartitions();
|
||||
|
|
Loading…
Reference in a new issue