Skip to content

Commit

Permalink
validate underlying collector config
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Apr 11, 2022
1 parent d0c126a commit 7c81e04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions exporter/collector/googlemanagedprometheus/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,8 @@ func (cfg *Config) Validate() error {
if err := cfg.ExporterSettings.Validate(); err != nil {
return fmt.Errorf("exporter settings are invalid :%w", err)
}
if err := collector.ValidateConfig(cfg.toCollectorConfig()); err != nil {
return fmt.Errorf("exporter settings are invalid :%w", err)
}
return nil
}

0 comments on commit 7c81e04

Please sign in to comment.