From b12f1290d3b4f99b2f1e5a5366a8c86ac7ee2845 Mon Sep 17 00:00:00 2001 From: Navid Yaghoobi Date: Sat, 3 Feb 2024 21:36:32 +1100 Subject: [PATCH] fix inconsistent label cardinality on image scrap Signed-off-by: Navid Yaghoobi --- collector/image.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collector/image.go b/collector/image.go index 16cd3304..e9d6fe38 100644 --- a/collector/image.go +++ b/collector/image.go @@ -53,8 +53,8 @@ func (c *imageCollector) Update(ch chan<- prometheus.Metric) error { c.info.desc = infoMetric ch <- c.info.mustNewConstMetric(1, infoValues...) - ch <- c.size.mustNewConstMetric(float64(rep.Size), rep.ID, rep.Repository, rep.Tag, rep.Digest) - ch <- c.created.mustNewConstMetric(float64(rep.Created), rep.ID, rep.Repository, rep.Tag, rep.Digest) + ch <- c.size.mustNewConstMetric(float64(rep.Size), rep.ID, rep.Repository, rep.Tag) + ch <- c.created.mustNewConstMetric(float64(rep.Created), rep.ID, rep.Repository, rep.Tag) } return nil