InfluxDB does not store multiple points with the same metadata and the same
timestamp. Perhaps your timestamp precision is too low to guarantee
uniqueness?

https://docs.influxdata.com/influxdb/v0.13/troubleshooting/frequently_encountered_issues/#writing-duplicate-points

On Tue, Sep 6, 2016 at 12:46 AM, Abhineet Mishra <
[email protected]> wrote:

> Hi All,
>
> I am using Riemann-NodeJS client by PerezD for sending different metrics
> of nodejs api for monitoring purpose. The metrics are reaching riemann and
> riemann being a router is pushing to influxdb.
>
> I have observed that the metrics are getting inserted in the db with some
> delay and not as per the events received by riemann.
> For Example: I created a counter and hit the api 9 times in 3 seconds. My
> counter was set to 9 but in the db I could see only 3 requests made.
>
> The clojure code from my riemann.config file which is establishing the
> connection to influxdb is shown below:
>
>
> (logging/init {:file "/var/log/riemann/riemann.log"})
>
> (let [host "0.0.0.0"]
>   (tcp-server {:host host})
>   (udp-server {:host host})
>   (ws-server  {:host host}))
>
> (periodically-expire 5)
>
> (def influx {
>         :version  :0.9
>         :host     "localhost"
>         :port     8086
>         :username "root"
>         :password "root"
>         :db       "riemann"
>     }
> )
>
> (def influxBatchSender
>   (batch 100 1/10
>          (async-queue! :agg {:queue-size 1000
>                              :core-pool-size 1
>                              :max-pool-size 4
>                              :keep-alive-time 60000}
>                              (influxdb influx))))
>
> (let [index (index)]
>   (streams
>    influxBatchSender
>    #(info %)
>   )
> )
>
> How can I get the correct data in the influxdb without any loss?
> Thanks in advance.
>
> Regards,
> Abhineet Mishra
>
> --
> Remember to include the InfluxDB version number with all issue reports
> ---
> You received this message because you are subscribed to the Google Groups
> "InfluxDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/influxdb.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/influxdb/2afe1d02-836e-4776-8ea9-6bf575c84e4c%40googlegroups.com
> <https://groups.google.com/d/msgid/influxdb/2afe1d02-836e-4776-8ea9-6bf575c84e4c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Sean Beckett
Director of Support and Professional Services
InfluxDB

-- 
Remember to include the InfluxDB version number with all issue reports
--- 
You received this message because you are subscribed to the Google Groups 
"InfluxDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/influxdb/CALGqCvPEGiR%3Dj17%3Dwiop%3D9Ve%3DpSk5jQy%2BTo9O_uDsUKcDLzx2g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to