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

OpenTSDB DB Schema Clarification #2115

Closed
Sync1011 opened this issue Apr 28, 2021 · 3 comments
Closed

OpenTSDB DB Schema Clarification #2115

Sync1011 opened this issue Apr 28, 2021 · 3 comments

Comments

@Sync1011
Copy link

I am trying to learn more about OpenTSDB.

I came across the database schema documentation documentation. It mentions that, "Rows are broken up into hour increments, reflected by the timestamp in each row. Thus each timestamp will be normalized to an hour value, e.g. 2013-01-01 08:00:00."

If I understand this correctly, OpenTSDB will store all the metrics emitted for that one hour in a single row with the timestamp normalized to the beginning of that hour.


My question now is, if I want to see the metrics emitted for a given label/metric between the 20th minute and the 40th minute for a given hour, how will OpenTSDB accommodate this query? Since the row key is normalized to the beginning of the hour and it does not keep track of any other timestamp (AFAIK), how will it know which metrics came between the 20th minute and the 40th minute?

@johann8384
Copy link
Member

johann8384 commented Apr 28, 2021 via email

@Sync1011
Copy link
Author

Thanks @johann8384!

If I were plotting he 1hr period on a graph, how does it maintain the order? For example if I wanted to see how many 500s an API emitted in the past 1hour, how will it graph the number of 500s at the 10min mark and 20min mark and so on.

@johann8384
Copy link
Member

johann8384 commented Apr 28, 2021 via email

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