-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
Hi,
First: thanks for that nice package !
I wanted to try telegraf and that's what I've got:
./telegraf -config telegraf.conf
2017-10-06T18:14:38Z I! Starting Telegraf v1.5.0~59bb31e7
2017-10-06T18:14:38Z I! Loaded outputs: influxdb
2017-10-06T18:14:38Z I! Loaded inputs: inputs.influxdb
2017-10-06T18:14:38Z I! Tags enabled: host=iidor.dhcp.lyon.intranet
2017-10-06T18:14:38Z I! Agent Config: Interval:10s, Quiet:false, Hostname:"iidor.dhcp.lyon.intranet", Flush Interval:10s
2017-10-06T18:14:40Z E! Error in plugin [inputs.influxdb]: [url=http://127.0.0.1:9090/debug/vars]: invalid character '<' looking for beginning of value
And yes, http://127.0.0.1:9090/debug/vars returns a 404 while graph are correctly displayed in grafana at http://127.0.0.1:9090
This is the config I've got:
# Global tags can be specified here in key="value" format.
[global_tags]
# dc = "us-east-1" # will tag all metrics with dc=us-east-1
# rack = "1a"
## Environment variables can be used as tags, and throughout the config file
# user = "$USER"
# Configuration for telegraf agent
[agent]
interval = "10s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = ""
debug = false
quiet = false
logfile = ""
hostname = ""
omit_hostname = false
[[inputs.influxdb]]
urls = ["http://127.0.0.1:9090/debug/vars"]
[[outputs.influxdb]]
urls = ["http://127.0.0.1:8086"] # required
database = "stats" # required
timeout = "5s"
My package includes everything at startup:
package ogle
import (
"fmt"
"time"
metrics "github.com/tevjef/go-runtime-metrics"
_ "github.com/tevjef/go-runtime-metrics/expvar"
)
func init() {
metrics.DefaultConfig.CollectionInterval = time.Second
if err := metrics.RunCollector(metrics.DefaultConfig); err != nil {
fmt.Println(err)
}
}
One more time, graphs are ok.
Can you tell me what I'm doing wrong ?
Metadata
Metadata
Assignees
Labels
No labels