visualization-date-and-time-controls.mdx 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <!--
  2. title: "Visualization date and time controls"
  3. description: "Netdata's dashboard features powerful date visualization controls that include a time control (play, pause, force play), a timezone selector and a rich date and timeframe selector, with useful defaults and rich customization, to help you narrow your focus when troubleshooting issues or anomalies."
  4. type: "how-to"
  5. custom_edit_url: "https://github.com/netdata/netdata/edit/master/docs/dashboard/visualization-date-and-time-controls.mdx"
  6. sidebar_label: "Visualization date and time controls"
  7. learn_status: "Published"
  8. learn_topic_type: "Concepts"
  9. learn_rel_path: "Concepts"
  10. -->
  11. # Visualization date and time controls
  12. ## Date and time selector
  13. ### Pick timeframes to visualize
  14. While [panning through time and zooming in/out](https://github.com/netdata/netdata/blob/master/docs/dashboard/interact-charts.mdx) from charts it is helpful when
  15. you're looking a recent history, or want to do granular troubleshooting, what if you want to see metrics from 6 hours
  16. ago? Or 6 days?
  17. Netdata's dashboard features a **timeframe selector** to help you visualize specific timeframes in a few helpful ways.
  18. By default, it shows a certain number of minutes of historical metrics based on the your browser's viewport to ensure
  19. it's always showing per-second granularity.
  20. #### Open the timeframe selector
  21. To visualize a new timeframe, you need to open the picker, which appears just above the menu, near the top-right cover
  22. of the dashboard.
  23. ![The timeframe selector in the local Agent
  24. dashboard](https://user-images.githubusercontent.com/1153921/101507784-2c585080-3934-11eb-9d6e-eff30b8553e4.png)
  25. The **Clear** button resets the dashboard back to its default state based on your browser viewport, and **Apply** closes
  26. the picker and shifts all charts to the selected timeframe.
  27. #### Use the Quick Selector
  28. Click any of the following options in the **Quick Selector** to choose a commonly-used timeframe.
  29. - Last 5 minutes
  30. - Last 15 minutes
  31. - Last 2 hours
  32. - Last 6 hours
  33. - Last 12 hours
  34. Click **Apply** to see metrics from your selected timeframe.
  35. #### Choose a specific interval
  36. Beneath the Quick Selector is an input field and dropdown you use in combination to select a specific timeframe of
  37. minutes, hours, days, or months. Enter a number and choose the appropriate unit of time, then click **Apply**.
  38. #### Choose multiple days
  39. Use the calendar to select multiple days. Click on a date to begin the timeframe selection, then an ending date. The
  40. timeframe begins at noon on the beginning and end dates. Click **Apply** to see your selected multi-day timeframe.
  41. ## Time controls
  42. The time control provides you the following options: **Play**, **Pause** and **Force Play**.
  43. * **Play** - the content of the page will be automatically refreshed while this is in the foreground
  44. * **Pause** - the content of the page isn't refreshed due to a manual request to pause it or, for example, when your investigating data on a
  45. chart (cursor is on top of a chart)
  46. * **Force Play** - the content of the page will be automatically refreshed even if this is in the background
  47. With this, we aim to bring more clarity and allow you to distinguish if the content you are looking at is live or historical and also allow you
  48. to always refresh the content of the page when the tabs are in the background.
  49. Main use cases for **Force Play**:
  50. * You use a terminal or deployment tools to do changes in your infra and want to see immediately, Netdata is in the background, displaying the impact
  51. of these changes
  52. * You want to have Netdata on the background, example displayed on a TV, to constantly see metrics through dashboards or to watch the alert
  53. status
  54. ![The time control with Play, Pause and
  55. Force Play](https://user-images.githubusercontent.com/82235632/129206460-03c47d0d-1a5b-428a-b972-473718b74bdb.png)
  56. ## Timezone selector
  57. With the timezone selector, you have the ability to change the timezone on Netdata Cloud. More often than not teams are
  58. distributed in different timezones and they need to collaborate.
  59. Our goal is to make it easier for you and your teams to troubleshoot based on your timezone preference and communicate easily
  60. with varying timezones and timeframes without the need to be concerned about their specificity.
  61. <img width="437" alt="Untitled1" src="https://user-images.githubusercontent.com/43294513/216628390-c3bd1cd2-349d-4523-b8d3-c7e68395f670.png">
  62. When you change the timezone all the date and time fields will be updated to be displayed according to the specified timezone, this goes from
  63. charts to alerts information and across the Netdata Cloud.
  64. ## Caveats and considerations
  65. **Longer timeframes will decrease metrics granularity**. At the default timeframe, based on your browser viewport, each
  66. "tick" on charts represents one second. If you select a timeframe of 6 hours, each tick represents the _average_ value
  67. across a larger period of time.
  68. **You can only see metrics as far back in history as your metrics retention policy allows**. Netdata uses an internal
  69. time-series database (TSDB) to store as many metrics as it can within a specific amount of disk space. The default
  70. storage is 256 MiB, which should be enough for 1-3 days of historical metrics. If you navigate back to a timeframe
  71. beyond stored historical metrics, you'll see this message:
  72. ![Screenshot of reaching the end of historical metrics
  73. storage](https://user-images.githubusercontent.com/1153921/114207597-63a23280-9911-11eb-863d-4d2f75b030b4.png)
  74. At any time, [configure the internal TSDB's storage capacity](https://github.com/netdata/netdata/blob/master/docs/store/change-metrics-storage.md) to expand your
  75. depth of historical metrics.
  76. ## What's next?
  77. One useful next step after selecting a timeframe is [exporting the
  78. metrics](https://github.com/netdata/netdata/blob/master/docs/dashboard/import-export-print-snapshot.mdx) into a snapshot file, which can then be shared and imported
  79. into any other Netdata dashboard.
  80. There are also many ways to [customize](https://github.com/netdata/netdata/blob/master/docs/dashboard/customize.mdx) the standard dashboard experience, from changing
  81. the theme to editing the text that accompanies every section of charts.
  82. ## Further reading & related information
  83. - Dashboard
  84. - [How the dashboard works](https://github.com/netdata/netdata/blob/master/docs/dashboard/how-dashboard-works.mdx)
  85. - [Interact with charts](https://github.com/netdata/netdata/blob/master/docs/dashboard/interact-charts.mdx)
  86. - [Chart dimensions, contexts, and families](https://github.com/netdata/netdata/blob/master/docs/dashboard/dimensions-contexts-families.mdx)
  87. - [Import, export, and print a snapshot](https://github.com/netdata/netdata/blob/master/docs/dashboard/import-export-print-snapshot.mdx)
  88. - [Customize the standard dashboard](https://github.com/netdata/netdata/blob/master/docs/dashboard/customize.mdx)