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

[ENHANCEMENT2] time series #832

Closed
ramneet-persistent opened this issue Jul 4, 2022 · 1 comment
Closed

[ENHANCEMENT2] time series #832

ramneet-persistent opened this issue Jul 4, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ramneet-persistent
Copy link
Contributor

ramneet-persistent commented Jul 4, 2022

as per new comments in opensearch-project/dashboards-observability#125, time series involves below enhancements

  • The data configurations section same as bar’s with only difference be the timestamp is always the first dimension and the only x-axis.
  • "no results found" in case of no timestamp dimension in query fields and in data config no dimension should be selected
  • Legend size
  • Label size
  • label rotate
  • color picker
  • disable add dimension button
    cc: @anirudha @spattnaik
@ramneet-persistent
Copy link
Contributor Author

hi @mengweieric , @anirudha

as per mentioned in opensearch-project/dashboards-observability#125, time series has data config same as bar chart, but with timestamp single/only dimension
Please refer attached screen shot
time_series_single dimension_multiple_metrics

Above ss is output of query:
source = opensearch_dashboards_sample_data_logs | stats avg(bytes), max(bytes) by span(timestamp,1d)
which generates two traces as query have two metrics, below is sample trace and data sample

Avg(bytes)(M1) Max(Bytes)(M2) Timestamp(D1)
6150.574297188755 19561 2022-06-05 00:00:00
5509.134199134199 19742 2022-06-06 00:00:00
5500.895652173913 19182 2022-06-07 00:00:00
5969.966101694915 17563 2022-06-08 00:00:00
trace1={
  x: ['2022-06-05 00:00:00', '2022-06-06 00:00:00', '2022-06-07 00:00:00', '2022-06-08 00:00:00'],
  y: [6150.574297188755, 5509.134199134199, 5500.895652173913, 5969.966101694915]
}
trace2 = {
 x: ['2022-06-05 00:00:00', '2022-06-06 00:00:00', '2022-06-07 00:00:00', '2022-06-08 00:00:00',],
 y: [19561, 19742, 19182, 17563]
}

in case of no timestamp dimension present in query or selected from data config: "no data found is displayed". refer below SS
times_series_multiple_metrics_no_dimension

Please confirm

Thanks

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

No branches or pull requests

2 participants