savoirfairelinux / mod-influxdb

Shinken module for exporting data to InfluxDB
GNU Affero General Public License v3.0
13 stars 11 forks source link

Adjust timestamps to be in nano-seconds #35

Open jesseorr opened 8 years ago

jesseorr commented 8 years ago

Statically adjusts timestamps to be in nano seconds by multiplying the timestamp by 1000000000.

A configuration option might be better suited which would flag the operation for execution.

lestercheung commented 8 years ago

Thanks! I was going to give that a go but you beat me to it! The patch fixed the timestamps in the metric_* series (measurements?) but not the EVENT, HOST_STATE and SERVICE_STATE.

This may work better: https://github.com/lestercheung/mod-influxdb/commit/570a17d4d65f38046657c902aea4032af666f5dc

cyberflow commented 8 years ago

@lestercheung could you fix conflict and test for your code? It's very needed fix for working with influxdb correctly. Thanks.