From 30129284529a1ae8d87ea708e1e010331fe9b83f Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Thu, 12 Nov 2015 09:52:10 -0700 Subject: [PATCH] Fix config file tab indentation --- plugins/httpjson/httpjson.go | 4 ++-- plugins/jolokia/jolokia.go | 26 +++++++++++++------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/plugins/httpjson/httpjson.go b/plugins/httpjson/httpjson.go index b5913e2e1..aa8a0d443 100644 --- a/plugins/httpjson/httpjson.go +++ b/plugins/httpjson/httpjson.go @@ -64,8 +64,8 @@ var sampleConfig = ` # List of tag names to extract from top-level of JSON server response # tag_keys = [ - # "my_tag_1", - # "my_tag_2" + # "my_tag_1", + # "my_tag_2" # ] # HTTP parameters (all values must be strings) diff --git a/plugins/jolokia/jolokia.go b/plugins/jolokia/jolokia.go index 1ece12cf1..0527d9e70 100644 --- a/plugins/jolokia/jolokia.go +++ b/plugins/jolokia/jolokia.go @@ -47,22 +47,22 @@ type Jolokia struct { func (j *Jolokia) SampleConfig() string { return ` - # This is the context root used to compose the jolokia url + # This is the context root used to compose the jolokia url context = "/jolokia/read" - # Tags added to each measurements - [jolokia.tags] - group = "as" + # Tags added to each measurements + [jolokia.tags] + group = "as" - # List of servers exposing jolokia read service + # List of servers exposing jolokia read service [[jolokia.servers]] name = "stable" host = "192.168.103.2" port = "8180" - # List of metrics collected on above servers - # Each metric consists in a name, a jmx path and either a pass or drop slice attributes - # This collect all heap memory usage metrics + # List of metrics collected on above servers + # Each metric consists in a name, a jmx path and either a pass or drop slice attributes + # This collect all heap memory usage metrics [[jolokia.metrics]] name = "heap_memory_usage" jmx = "/java.lang:type=Memory/HeapMemoryUsage" @@ -75,14 +75,14 @@ func (j *Jolokia) SampleConfig() string { drop = [ "committed" ] - # This passes only DaemonThreadCount and ThreadCount + # This passes only DaemonThreadCount and ThreadCount [[jolokia.metrics]] - name = "heap_threads" + name = "heap_threads" jmx = "/java.lang:type=Threading" pass = [ - "DaemonThreadCount", - "ThreadCount" - ] + "DaemonThreadCount", + "ThreadCount" + ] ` }