Skip to content

Commit

Permalink
Now references closure scoped family generator
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Whittaker-Smith <jdws.dev@gmail.com>
  • Loading branch information
jw-s committed Sep 25, 2020
1 parent 392f924 commit bf93cd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/metric_generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func FilterMetricFamiliesLabels(allowLabels allowLabels, families []FamilyGenera
metricFamily := familyGenerator.GenerateFunc(obj)

for _, m := range metricFamily.Metrics {
m.LabelKeys, m.LabelValues = allowLabels.Allowed(f.Name, m.LabelKeys, m.LabelValues)
m.LabelKeys, m.LabelValues = allowLabels.Allowed(familyGenerator.Name, m.LabelKeys, m.LabelValues)
}
return metricFamily
}
Expand Down

0 comments on commit bf93cd5

Please sign in to comment.