1

I'm trying to run scollector on my windows server and send collected data into bosun server. I'm not running any OpenTSDB server, but I read in scollectors documentation that it can send metadata into OpenTSDB or bosun.

Unlike tcollector, scollector is a single binary where all collectors are compiled into scollector itself. scollector supports external collectors, but your goal should be to use those temporarily until the go version is written or the target system send data directly to OpenTSDB or Bosun. scollector has native collectors for Linux, Darwin, and Windows and can pull data from other systems such as AWS, SNMP, and vSphere.

I'm running this in command line:

"scollector-windows-amd64.exe" -h external-server-name:8070

it gives me:

2016/03/08 10:06:46 info: main.go:187: OpenTSDB host: external-server-name:8070
2016/03/08 10:06:47 error: queue.go:87: 404 Not Found
2016/03/08 10:06:47 error: queue.go:93: 404 page not found
2016/03/08 10:06:47 info: queue.go:103: restored 4, sleeping 5s

When I'm navigating into external-server-name:8070 I can see bosun dashboard page. How can I tell scollector that it should send data to bosun server and skip sending it to OpenTSDB. Can I specify that -h option refers to bosun server?

4

1 回答 1

4

您仍然需要 bosun 的后端。目前该配置支持 tsdbHost、graphiteHost 或 influxHost。当您将数据发送到http://external-server-name:8070/api/put时,它只会将其转发到http://tsdbHost/api/put

我认为 Graphite 不支持 opentsdb put 格式,因此您可能无法使用 scollector 将指标发送到 Graphite。Influx 支持 opentsdb 协议,因此您可以尝试将 scollector 指向 tsdbrelay 实例,该实例指标转发到 influxdb opentsdb 端口并将副本发送到 bosun 以进行索引:

#Listen on 5252 for metrics, forward to local influxdb on 4242
#and send to local Bosun on 8070 so it can index the tags/metrics
/opt/tsdbrelay/tsdbrelay -b localhost:8070 -t localhost:4242 -l 0.0.0.0:5252
于 2016-03-08T17:51:03.403 回答