-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
21 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -183,8 +183,8 @@ type WalConfig struct { | |
} | ||
|
||
type InputPlugins struct { | ||
Graphite GraphiteConfig `toml:"graphite"` | ||
UdpInput UdpInputConfig `toml:"udp"` | ||
Graphite GraphiteConfig `toml:"graphite"` | ||
UdpInput UdpInputConfig `toml:"udp"` | ||
UdpServersInput []UdpInputConfig `toml:"udp_servers"` | ||
} | ||
|
||
|
@@ -331,10 +331,7 @@ func parseTomlConfiguration(filename string) (*Configuration, error) { | |
GraphiteDatabase: tomlConfiguration.InputPlugins.Graphite.Database, | ||
GraphiteUdpEnabled: tomlConfiguration.InputPlugins.Graphite.UdpEnabled, | ||
|
||
UdpInputEnabled: tomlConfiguration.InputPlugins.UdpInput.Enabled, | ||
UdpInputPort: tomlConfiguration.InputPlugins.UdpInput.Port, | ||
UdpInputDatabase: tomlConfiguration.InputPlugins.UdpInput.Database, | ||
UdpServers: tomlConfiguration.InputPlugins.UdpServersInput, | ||
UdpServers: tomlConfiguration.InputPlugins.UdpServersInput, | ||
|
||
RaftServerPort: tomlConfiguration.Raft.Port, | ||
RaftTimeout: tomlConfiguration.Raft.Timeout, | ||
|
@@ -369,6 +366,12 @@ func parseTomlConfiguration(filename string) (*Configuration, error) { | |
ConcurrentShardQueryLimit: defaultConcurrentShardQueryLimit, | ||
} | ||
|
||
config.UdpServers = append(config.UdpServers, UdpInputConfig{ | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
tpitale
Contributor
|
||
Enabled: tomlConfiguration.InputPlugins.UdpInput.Enabled, | ||
Database: tomlConfiguration.InputPlugins.UdpInput.Database, | ||
Port: tomlConfiguration.InputPlugins.UdpInput.Port, | ||
}) | ||
|
||
if config.LocalStoreWriteBufferSize == 0 { | ||
config.LocalStoreWriteBufferSize = 1000 | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Coooool, didn't know about
append
, yet.