in collector/openstack/src/main/java/org/apache/karaf/decanter/collector/openstack/OpenstackCollector.java [132:303]
public void run() {
try {
String token = auth();
if (computeEnabled) {
try {
computeUsage(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get compute usage", e);
}
try {
computeServers(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get compute servers", e);
}
try {
computeFlavors(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get compute flavors", e);
}
try {
computeOsKeypairs(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get compute OS keypairs", e);
}
try {
computeLimits(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get compute limits", e);
}
try {
computeOsAggregates(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get compute OS aggregates", e);
}
try {
computeAvailabilityZones(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get compute availability zones", e);
}
try {
computeOsHypervisors(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get compute OS hypervisors", e);
}
try {
computeOsInstanceUsageAuditLog(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get compute OS instance usage audit log", e);
}
try {
computeOsMigrations(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get compute OS migrations", e);
}
try {
computeOsServerGroups(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get compute OS server groups", e);
}
try {
computeOsServices(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get compute OS services", e);
}
}
if (blockStorageEnabled) {
try {
blockStorageVolumeTypes(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get block storage volume types", e);
}
try {
blockStorageVolumesDetail(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get block storage volumes detail", e);
}
try {
blockStorageManageableVolumes(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get block storage manageable volumes", e);
}
try {
blockStorageSnapshotsDetail(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get block storage snapshots detail", e);
}
try {
blockStorageVolumeTransfers(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get block storage volume transfers", e);
}
try {
blockStorageAttachments(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get block storage attachments", e);
}
try {
blockStorageBackups(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get block storage backups", e);
}
try {
blockStorageOsServices(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get block storage OS services", e);
}
try {
blockStorageGroups(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get block storage groups", e);
}
try {
blockStorageGroupSnapshots(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get block storage group snapshots", e);
}
try {
blockStorageGroupTypes(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get block storage group types", e);
}
try {
blockStorageOsHosts(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get block storage OS hosts", e);
}
try {
blockStorageLimits(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get block storage limits", e);
}
try {
blockStorageResourceFilters(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get block storage resource filters", e);
}
try {
blockStorageQosSpecs(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get block storage QoS specs", e);
}
}
if (imageEnabled) {
try {
images(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get images", e);
}
try {
imageStore(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get image store", e);
}
try {
imageTasks(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get image tasks", e);
}
}
if (metricEnabled) {
try {
metric(token, dispatcher);
} catch (Exception e) {
LOGGER.warn("Can't get metric", e);
}
}
} catch (Exception e) {
LOGGER.warn("Can't get openstack details", e);
}
}