Using this documentation ,我知道我可以像这样记录一次性值 -
python /opt/aerospike/bin/asgraphite -l 'latency:' --start -g <graphite_host> -p <graphite_port>
哪里以及将是我们已经运行的 Graphite 服务器的详细信息。
但是,如何指定要记录的 namespace ? Graphite 服务器已经有一些正在记录数据的命名空间。
此外,由此类命令启动的守护进程是否支持按预设时间间隔进行日志记录?或者我需要为此设置一个 cron 吗?
最佳答案
可以在此处找到 asgraphite python 脚本的更新版本和文档。
https://github.com/aerospike/aerospike-graphite
您可以使用 --interval 指定向 Graphite 服务器报告预设间隔。
--interval GRAPHITE_INTERVAL How often metrics are sent to graphite (seconds)
您还可以使用以下选项获取所有命名空间和集合(我不相信您只能指定一个命名空间,所有命名空间都会被报告。:
-n, --namespace Get all namespace statistics
-s, --sets Gather set based statistics
您还可以选择使用前缀。默认前缀是:instances.aerospike。
--prefix GRAPHITE_PREFIX Prefix used when sending metrics to Graphite server (default: instances.aerospike.)
关于graphite - 如何在现有 Graphite 服务器上使用 asgraphite 写入时间序列数据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45184885/