Skip to content

Commit

Permalink
Merge pull request #290 from snyk/fix/log-scrape-errors
Browse files Browse the repository at this point in the history
fix: log scrape errors for services
  • Loading branch information
love-bhardwaj authored Apr 20, 2023
2 parents 324d44d + f4bf316 commit 4c6fcc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vervet-underground/internal/scraper/scraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ func (s *Scraper) Run(ctx context.Context) error {
err := s.scrape(ctx, scrapeTime, svc)
if err != nil {
metrics.scrapeError.WithLabelValues(svc.base).Inc()
log.Error().Str("service", svc.name).Err(err).Msg("error scraping service")
}
log.Debug().Str("service", svc.name).Msg("finished scrape")
errCh <- err
Expand Down

0 comments on commit 4c6fcc3

Please sign in to comment.