interact-charts.mdx 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. ---
  2. title: "Interact with charts"
  3. description: "Learn how to pan, zoom, select, and customize Netdata's preconfigured charts to help you troubleshooting with real-time, per-second metrics data."
  4. type: "how-to"
  5. custom_edit_url: "https://github.com/netdata/netdata/edit/master/docs/dashboard/interact-charts.mdx"
  6. sidebar_label: "Interact with charts"
  7. learn_status: "Published"
  8. learn_topic_type: "Tasks"
  9. learn_rel_path: "Operations"
  10. ---
  11. # Interact with charts
  12. > ⚠️ There is a new version of charts that is currently **only** available on [Netdata Cloud](https://github.com/netdata/netdata/blob/master/docs/cloud/visualize/interact-new-charts.md). We didn't
  13. > want to keep this valuable feature from you, so after we get this into your hands on the Cloud, we will collect and implement your feedback to make sure we are providing the best possible version of the feature on the Netdata Agent dashboard as quickly as possible.
  14. While charts that update every second with new metrics are helpful for understanding the immediate state of a node, deep
  15. troubleshooting and root cause analysis begins by manipulating the default charts. To help you troubleshoot, Netdata
  16. synchronizes every chart every time you interact with one of them.
  17. Here's what synchronization looks like:
  18. ![Animated GIF of the standard Netdata dashboard being manipulated and synchronizing
  19. charts](https://user-images.githubusercontent.com/1153921/80839230-b034a800-8baf-11ea-9cb2-99c1e10f0f85.gif)
  20. Once you understand all the interactions available to you, you'll be able to quickly move around the dashboard, search
  21. for anomalies, and find root causes using per-second metrics.
  22. ## Pause or stop
  23. | Interaction | Keyboard/mouse | Touchpad/touchscreen |
  24. | :---------------- | :------------- | :------------------- |
  25. | **Pause** a chart | `hover` | `n/a` |
  26. | **Stop** a chart | `click` | `tap` |
  27. By hovering over any chart, you temporarily pause it so that you can hover over a specific timeframe and see the exact
  28. values presented as dimensions. Click on the chart to lock it to this timeframe, which is useful if you want to jump to
  29. a different chart to look for possible correlations.
  30. ![Animated GIF of hovering over a chart to see
  31. values](https://user-images.githubusercontent.com/1153921/62968279-9227dd00-bdbf-11e9-9112-1d21444d0f31.gif)
  32. ## Pan
  33. | Interaction | Keyboard/mouse | Touchpad/touchscreen |
  34. | :---------- | :------------- | :------------------- |
  35. | **Pan** | `click + drag` | `swipe` |
  36. Drag your mouse/finger to the right to pan backward through time, or drag to the left to pan forward in time. Think of
  37. it like pushing the current timeframe off the screen to see what came before or after.
  38. ## Zoom
  39. | Interaction | Keyboard/mouse | Touchpad/touchscreen |
  40. | :------------------------------- | :-------------------------- | :--------------------------------------------------- |
  41. | **Zoom** in or out | `Shift + mouse scrollwheel` | `two-finger pinch` <br />`Shift + two-finger scroll` |
  42. | **Zoom** to a specific timeframe | `Shift + mouse selection` | `n/a` |
  43. Zooming in helps you see metrics with maximum granularity, which is useful when you're trying to diagnose the root cause
  44. of an anomaly or outage. Zooming out lets you see metrics within the larger context, such as the last hour, day, or
  45. week, which is useful in understanding what "normal" looks like, or to identify long-term trends, like a slow creep in
  46. memory usage.
  47. ## Select
  48. | Interaction | Keyboard/mouse | Touchpad/touchscreen |
  49. | :------------------------------ | :-------------------------------------------------------- | :------------------- |
  50. | **Select** a specific timeframe | `Alt + mouse selection` or `⌘ + mouse selection` (macOS) | `n/a` |
  51. Selecting timeframes is useful when you see an interesting spike or change in a chart and want to investigate further.
  52. Select a timeframe, then move to different charts/sections of the dashboard. Each chart shows the same selection to help
  53. you immediately identify the timeframe and look for correlations.
  54. ## Reset a chart to its default state
  55. | Interaction | Keyboard/mouse | Touchpad/touchscreen |
  56. | :---------------- | :------------- | :------------------- |
  57. | **Reset** a chart | `double-click` | `n/a` |
  58. Double-check on a chart to restore it to the default auto-updating state, with a timeframe based on your browser
  59. viewport.
  60. ## Resize
  61. Click-and-drag the icon on the bottom-right corner of any chart. To restore the chart to its original height,
  62. double-click the same icon.
  63. ![Animated GIF of resizing a chart and resetting it to the default
  64. height](https://user-images.githubusercontent.com/1153921/80842459-7d41e280-8bb6-11ea-9488-1bc29f94d7f2.gif)
  65. ## Show and hide dimensions
  66. | Interaction | Keyboard/mouse | Touchpad/touchscreen |
  67. | :------------------------------------- | :-------------- | :------------------- |
  68. | **Show one** dimension and hide others | `click` | `tap` |
  69. | **Toggle (show/hide)** one dimension | `Shift + click` | `n/a` |
  70. Hiding dimensions simplifies the chart and can help you better discover exactly which aspect of your system might be
  71. behaving strangely.
  72. ## See the context
  73. Hover your mouse over the date that appears just beneath the chart itself. A tooltip will tell you the context for that
  74. chart. Below, the context is `apps.cpu`.
  75. ![See a chart's
  76. context](https://user-images.githubusercontent.com/1153921/114212924-39ec0a00-9917-11eb-9a9e-7e171057b3fd.gif)
  77. ## See the resolution and update frequency
  78. Hover your mouse over the timestamp just to the right of the date. `resolution` is the number of seconds between each
  79. "tick" in the chart. `collection every` is how often Netdata collects and stores that metric.
  80. If the `resolution` value is higher than `collection every`, such as `resolution 5 secs, collected every 1 sec`, this
  81. means that each tick is calculating represents the average values across a 5-second period. You can zoom in to increase
  82. the resolution to `resolution 1 sec` to see the exact values.
  83. ## Chart controls
  84. Many of the above interactions can also be triggered using the icons on the bottom-right corner of every chart. They
  85. are, respectively, `Pan Left`, `Reset`, `Pan Right`, `Zoom In`, and `Zoom Out`.
  86. ## Chart label filtering
  87. The chart label filtering feature supports grouping by and filtering each chart based on labels (key/value pairs) applicable to the context and provides fine-grain capability on slicing the data and metrics.
  88. All metrics collected get "tagged" with labels and values, thus providing a powerful way of slicing and visualizing all metrics related to the infrastructure.
  89. The chart label filtering is currently enabled on:
  90. - All charts on the **Overview** tab
  91. - Custom dashboards
  92. ![Chart filtering on Overview tab chart](https://user-images.githubusercontent.com/88642300/193084084-01074495-c826-4519-a09f-d210f7e3e6be.png)
  93. ![Chart filtering on Custom dashboard](https://user-images.githubusercontent.com/88642300/193084172-358dfded-c318-4d9f-b6e2-46a8fc33030b.png)
  94. The top panel on each chart displays the various filters and grouping options selected on the specific chart. These filters are specific for each chart and need to be manually configured on each chart.
  95. Additionally, the charts can be saved to a custom dashboard, new or existing, with the selected filters from the overview screen.
  96. ![Chart filtering saved on custom dashboard](https://user-images.githubusercontent.com/88642300/193084225-1b65984e-566c-4815-8bc1-a2781d3564bd.png)
  97. ## Custom labels for Collectors
  98. In addition to the default labels associated with a collector and metrics context (you can identify them by seeing which ones have an underscore as a prefix), there is now a new feature enabled to create custom labels. These custom labels may be needed to group your jobs or instances into various categories.
  99. These custom labels can be configured within your go.d plugins by simply associating a label key/value pair, as in the following eaxmple.
  100. ```conf
  101. jobs:
  102. - name: example_1
  103. someOption: someValue
  104. labels:
  105. label1: value1
  106. label2: value2
  107. - name: example_2
  108. someOption: someValue
  109. labels:
  110. label3: value3
  111. label4: value4
  112. ```
  113. For instance, you may be running multiple Postgres database instances within an infrastructure. Some of these may be associated with testing environments, some with staging and some with production environments. You can now associate each Postgres job / instance with a custom label. The “group by” and filtering options will then allow you to associate individual jobs by specific labels.
  114. ```conf
  115. jobs:
  116. - name: local
  117. dsn: 'postgres://postgres:postgres@127.0.0.1:5432/postgres'
  118. collect_databases_matching: '*'
  119. labels:
  120. instance_type: production
  121. ```
  122. ![Group by individual job labels one](https://user-images.githubusercontent.com/88642300/193084580-49df500a-ddfb-45bb-a209-3c7a904ee9e0.png)
  123. ![group by individual job labels two](https://user-images.githubusercontent.com/88642300/193084624-6d9848d0-9400-4e34-9cd4-78e50c784cc0.png)
  124. ### Future Work
  125. We already have [configurable host labels](https://github.com/netdata/netdata/blob/master/docs/guides/using-host-labels.md) as well, which currently can’t be used to filter or group your metrics. We intend to provide the same capabilities described here with host labels, among other capabilities on other areas of the app as well
  126. ## What's next?
  127. We recommend you read up on the differences between [chart dimensions, contexts, and
  128. families](https://github.com/netdata/netdata/blob/master/docs/dashboard/dimensions-contexts-families.mdx) to complete your understanding of how Netdata organizes its
  129. dashboards. Another valuable way to interact with charts is to use the [timeframe
  130. selector](https://github.com/netdata/netdata/blob/master/docs/dashboard/visualization-date-and-time-controls.mdx), which helps you visualize specific moments of historical metrics.
  131. If you feel comfortable with the [dashboard](https://github.com/netdata/netdata/blob/master/docs/dashboard/how-dashboard-works.mdx) and interacting with charts, we
  132. recommend moving on to learning about [configuration](https://github.com/netdata/netdata/blob/master/docs/configure/nodes.md). While Netdata doesn't _require_ a
  133. complicated setup process or a query language to create charts, there are a lot of ways to tweak the experience to match
  134. your needs.
  135. ### Further reading & related information
  136. - Dashboard
  137. - [How the dashboard works](https://github.com/netdata/netdata/blob/master/docs/dashboard/how-dashboard-works.mdx)
  138. - [Netdata Cloud · Interact with new charts](https://github.com/netdata/netdata/blob/master/docs/cloud/visualize/interact-new-charts.md)
  139. - [Chart dimensions, contexts, and families](https://github.com/netdata/netdata/blob/master/docs/dashboard/dimensions-contexts-families.mdx)
  140. - [Select timeframes to visualize](https://github.com/netdata/netdata/blob/master/docs/dashboard/visualization-date-and-time-controls.mdx)
  141. - [Import, export, and print a snapshot](https://github.com/netdata/netdata/blob/master/docs/dashboard/import-export-print-snapshot.mdx)
  142. - [Customize the standard dashboard](https://github.com/netdata/netdata/blob/master/docs/dashboard/customize.mdx)