Skip to content

Commit

Permalink
Merge pull request #180 from navidys/image_digest
Browse files Browse the repository at this point in the history
fix inconsistent label cardinality on image scrap
  • Loading branch information
navidys authored Feb 3, 2024
2 parents 7f0ad08 + b12f129 commit c52dd9a
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 c52dd9a

Please sign in to comment.