Skip to content

Commit bb68681

Browse files
Adding missing mapstructure in config. (#165)
1 parent ccb8046 commit bb68681

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/config/config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type Config struct {
99
General struct {
1010
LogLevel int `mapstructure:"log_level"`
1111
LogToSyslog bool `mapstructure:"log_to_syslog"`
12-
}
12+
} `mapstructure:"general"`
1313

1414
Filters struct {
1515
NetIDs []string `mapstructure:"net_ids"`
@@ -109,8 +109,8 @@ type Config struct {
109109
Prometheus struct {
110110
EndpointEnabled bool `mapstructure:"endpoint_enabled"`
111111
Bind string `mapstructure:"bind"`
112-
}
113-
}
112+
} `mapstructure:"prometheus"`
113+
} `mapstructure:"metrics"`
114114

115115
MetaData struct {
116116
Static map[string]string `mapstructure:"static"`

0 commit comments

Comments
 (0)