Skip to content

Commit

Permalink
Merge pull request #3 from vinted/fix/skip_only_failing_metrics
Browse files Browse the repository at this point in the history
graphql-exporter: skip only failed metrics
  • Loading branch information
Seitanas authored Oct 11, 2023
2 parents 9d6c785 + 20b4428 commit 1759b50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/prometheus/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func getMetrics() ([]Metric, error) {
metric.Labels, error_in_hash = buildLabelData(val, m)
if error_in_hash != nil {
log.Printf("Got error: %s", error_in_hash)
break
continue
}
metric.Name = metric_prepend + strings.Replace(m.Value, ",", "_", -1)
metrics = append(metrics, metric)
Expand Down

0 comments on commit 1759b50

Please sign in to comment.