From 6c075c4346c795d4bec3505ec031fcc4d2766c46 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Thu, 28 Dec 2017 16:10:00 -0800 Subject: [PATCH] Fix name error in jolokia2_agent sample config (#3624) --- etc/telegraf.conf | 4 ++-- plugins/inputs/jolokia2/jolokia_agent.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/telegraf.conf b/etc/telegraf.conf index 4c751d3e4..438a32771 100644 --- a/etc/telegraf.conf +++ b/etc/telegraf.conf @@ -1391,7 +1391,7 @@ # ## By default, some of the fields are renamed from what haproxy calls them. # ## Setting this option to true results in the plugin keeping the original # ## field names. -# # keep_field_names = true +# # keep_field_names = false # # ## Optional SSL Config # # ssl_ca = "/etc/telegraf/ca.pem" @@ -1661,7 +1661,7 @@ # # insecure_skip_verify = false # # ## Add metrics to read -# [[inputs.jolokia2.metric]] +# [[inputs.jolokia2_agent.metric]] # name = "java_runtime" # mbean = "java.lang:type=Runtime" # paths = ["Uptime"] diff --git a/plugins/inputs/jolokia2/jolokia_agent.go b/plugins/inputs/jolokia2/jolokia_agent.go index ff37fdaf6..1042da9d9 100644 --- a/plugins/inputs/jolokia2/jolokia_agent.go +++ b/plugins/inputs/jolokia2/jolokia_agent.go @@ -46,7 +46,7 @@ func (ja *JolokiaAgent) SampleConfig() string { # insecure_skip_verify = false ## Add metrics to read - [[inputs.jolokia2.metric]] + [[inputs.jolokia2_agent.metric]] name = "java_runtime" mbean = "java.lang:type=Runtime" paths = ["Uptime"]