diff --git a/plugins/influxdbjson/README.md b/plugins/influxdbjson/README.md index fc292a0dc..e4c4bf118 100644 --- a/plugins/influxdbjson/README.md +++ b/plugins/influxdbjson/README.md @@ -6,11 +6,11 @@ With a configuration of: ```toml [[plugins.influxdbjson]] - name = "produce" - urls = [ - "http://127.0.0.1:8086/debug/vars", - "http://192.168.2.1:8086/debug/vars" - ] + name = "produce" + urls = [ + "http://127.0.0.1:8086/debug/vars", + "http://192.168.2.1:8086/debug/vars" + ] ``` And if 127.0.0.1 responds with this JSON: diff --git a/plugins/influxdbjson/influxdb_json.go b/plugins/influxdbjson/influxdb_json.go index f8837cd1d..f0066ab78 100644 --- a/plugins/influxdbjson/influxdb_json.go +++ b/plugins/influxdbjson/influxdb_json.go @@ -21,27 +21,27 @@ func (*InfluxDBJSON) Description() string { func (*InfluxDBJSON) SampleConfig() string { return ` - # Reads InfluxDB-formatted JSON from given URLs. For example, + # Reads InfluxDB-formatted JSON from given URLs. For example, # monitoring a URL which responded with a JSON object formatted like this: # - # { - # "(ignored_key)": { - # "name": "connections", - # "tags": { - # "host": "foo" - # }, - # "values": { - # "avg_ms": 1.234, - # } - # } - # } - # + # { + # "(ignored_key)": { + # "name": "connections", + # "tags": { + # "host": "foo" + # }, + # "values": { + # "avg_ms": 1.234, + # } + # } + # } + # # with configuration of { name = "server", urls = ["http://127.0.0.1:8086/x"] } - # + # # Would result in this recorded metric: # - # influxdbjson_server_connections,influxdbjson_url='http://127.0.0.1:8086/x',host='foo' avg_ms=1.234 - [[plugins.influxdbjson]] + # influxdbjson_server_connections,influxdbjson_url='http://127.0.0.1:8086/x',host='foo' avg_ms=1.234 + [[plugins.influxdbjson]] # Name to use for measurement name = "influxdb"