raintank / statsdaemon

Metrics aggregation daemon like statsd, in Go and with a bunch of extra features.
The Unlicense
327 stars 30 forks source link

Unable to assign config file #24

Closed pratikp09 closed 7 years ago

pratikp09 commented 7 years ago

Hi

I had a statsdaemon running on my server 2 days back. It was having issues sending metrics so I decided to reinstall it. But ever since I trying to assign a config file to it, I am getting the below error

Could not read config file: /tmp/statsdaemon/statsdaemon.ini is not a valid TOML file. See https://github.com/mojombo/toml

I see a couple of commits made yesterday. Is anyone seeing the same issue

ehlerst commented 7 years ago

New config lines are the cause just comment them.

#prefix_m20_rates = ""
#prefix_m20_counters = ""
#prefix_m20_timers = ""
#prefix_m20_gauges = ""
ehlerst commented 7 years ago

So the issue seems to be the numbers in the key.

put this in the ini file prefix_m20 = "dasf"

../build/statsdaemon -config_file statsdaemon.ini  -debug
Could not read config file: **prefix_m** is not a valid config setting

So for some reason the numbers are getting lopped off.

Dieterbe commented 7 years ago

looks like there was a bug in the toml library we're using. As per commit above, it should be fixed now. please confirm.

Dieterbe commented 7 years ago

confirmed solved.