dashboard_info_custom_example.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. // ----------------------------------------------------------------------------
  24. // MENU
  25. //
  26. // - title the menu title as to be rendered at the charts menu
  27. // - icon html fragment of the icon to display
  28. // - info html fragment for the description above all the menu charts
  29. customDashboard.menu = {
  30. };
  31. // ----------------------------------------------------------------------------
  32. // SUBMENU
  33. //
  34. // - title the submenu title as to be rendered at the charts menu
  35. // - info html fragment for the description above all the submenu charts
  36. customDashboard.submenu = {
  37. };
  38. // ----------------------------------------------------------------------------
  39. // CONTEXT (the template each chart is based on)
  40. //
  41. // - info html fragment for the description above the chart
  42. // - height a ratio to the default as a decimal number: 1.0 = 100%
  43. // - colors a single color or an array of colors to use for the dimensions
  44. // - valuerange the y-range of the chart as an array [min, max]
  45. // - heads an array of gauge charts to render above the submenu section
  46. // - mainheads an array of gauge charts to render at the menu section
  47. customDashboard.context = {
  48. };