customize.mdx 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. ---
  2. title: "Customize the standard dashboard"
  3. description: "Netdata's preconfigured dashboard offers many customization options, such as choosing when charts are updated, your preferred theme, and custom text to document processes, and more."
  4. type: how-to
  5. custom_edit_url: https://github.com/netdata/netdata/edit/master/docs/dashboard/customize.mdx
  6. ---
  7. # Customize the standard dashboard
  8. While the [Netdata dashboard](/docs/dashboard/how-dashboard-works.mdx) comes preconfigured with hundreds of charts and
  9. thousands of metrics, you may want to alter your experience based on a particular use case or preferences.
  10. ## Dashboard settings
  11. To change dashboard settings, click the on the **settings** icon ![Import
  12. icon](https://raw.githubusercontent.com/netdata/netdata-ui/98e31799c1ec0983f433537ff16d2ac2b0d994aa/src/components/icon/assets/gear.svg)
  13. in the top panel.
  14. These settings only affect how the dashboard behaves in your browser. They take effect immediately and are permanently
  15. saved to browser local storage (except the refresh on focus / always option). Some settings are applied immediately, and
  16. others are only reflected after the dashboard is refreshed, which happens automatically.
  17. Here are a few popular settings:
  18. ### Change chart legend position
  19. Find this setting under the **Visual** tab. By default, Netdata places the [legend of
  20. dimensions](/docs/dashboard/dimensions-contexts-families.mdx#dimension) _below_ charts. Click this toggle to
  21. move the legend to the _right_ of charts.
  22. ### Change theme
  23. Find this setting under the **Visual** tab. Choose between Dark (the default) and White.
  24. ## Customize the standard dashboard
  25. Netdata stores information about individual charts in the `dashboard_info.js` file. This file includes section and
  26. subsection headings, descriptions, colors, titles, tooltips, and other information for Netdata to render on the
  27. dashboard.
  28. One common use case for customizing the standard dashboard is adding internal "documentation" a section or specific
  29. chart that can then be read by anyone with access to that dashboard.
  30. For example, here is how `dashboard_info.js` defines the **System Overview** section.
  31. ```javascript
  32. netdataDashboard.menu = {
  33. 'system': {
  34. title: 'System Overview',
  35. icon: '<i class="fas fa-bookmark"></i>',
  36. info: 'Overview of the key system metrics.'
  37. },
  38. ```
  39. If you want to customize this information, use the example `dashboard_info_custom_example.js` as a starting point.
  40. First, navigate to the web server's directory. If you're on a Linux system, this should be at `/usr/share/netdata/web/`.
  41. Copy the example file, then ensure that its permissions match the rest of the web server, which is `netdata:netdata` by
  42. default.
  43. ```bash
  44. cd /usr/share/netdata/web/
  45. sudo cp dashboard_info_custom_example.js your_dashboard_info_file.js
  46. sudo chown netdata:netdata your_dashboard_info_file.js
  47. ```
  48. Edit the file with customizations to the `title`, `icon`, and `info` fields. Replace the string after `fas fa-` with any
  49. icon from [Font Awesome](https://fontawesome.com/cheatsheet) to customize the icons that appear throughout the
  50. dashboard.
  51. Save the file, then navigate to your [Netdata config directory](/docs/configure/nodes.md) to edit `netdata.conf`. Add
  52. the following line to the `[web]` section to tell Netdata where to find your custom configuration.
  53. ```conf
  54. [web]
  55. custom dashboard_info.js = your_dashboard_info_file.js
  56. ```
  57. Reload your browser tab to see your custom configuration.
  58. ## What's next?
  59. If you're keen on continuing to customize your Netdata experience, check out our docs on [building new custom
  60. dashboards](/web/gui/custom/README.md) with HTML, CSS, and JavaScript.
  61. ### Further reading & related information
  62. - Dashboard
  63. - [How the dashboard works](/docs/dashboard/how-dashboard-works.mdx)
  64. - [Interact with charts](/docs/dashboard/interact-charts.mdx)
  65. - [Chart dimensions, contexts, and families](/docs/dashboard/dimensions-contexts-families.mdx)
  66. - [Select timeframes to visualize](/docs/dashboard/visualization-date-and-time-controls.mdx)
  67. - [Import, export, and print a snapshot](/docs/dashboard/import-export-print-snapshot.mdx)
  68. - **[Customize the standard dashboard](/docs/dashboard/customize.mdx)**