func GetMetricsIdentifiers(crossConnect *crossconnect.CrossConnect) (string, map[string]string, error) {
	srcPod, srcNamespace, dstPod, dstNamespace := "", "", "", ""
	if crossConnect.GetSource() == nil {
		return "", nil, errors.Errorf("error: crossConnect should have at least one source, %v", crossConnect)
	}
	ccSrcLabels := crossConnect.GetSource().GetLabels()
	srcPod = ccSrcLabels[connection.PodNameKey]
	srcNamespace = ccSrcLabels[connection.NamespaceKey]
	if crossConnect.GetDestination() == nil {
		return "", nil, errors.Errorf("error: crossConnect should have at least one destination, %v", crossConnect)
	}
	ccDstLabels := crossConnect.GetDestination().GetLabels()
	dstPod = ccDstLabels[connection.PodNameKey]
	dstNamespace = ccDstLabels[connection.NamespaceKey]
	res := map[string]string{
		SrcPodKey:       srcPod,
		SrcNamespaceKey: srcNamespace,
		DstPodKey:       dstPod,
		DstNamespaceKey: dstNamespace,
	}
	return crossConnect.Id, res, nil
}
GetMetricsIdentifiers returns source and destination
of the metrics specified with `pod` name and `namespace`
package metrics
import (
	"github.com/pkg/errors"
	"github.com/networkservicemesh/networkservicemesh/controlplane/api/connection"
	"github.com/networkservicemesh/networkservicemesh/controlplane/api/crossconnect"
)