mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-19 15:30:17 +00:00
app/vmagent: check for error returned from flag.Set
This commit is contained in:
parent
b59e089ac7
commit
dcbdc009f5
1 changed files with 3 additions and 1 deletions
|
@ -59,7 +59,9 @@ func main() {
|
||||||
logger.Init()
|
logger.Init()
|
||||||
|
|
||||||
if *dryRun {
|
if *dryRun {
|
||||||
flag.Set("promscrape.config.strictParse", "true")
|
if err := flag.Set("promscrape.config.strictParse", "true"); err != nil {
|
||||||
|
logger.Panicf("BUG: cannot set promscrape.config.strictParse=true: %s", err)
|
||||||
|
}
|
||||||
if err := remotewrite.CheckRelabelConfigs(); err != nil {
|
if err := remotewrite.CheckRelabelConfigs(); err != nil {
|
||||||
logger.Fatalf("error when checking relabel configs: %s", err)
|
logger.Fatalf("error when checking relabel configs: %s", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue