From a0a3502d672cdd8976f83e090ac3a90d2f0225f1 Mon Sep 17 00:00:00 2001 From: Anna Kapuscinska Date: Fri, 26 Apr 2024 14:29:19 +0100 Subject: [PATCH] metrics: Export ProcessLabels fields It's useful to have access to individual labels in different packages, and given how this struct is used, it doesn't seem a big risk to export fields. Signed-off-by: Anna Kapuscinska --- pkg/metrics/labels.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pkg/metrics/labels.go b/pkg/metrics/labels.go index 3bc70728ebf..df894c27f7a 100644 --- a/pkg/metrics/labels.go +++ b/pkg/metrics/labels.go @@ -9,18 +9,18 @@ type FilteredLabels interface { } type ProcessLabels struct { - namespace string - workload string - pod string - binary string + Namespace string + Workload string + Pod string + Binary string } func NewProcessLabels(namespace, workload, pod, binary string) *ProcessLabels { return &ProcessLabels{ - namespace: namespace, - workload: workload, - pod: pod, - binary: binary, + Namespace: namespace, + Workload: workload, + Pod: pod, + Binary: binary, } } @@ -29,5 +29,5 @@ func (l ProcessLabels) Keys() []string { } func (l ProcessLabels) Values() []string { - return []string{l.namespace, l.workload, l.pod, l.binary} + return []string{l.Namespace, l.Workload, l.Pod, l.Binary} }