Skip to content

Commit

Permalink
fix missing number of targets in metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
eze-kiel committed Feb 5, 2021
1 parent d3dc4e5 commit 3855a9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scan/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ type Scanner struct {
func (s *Scanner) Start(c *config.Conf) error {

s.Logger.Info().Msgf("%d target(s) found in configuration file", len(c.Targets))
s.MetricsServ.NumOfTargets.Set(float64(len(c.Targets)))

// Check if shared values are set
if c.Timeout == 0 {
Expand Down

0 comments on commit 3855a9d

Please sign in to comment.