Skip to content

Commit

Permalink
fix PromtailInputConfig struct tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mar4uk committed Feb 6, 2023
1 parent 0400ccb commit 076b02a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions receiver/promtailreceiver/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ func NewConfigWithID(operatorID string) *Config {
}

type PromtailInputConfig struct {
PositionsConfig positions.Config `mapstructure:"positions,omitempty" yaml:"positions,omitempty"`
ScrapeConfig []scrapeconfig.Config `mapstructure:"scrape_configs,omitempty" yaml:"scrape_configs,omitempty"`
TargetConfig file.Config `mapstructure:"target_config,omitempty" yaml:"target_config,omitempty"`
PositionsConfig positions.Config `mapstructure:"-" yaml:"positions,omitempty"`
ScrapeConfig []scrapeconfig.Config `mapstructure:"-" yaml:"scrape_configs,omitempty"`
TargetConfig file.Config `mapstructure:"-" yaml:"target_config,omitempty"`
}

type Config struct {
Expand Down

0 comments on commit 076b02a

Please sign in to comment.