@@ -23,9 +23,9 @@ const (
2323var (
2424 latencyBuckets = []string {".005" , ".01" , ".02" , ".03" , ".04" , ".05" , ".075" , ".1" , ".25" , "1" }
2525 mapLabels = map [string ][]string {
26- tagNodes : {"K8S_ClusterName" , "SrcK8S_Zone" , "DstK8S_Zone" , "SrcK8S_HostName" , "DstK8S_HostName" },
27- tagNamespaces : {"K8S_ClusterName" , "SrcK8S_Zone" , "DstK8S_Zone" , "SrcK8S_Namespace" , "DstK8S_Namespace" , "K8S_FlowLayer" , "SrcSubnetLabel" , "DstSubnetLabel" },
28- tagWorkloads : {"K8S_ClusterName" , "SrcK8S_Zone" , "DstK8S_Zone" , "SrcK8S_Namespace" , "DstK8S_Namespace" , "K8S_FlowLayer" , "SrcSubnetLabel" , "DstSubnetLabel" , "SrcK8S_OwnerName" , "DstK8S_OwnerName" , "SrcK8S_OwnerType" , "DstK8S_OwnerType" , "SrcK8S_Type" , "DstK8S_Type" },
26+ tagNodes : {"K8S_ClusterName" , "SrcK8S_Zone" , "DstK8S_Zone" , "SrcK8S_HostName" , "DstK8S_HostName" , "TLSVersion" },
27+ tagNamespaces : {"K8S_ClusterName" , "SrcK8S_Zone" , "DstK8S_Zone" , "SrcK8S_Namespace" , "DstK8S_Namespace" , "K8S_FlowLayer" , "SrcSubnetLabel" , "DstSubnetLabel" , "TLSVersion" },
28+ tagWorkloads : {"K8S_ClusterName" , "SrcK8S_Zone" , "DstK8S_Zone" , "SrcK8S_Namespace" , "DstK8S_Namespace" , "K8S_FlowLayer" , "SrcSubnetLabel" , "DstSubnetLabel" , "SrcK8S_OwnerName" , "DstK8S_OwnerName" , "SrcK8S_OwnerType" , "DstK8S_OwnerType" , "SrcK8S_Type" , "DstK8S_Type" , "TLSVersion" },
2929 }
3030 mapValueFields = map [string ]string {
3131 tagBytes : "Bytes" ,
@@ -321,6 +321,9 @@ func GetDefinitions(fc *flowslatest.FlowCollectorSpec, allMetrics bool) []metric
321321 if ! fc .Processor .IsMultiClusterEnabled () {
322322 labelsToRemove = append (labelsToRemove , "K8S_ClusterName" )
323323 }
324+ if ! fc .Agent .EBPF .IsTLSTrackingEnabled () {
325+ labelsToRemove = append (labelsToRemove , "TLSVersion" )
326+ }
324327
325328 var filterRecordType * metricslatest.MetricFilter
326329 if fc .Processor .LogTypes != nil {
0 commit comments