Skip to content

Commit

Permalink
metrics: Export ProcessLabels fields
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
lambdanis committed Apr 26, 2024
1 parent fbacb1b commit a0a3502
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions pkg/metrics/labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

Expand All @@ -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}
}

0 comments on commit a0a3502

Please sign in to comment.