Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个简单的设置,它使用 filebeat 和 topbeat 将数据转发到 Logstash,后者进一步将其转发给 Riemann,Riemann 又将其发送到 InfluxDB 0.9。我使用 Logstash 将一个事件拆分为多个事件,所有这些事件都显示在 Riemann 日志上(具有相同的时间戳)。但是,这些拆分事件中只有一个到达了我的 InfluxDB。请问有什么帮助吗?
在 InfluxDB 0.9 中,一个点由测量名称、完整标签集和时间戳唯一标识。如果另一个点稍后到达,具有相同的测量名称、标签集和时间戳,它将默默地覆盖前一个点。这是故意行为。
由于您的时间戳是相同的并且您正在写入相同的测量值,因此您必须确保您的标签集对于您要记录的每个点都不同。即使是类似的东西fuzz=[1,2,3,4,5]也可以区分这些点。
fuzz=[1,2,3,4,5]