Skip to content

Commit

Permalink
Fix: Exporter could report success eventhough metrics are missing (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
czenker authored Mar 23, 2021
1 parent 7859625 commit 36511d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion harbor_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func (h *HarborExporter) Collect(outCh chan<- prometheus.Metric) {
ok = h.collectReplicationsMetric(samplesCh) && ok
}
if collectMetricsGroup[metricsGroupSystemInfo] {
ok = h.collectSystemMetric(samplesCh)
ok = h.collectSystemMetric(samplesCh) && ok
}
if collectMetricsGroup[metricsGroupArtifactsInfo] {
ok = h.collectArtifactsMetric(samplesCh) && ok
Expand Down

0 comments on commit 36511d2

Please sign in to comment.