Skip to content

Commit

Permalink
Merge pull request #6 from rashmichandrashekar/rashmi/pr-comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmichandrashekar authored Sep 9, 2021
2 parents fd262e9 + fff66e3 commit f47c4ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions receiver/prometheusreceiver/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func checkTLSConfig(tlsConfig commonconfig.TLSConfig) error {
return nil
}

// Method to exercise the prometheus file discovery behaviour to ensure there are no errors
// Method to exercise the prometheus file discovery behavior to ensure there are no errors
// - reference https://github.com/prometheus/prometheus/blob/c0c22ed04200a8d24d1d5719f605c85710f0d008/discovery/file/file.go#L372
func checkSDFile(filename string) error {
fd, err := os.Open(filename)
Expand Down Expand Up @@ -195,7 +195,7 @@ func (cfg *Config) Validate() error {
}
continue
}
return fmt.Errorf("file %q for file_sd in scrape job %q does not exist\n", file, sc.JobName)
return fmt.Errorf("file %q for file_sd in scrape job %q does not exist", file, sc.JobName)
}
}
}
Expand Down

0 comments on commit f47c4ff

Please sign in to comment.