我可以通过使用JavaScript StatsD将时间戳输入以发送数据到Graphite吗?我需要绘制旧的数据。
statsd
进行处理的好处是什么? - eugene看起来有一种方法可以通过STATSD发送原始数据,但它不会被聚合:
def send(self, subname, value, timestamp=None):
'''Send the data to statsd via self.connection
:keyword subname: The subname to report the data to (appended to the
client name)
:keyword value: The raw value to send
'''
name = self._get_name(self.name, subname)
return statsd.Client._send(self, {name: '%s|r|%s' % (value, ts)})
see: http://python-statsd.readthedocs.org/en/latest/_modules/statsd/raw.html https://github.com/chuyskywalker/statsd/blob/master/README.md
echo "stats.gauges.asdf.qwer.zxc 0.55
date +%s" | nc -q0 100.100.100.100 2003
。阅读此处:http://graphite.readthedocs.org/en/1.0/feeding-carbon.html - Bob