graphite - 如何在现有 Graphite 服务器上使用 asgraphite 写入时间序列数据?

标签 graphite aerospike asgraphite

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/

相关文章:

sql - 无法通过 aql 将单引号文本作为 aerospike 中的键插入

performance - 如何在两个版本不同的Aerospike群集3.8和3.14之间比较服务器端的延迟和超时?

graphite - 如何让 Graphite 简单地计算计数器,而不是对它们进行计时

graphite - 显示 Grafana 中的总点数

javascript - Node.js - 如何生成时间戳 unix 纪元格式?

ruby - 如何使用正则表达式从 Graphite 中获取数据?

python - Aerospike Python 客户端。 UDF 模块用于统计记录。无法注册模块

aerospike - 在 mac 上安装 aerospike 客户端时出错