// populateMetrics wrapper to call each of the individual populate functions
populateMetrics wrapper to call each of the individual populate functions
// populateMetrics wrapper to call each of the individual populate functions
func populateMetrics(i *integration.Integration, client Client, env string) {
	clusterName, err := populateClusterMetrics(i, client, env)
	if err != nil {
		log.Error("There was an error populating metrics for clusters: %v", err)
	}
	err = populateNodesMetrics(i, client, clusterName)
	if err != nil {
		log.Error("There was an error populating metrics for nodes: %v", err)
	}
	commonResponse, err := populateCommonMetrics(i, client, clusterName)
	if err != nil {
		log.Error("There was an error populating metrics for common metrics: %v", err)
	}
	if args.CollectIndices {
		err = populateIndicesMetrics(i, client, commonResponse, clusterName)
		if err != nil {
			log.Error("There was an error populating metrics for indices: %v", err)
		}
	}
}
func populateMetrics ( i * integration . Integration , client Client , env string ) { clusterName , err := populateClusterMetrics ( i , client , env ) if err != nil { log . Error ( " " , err ) } err = populateNodesMetrics ( i , client , clusterName ) if err != nil { log . Error ( " " , err ) } commonResponse , err := populateCommonMetrics ( i , client , clusterName ) if err != nil { log . Error ( " " , err ) } if args . CollectIndices { err = populateIndicesMetrics ( i , client , commonResponse , clusterName ) if err != nil { log . Error ( " " , err ) } } }
populateMetrics wrapper to call each of the individual populate functions
populateMetrics wrapper to call each of the individual populate functions
// we want to use the response from common to populate some index-specific stats.