Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nanosecond timestamps? #34

Open
lestercheung opened this issue Mar 21, 2016 · 2 comments
Open

nanosecond timestamps? #34

lestercheung opened this issue Mar 21, 2016 · 2 comments

Comments

@lestercheung
Copy link

Shinken/influxdb/grafana newbie here.

I'm trying to get the combo to work but noticed that data ingested into influxdb have timestamps in seconds instead of nanoseconds and it's probably the reason I couldn't get grafana to plot anything useful for the metric_* series.

Running:

  • influxdb-0.10.3-1.x86_64
  • grafana-2.6.0-1.x86_64
  • Shinken 2.4.3
  • mod-influxdb installed via shinken CLI.
@jesseorr
Copy link

Hi! I am actually trying the exact same thing.

I think if we can modify the module.py properly we can append the precision in seconds, so that InfluxDB recognizes the timestamp properly.

http://stackoverflow.com/questions/33950054/post-simple-value-in-influxdb

@jesseorr
Copy link

I modified the module.py file with adjustments to the timestamps that allowed my data to populate properly within InfluxDB.

#35

Here's the data before and after the adjustments:
time value
1970-01-01T00:00:01.45858154Z 61.709
1970-01-01T00:00:01.458581544Z 0.172
2016-03-21T19:07:55Z 0.169
2016-03-21T19:08:00Z 0.153
2016-03-21T19:09:12Z 19.449
2016-03-21T19:10:17Z 61.695
2016-03-21T19:12:39Z 0.185
2016-03-21T19:14:46Z 61.728

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants