Fix whitespace

This commit is contained in:
Mark Rushakoff 2015-12-07 23:27:40 -08:00
parent b267c218e2
commit 78e73ed78c
2 changed files with 21 additions and 21 deletions

View File

@ -6,11 +6,11 @@ With a configuration of:
```toml ```toml
[[plugins.influxdbjson]] [[plugins.influxdbjson]]
name = "produce" name = "produce"
urls = [ urls = [
"http://127.0.0.1:8086/debug/vars", "http://127.0.0.1:8086/debug/vars",
"http://192.168.2.1:8086/debug/vars" "http://192.168.2.1:8086/debug/vars"
] ]
``` ```
And if 127.0.0.1 responds with this JSON: And if 127.0.0.1 responds with this JSON:

View File

@ -21,27 +21,27 @@ func (*InfluxDBJSON) Description() string {
func (*InfluxDBJSON) SampleConfig() string { func (*InfluxDBJSON) SampleConfig() string {
return ` 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: # monitoring a URL which responded with a JSON object formatted like this:
# #
# { # {
# "(ignored_key)": { # "(ignored_key)": {
# "name": "connections", # "name": "connections",
# "tags": { # "tags": {
# "host": "foo" # "host": "foo"
# }, # },
# "values": { # "values": {
# "avg_ms": 1.234, # "avg_ms": 1.234,
# } # }
# } # }
# } # }
# #
# with configuration of { name = "server", urls = ["http://127.0.0.1:8086/x"] } # with configuration of { name = "server", urls = ["http://127.0.0.1:8086/x"] }
# #
# Would result in this recorded metric: # Would result in this recorded metric:
# #
# influxdbjson_server_connections,influxdbjson_url='http://127.0.0.1:8086/x',host='foo' avg_ms=1.234 # influxdbjson_server_connections,influxdbjson_url='http://127.0.0.1:8086/x',host='foo' avg_ms=1.234
[[plugins.influxdbjson]] [[plugins.influxdbjson]]
# Name to use for measurement # Name to use for measurement
name = "influxdb" name = "influxdb"