Config has invalid keys: telemetry

758 views
Skip to first unread message

Roman Rusakov

unread,
Apr 15, 2016, 5:41:32 AM4/15/16
to Consul
Help me please somebody, I'm going in circles :(

consul configtest -config-file=/etc/consul/consul.json -config-dir=/etc/consul/conf.d
Config validation failed: Error decoding '/etc/consul/consul.json': Config has invalid keys: telemetry

config:
{
  ...
  ...,
  "telemetry": {
    "statsite_address": "192.168.140.80:8125",
    "disable_hostname": false,
    "statsite_prefix": "test"
  }
}

What am I doing wrong? 

David Adams

unread,
Apr 15, 2016, 6:23:09 AM4/15/16
to consu...@googlegroups.com
Are you on the latest Consul? Looks like the `telemetry` block was only added in the most recent release: 0.6.4.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/consul/issues
IRC: #consul on Freenode
---
You received this message because you are subscribed to the Google Groups "Consul" group.
To unsubscribe from this group and stop receiving emails from it, send an email to consul-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/88146b67-fc48-41ec-a3b0-6a79ddf64143%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Roman Rusakov

unread,
Apr 15, 2016, 7:19:48 AM4/15/16
to Consul
Oh! Thank you! I have 0.6.3, will think about update then.

пятница, 15 апреля 2016 г., 12:23:09 UTC+2 пользователь David Adams написал:

Roman Rusakov

unread,
Apr 15, 2016, 7:22:49 AM4/15/16
to Consul
Could you point me how to acheve it with 0.6.3?


пятница, 15 апреля 2016 г., 12:23:09 UTC+2 пользователь David Adams написал:
Are you on the latest Consul? Looks like the `telemetry` block was only added in the most recent release: 0.6.4.

David Adams

unread,
Apr 15, 2016, 8:39:58 AM4/15/16
to consu...@googlegroups.com
I'm not entirely sure, but I think you can move the  statsite_address and statsite_prefix fields to the top level of the config document. I'm not sure if disable_hostname was part of <0.6.4 or not.


For more options, visit https://groups.google.com/d/optout.



--
David Adams | Systems Administrator

James Phillips

unread,
Apr 15, 2016, 10:12:15 AM4/15/16
to consu...@googlegroups.com
Indeed, the "disable_hostname" feature was added in 0.6.4, so that wasn't present in any form in previous versions.

Reply all
Reply to author
Forward
0 new messages