Skip to content

Commit

Permalink
fix inconsistent label cardinality on image scrap
Browse files Browse the repository at this point in the history
Signed-off-by: Navid Yaghoobi <[email protected]>
  • Loading branch information
navidys committed Feb 3, 2024
1 parent 7f0ad08 commit b12f129
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions collector/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b12f129

Please sign in to comment.