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

Export tool data point timestamp is wrong #684

Open
merahland opened this issue Nov 15, 2023 · 0 comments
Open

Export tool data point timestamp is wrong #684

merahland opened this issue Nov 15, 2023 · 0 comments

Comments

@merahland
Copy link

merahland commented Nov 15, 2023

The environment is in K8S. Export the whole database with this command:

kubectl exec kairosdb-0 -- /opt/kairosdb/bin/kairosdb.sh export

A row of data from export is as follows:

{"name": "somemetrics", 
"tags": {"tag1": "mytag", }, 
"datapoints": [[1677074850000, 0, "long"], [1677075300000, 0, "long"], [1677075750000, 0, "long"], [1677076200000, 0, "long"], [1677076650000, 0, "long"], [1677077100000, 0, "long"], [1677077550000, 0, "long"], [1677078000000, 0, "long"], [1677078450000, 0, "long"], [1677078900000, 0, "long"]]}

For first datapoint, the epoch time of 1677074850000 is Wednesday, February 22, 2023 14:07:30.
But the actual date should be 1st March 2023, 0800.

Another observation is when the data is first inserted, export tool shows the correct timestamp.
However, after 10 or 15 minutes, the exported data will have the wrong timestamp.

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

1 participant