简体   繁体   English

黎曼到Influx时间戳

[英]Riemann to Influx timestamp

I use an erlang-riemann client 'katja' to send events to riemann0.2.10 which in turn forwards it to influxdb0.9.5. 我使用erlang-riemann客户端“ katja”将事件发送到riemann0.2.10,后者又将其转发到influxdb0.9.5。 When I send time in epoch upto the precision of a second(10 digits), it works fine. 当我将时间发送到秒级(10位数字)的精度时,它可以正常工作。 However, I need the timestamp to be more precise(milli/micro/nano seconds). 但是,我需要时间戳更加精确(毫秒/微秒/纳秒)。 When I forward more than 10 digits, riemann is unable to parse it. 当我转发10位数以上时,riemann无法解析它。 This could be an issue in the influx client for riemann(influx.clj line 176). 这可能是riemann的influx客户端中的问题(influx.clj第176行)。 Does anyone know a fix for this? 有人知道解决办法吗?

I was able to find out the fix. 我能够找出解决办法。 We modify riemann.config to override influx.clj's 'event->point-9' function. 我们修改riemann.config以覆盖influx.clj的'event-> point-9'函数。 The fix: https://github.com/riemann/riemann/pull/601/commits/dcdf91f122f382bc24ed8f2b6b5709aa29774872 修复程序: https : //github.com/riemann/riemann/pull/601/commits/dcdf91f122f382bc24ed8f2b6b5709aa29774872

Riemann have presently chosen to not support nanoseconds, the above fix should work till then. 黎曼(Riemann)目前选择不支持纳秒级,上述修复应在此之前有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM