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.
For more options, visit https://groups.google.com/d/optout.