Skip to content

Commit

Permalink
more on validate
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis262626 committed Feb 12, 2023
1 parent 0d0507c commit 7eb406b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion receiver/awscloudwatchmetricsreceiver/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,8 @@ func (cfg *Config) Validate() error {
}

func (cfg *Config) ValidateMetrics() error {
return nil
if cfg.Metrics == nil {
return errNoMetricsConfigured
}
return cfg.Metrics.Names.Validate()
}

0 comments on commit 7eb406b

Please sign in to comment.