Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

statsd - protocol not a supported config field #4145

Closed
tshchensek opened this issue May 14, 2018 · 4 comments
Closed

statsd - protocol not a supported config field #4145

tshchensek opened this issue May 14, 2018 · 4 comments

Comments

@tshchensek
Copy link

Hi,

I'm running into an error where I can't specify protocol in statsd.conf plugin. Fortunately, for my use case, the default UDP is what I need, but that still goes against the documentation: https://github.com/influxdata/telegraf/tree/master/plugins/inputs/statsd#configuration. Is it a version issue?

Thanks

Relevant telegraf.conf:

$ cat /etc/telegraf/telegraf.d/statsd.conf 
[[inputs.statsd]]
  allowed_pending_messages = 1000
  delete_counters = true
  delete_gauges = true
  delete_sets = true
  delete_timings = true
  metric_separator = "_"
  parse_data_dog_tags = false
  percentile_limit = 1000
  percentiles = [50, 90, 95, 99]
  protocol = "udp"
  service_address = "localhost:8125"

System info:

$ uname -a
Linux 4.4.0-64-generic #85-Ubuntu SMP Mon Feb 20 11:50:30 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$ telegraf -version
Telegraf v1.1.1 (git: release-1.1.0 94de9dc)

Steps to reproduce:

  1. sudo service telegraf start

Expected behavior:

sudo service telegraf status returns with "running"

Actual behavior:

sudo service telegraf status returns with

May 14 18:44:02 <hostname> systemd[1]: telegraf.service: Main process exited, code=exited, status=1/FAILURE
May 14 18:44:02 <hostname> systemd[1]: telegraf.service: Unit entered failed state.
May 14 18:44:02 <hostname> systemd[1]: telegraf.service: Failed with result 'exit-code'.
May 14 18:44:02 <hostname> systemd[1]: telegraf.service: Service hold-off time over, scheduling restart.
May 14 18:44:02 <hostname> systemd[1]: Stopped The plugin-driven server agent for reporting metrics into InfluxDB.
May 14 18:44:02 <hostname> systemd[1]: telegraf.service: Start request repeated too quickly.
May 14 18:44:02 <hostname> systemd[1]: Failed to start The plugin-driven server agent for reporting metrics into InfluxDB.

Additional info:

Relevant error from logs:

May 14 18:44:02 <hostname> telegraf[51214]: 2018/05/14 18:44:02 E! Error parsing /etc/telegraf/telegraf.d/statsd.conf, line 11: field corresponding to `protocol' is not defined in `*statsd.Statsd'
@danielnelson
Copy link
Contributor

This option was added in a later version of Telegraf (I believe 1.4) than you are using.

@tshchensek
Copy link
Author

@danielnelson, thanks. How can I find the current version from the github repo? Also, do you know in which github revision I can find documentation that pertains to 1.1?

@danielnelson
Copy link
Contributor

Your best bet is to look at the release tags, you can follow links from this page to get to the tree for that version, or just go to URLs like:

@tshchensek
Copy link
Author

Nice, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants