Skip to content

Commit

Permalink
Merge pull request #5 from rashmichandrashekar/rashmi/pr-comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmichandrashekar authored Sep 8, 2021
2 parents fe3b4f2 + f5e999d commit fd262e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion receiver/prometheusreceiver/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (cfg *Config) Validate() error {
}
continue
}
fmt.Printf("WARNING: 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\n", file, sc.JobName)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion receiver/prometheusreceiver/testdata/config_sd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ receivers:
- job_name: file
file_sd_configs:
- files:
- 'dummy.json'
- './testdata/dummy.json'
- job_name: k8s
kubernetes_sd_configs:
- role: node
Expand Down
1 change: 1 addition & 0 deletions receiver/prometheusreceiver/testdata/dummy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]

0 comments on commit fd262e9

Please sign in to comment.