-
Notifications
You must be signed in to change notification settings - Fork 106
Update megaclisas-status #128
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
Conversation
Added formatted output for influx. Improve output format consistency.
|
I really like your patch @mikee2 , I think it is a great addition. This is python 3.6.8 |
|
I replaced all occurrences of time.time_ns() with time.time() and it seemed to work.. Dunno if influxdb can handle the time in seconds with digits: |
|
time_ns is new in python 3.7 so it is normal that it failed with your version. You should be able to update. The issue here is with precision of the samples. If you read python documentation, time.time gives the result in seconds with a millisecond/microsecond precision depending on the system but, by default, influxdb expects samples in the nanosecond range so either you adjust the returned value to match nanoseconds or you will be getting skewed results. |
|
This makes a lot of sense. I am going to trying backporting your patch into 1.82 (I've been maintaining this on the side as elverde appears to very busy). |
|
How about this? this way, for people still < 3.7, the script would not fail albeit at the drawback that the time data would be inaccurate. |
|
How to pull? I am told that there are pending merges... |
Added formatted output for influxdb.
Improve output format consistency.