Fix name error in jolokia2_agent sample config (#3624)
This commit is contained in:
parent
7f3f556b39
commit
6c075c4346
|
@ -1391,7 +1391,7 @@
|
||||||
# ## By default, some of the fields are renamed from what haproxy calls them.
|
# ## 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
|
# ## Setting this option to true results in the plugin keeping the original
|
||||||
# ## field names.
|
# ## field names.
|
||||||
# # keep_field_names = true
|
# # keep_field_names = false
|
||||||
#
|
#
|
||||||
# ## Optional SSL Config
|
# ## Optional SSL Config
|
||||||
# # ssl_ca = "/etc/telegraf/ca.pem"
|
# # ssl_ca = "/etc/telegraf/ca.pem"
|
||||||
|
@ -1661,7 +1661,7 @@
|
||||||
# # insecure_skip_verify = false
|
# # insecure_skip_verify = false
|
||||||
#
|
#
|
||||||
# ## Add metrics to read
|
# ## Add metrics to read
|
||||||
# [[inputs.jolokia2.metric]]
|
# [[inputs.jolokia2_agent.metric]]
|
||||||
# name = "java_runtime"
|
# name = "java_runtime"
|
||||||
# mbean = "java.lang:type=Runtime"
|
# mbean = "java.lang:type=Runtime"
|
||||||
# paths = ["Uptime"]
|
# paths = ["Uptime"]
|
||||||
|
|
|
@ -46,7 +46,7 @@ func (ja *JolokiaAgent) SampleConfig() string {
|
||||||
# insecure_skip_verify = false
|
# insecure_skip_verify = false
|
||||||
|
|
||||||
## Add metrics to read
|
## Add metrics to read
|
||||||
[[inputs.jolokia2.metric]]
|
[[inputs.jolokia2_agent.metric]]
|
||||||
name = "java_runtime"
|
name = "java_runtime"
|
||||||
mbean = "java.lang:type=Runtime"
|
mbean = "java.lang:type=Runtime"
|
||||||
paths = ["Uptime"]
|
paths = ["Uptime"]
|
||||||
|
|
Loading…
Reference in New Issue