dashboard_info_custom_example.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // SPDX-License-Identifier: GPL-3.0-or-later
  2. /*
  3. * Custom netdata information file
  4. * -------------------------------
  5. *
  6. * Use this file to add custom information on netdata dashboards:
  7. *
  8. * 1. Copy it to a new filename (so that it will not be overwritten with netdata updates)
  9. * 2. Edit it to fit your needs
  10. * 3. Set the following option to /etc/netdata/netdata.conf :
  11. *
  12. * [web]
  13. * custom dashboard_info.js = your_filename.js
  14. *
  15. * Using this file you can:
  16. *
  17. * 1. Overwrite or add messages to menus, submenus and charts.
  18. * Use dashboard_info.js to find out what you can define.
  19. *
  20. * 2. Inject javascript code into the default netdata dashboard.
  21. *
  22. */
  23. // Codacy declarations
  24. /* global customDashboard */
  25. // ----------------------------------------------------------------------------
  26. // MENU
  27. //
  28. // - title the menu title as to be rendered at the charts menu
  29. // - icon html fragment of the icon to display
  30. // - info html fragment for the description above all the menu charts
  31. customDashboard.menu = {
  32. };
  33. // ----------------------------------------------------------------------------
  34. // SUBMENU
  35. //
  36. // - title the submenu title as to be rendered at the charts menu
  37. // - info html fragment for the description above all the submenu charts
  38. customDashboard.submenu = {
  39. };
  40. // ----------------------------------------------------------------------------
  41. // CONTEXT (the template each chart is based on)
  42. //
  43. // - info html fragment for the description above the chart
  44. // - height a ratio to the default as a decimal number: 1.0 = 100%
  45. // - colors a single color or an array of colors to use for the dimensions
  46. // - valuerange the y-range of the chart as an array [min, max]
  47. // - heads an array of gauge charts to render above the submenu section
  48. // - mainheads an array of gauge charts to render at the menu section
  49. customDashboard.context = {
  50. };