-
Couldn't load subscription status.
- Fork 104
Open
Description
With dry-run feature we will can to put ssl_exporter configuration and perform syntax test (exporter can run with this YAML) before restart with new configuration (useful for IaC's)
For example, this YAML seems legit
---
- modules:
https:
prober: httpsBut
[root@mon ssl_exporter]# ./ssl_exporter --log.level=debug --web.listen-address=":9222" --config.file=ssl.yml
ts=2022-08-09T12:07:29.167Z caller=ssl_exporter.go:142 level=error msg="error parsing config file: yaml: unmarshal errors:\n line 2: cannot unmarshal !!seq into config.Config"
[root@mon ssl_exporter]# echo $?
1Will be nice if we can check it, like ./ssl_exporter --config.file=/path/to/file.yaml --dry-run and check for non-zero exit-code
Metadata
Metadata
Assignees
Labels
No labels