func CreateMetricsClient(kubeconfig string) (*metrics.Clientset, error) {
	config, err := clientcmd.BuildConfigFromFlags("", kubeconfig)
	if err != nil {
		return nil, err
	}

	mc, err := metrics.NewForConfig(config)
	if err != nil {
		return nil, err
	}
	return mc, nil
}
// CreateMetricsClient creates a metrics client to use for fetching metrics data of cluster
CreateMetricsClient creates a metrics client to use for fetching metrics data of cluster
// CreateMetricsClient creates a metrics client to use for fetching metrics data of cluster
func CreateMetricsClient(kubeconfig string) (*metrics.Clientset, error) {
	config, err := clientcmd.BuildConfigFromFlags("", kubeconfig)
	if err != nil {
		return nil, err
	}
	mc, err := metrics.NewForConfig(config)
	if err != nil {
		return nil, err
	}
	return mc, nil
}
func CreateMetricsClient ( kubeconfig string ) ( * metrics . Clientset , error ) { config , err := clientcmd . BuildConfigFromFlags ( " " , kubeconfig ) if err != nil { return nil , err } mc , err := metrics . NewForConfig ( config ) if err != nil { return nil , err } return mc , nil }
CreateMetricsClient creates a metrics client to use for fetching metrics data of cluster
CreateMetricsClient creates a metrics client to use for fetching metrics data of cluster