Creating custom widgets

You can create custom widgets where you select a chart, set data definition to add one or more data sources, select monitoring parameters, and set widget-level filters. You can create such custom widgets and use them in different dashboards according to your requirement. You can also save the widgets that you create as custom widget templates. You can also create specialized widgets such as web widgets, multi-chart widgets, and a widget to list all the instances for a selected source and resource type.

Before you begin

  • Ensure that the data source that you want to monitor are already added.

    For more information about connectors and data sources, see Configuring Connectors and Sources.

  • If you want to monitor data sources other than Cloud APM, Monitoring, ITM, Cloud Event Management, Tivoli® Netcool®/OMNIbus, and JDBC-supported data sources, then you must ensure that the manual data definitions for those data sources are created.

    For more information about creating manual data definition, see Creating a manual data definition.

  • Ensure that the custom filters that you want to set for a widget are already created. The default filters can be applied to Cloud APM, Monitoring, ITM, and Cloud Event Management data sources only.

    For more information about creating custom filters, see Filters.

  • If you want to create a widget to continuously render real-time data of applications, then you must use the Real Time Connector. Also, you must use a Line chart only and in the chart properties, you must specify the number of data points to be displayed on the chart. You can add only one manual data definition and define only one series in the Line chart. Hence, you must select Define a Manual Series option in the Series Type tab while setting chart properties. If you select Define a Dynamic Series option, then the real-time data is not displayed. Also, multiple Y-axes are not supported. You must map timestamp data on X-axis only. You cannot change the chart type, nor can you add widget-level filters or assign dashboard-level filters to the widget.

    Also, ensure that Real Time Data Collector is installed and is up and running.

    For more information, see Restarting Real Time Data Collector.

  • If you want to set a background image for the widget, then ensure that the image is already available on your computer.
  • To create specialized widgets such as multi-chart widgets, web widget, and a widget to list all the instances for a selected source and resource type, see Specialized widgets.

About this task

After you log in to the Dashboard Designer, you can create custom widgets or templates by using any of the following options on the landing page:

  • Click CREATE COMPONENTS, then in the Create Components page, click WIDGETS.
  • Click the Expand Expand icon to open the navigation pane of Dashboard Designer, and click Custom > Create New Widget.
At any point of widget creation, for Line, Area, Pie, Donut, and Clustered or Stacked Bars and Columns charts, you can replace an already selected chart with another chart type that belongs to the same category. For example, you can replace an existing Pie chart with a Donut chart. The predefined data definitions and chart properties are not altered with change in the chart type.
Note: You cannot change a chart type when you preview a widget that contains multiple plots.
Based on the chart type, you can add multiple data sources to a single widget, either by using multiple connectors or by using multiple manual data definitions.
Note: If you are adding multiple data definitions, then ensure that the data or column that is mapped on X-axis has identical data.
For example, by setting assisted data definitions, you can add multiple Cloud APM, Cloud Event Management, ITM, Monitoring, Tivoli Netcool/OMNIbus, and third-party data sources that support JDBC interface to a single widget. Similarly, by using manual data definitions, you can add multiple JDBC supported third-party queries, Cassandra database queries, MongoDB queries, and REST API custom queries to a single widget.
Note: A single widget cannot contain an assisted data definition and a manual data definition.

You can add multiple data definitions to Area, Line, Bar, Columns, Bubble, Complex Gauge, Radar, and Scatter charts only. To all the remaining charts, you can add only one data definition.

If you want to save a widget as a template, then you must set data definition by using one or more APM, ICAM, or ITM Connector only. If you use JDBC, OMNIbus, CEM Connectors, or a saved custom data definition in a widget, then you cannot save the widget as a custom widget template.

Procedure

Complete the following steps to create a custom widget:

  1. In the navigation pane of Dashboard Designer, click Custom > Create New Widget.

    The New Widget page opens.

  2. Click the Edit Edit icon that is displayed next to the New Widget, Widget Description, and Widget Title fields, and enter a name, title, and description for your widget.
    Note: Only alphanumeric characters, spaces, and underscore are supported.
  3. The Gridlines checkbox is selected by default.
    If you do not want the gridlines view, clear the checkbox.
  4. In the navigation pane, click Charts, expand a chart category, and drag a chart to the widget area.
    For example, expand Comparison, and drag the Stacked Bars chart from the navigation pane to the widget area.

    For more information about the various chart types, see Charts.

    Instead of dragging a chart to the widget area, you can drag any one of the following widgets:
    • Drag a template widget to the widget area and set data definitions. For more information about setting assisted data definitions, see Setting assisted data definitions
    • Drag an existing custom widget and modify it. For more information about modifying a custom widget, see Modifying widgets
    Note: If you want to use a Real Time Connector, select a Line chart.
  5. Optional: Click the Set FiltersSet Filters icon to select the default filters and custom widget-level filters.
    Note:
    • For the widget-level filters to work properly, you must map metrics to filters when you set assisted data definitions or manual data definitions.
      For more information about mapping metrics to filters or setting and adding cases for the queries or REST API methods, see the following topics:
    • You can select maximum five filters. This number includes the default and custom filters, including conditional or dependent filters.
    • When you select a child filter, its parent filter is selected automatically.
    • You can also rearrange the widget-level filters. However, parent-child filters cannot be switched. A parent filter always precedes its child filter.
    • To change values in the child filters, you must first change values in the parent filter. For example, the PM filters, Summarization and Aggregation are child filters and dependent on the parent filter, Interval. If you directly change the filter value in Summarization without first changing its parent filter value, then the Summarization filter displays a None value.
    • You can add Default filters to widgets that contain Cloud APM, ITM, IBM Cloud Pak® for Multicloud Management - Monitoring and Cloud Event Management data sources only.
    • You cannot add filters to a widget that streams real-time data.

    For more information about default and custom filters, and creating custom filters, see Filters.

    If widget-level filters are set, then the widget displays a checkmark on Set Filters Set Filter icon. Else, Set Filters icon does not display any checkmark.
  6. Click the Set Data Definition Set Data Definition icon to select a data source and its monitoring elements.
    For more information about setting data definitions, see the following topics:
  7. Click the Set Properties Set Properties icon to set the widget and chart properties.
    For more information about setting widget and chart properties, see the following topics:
  8. Optional: To add a background image to a widget, complete the following steps:
    1. Click the Background Image Background Image icon, which is displayed on the upper-right of the widget.
    2. In the Background Image pop-up window, click Add Background Image, and then click Select from File.
    3. Browse to the image file location on your computer, select the file, and then click Open.
      Note: You can add PNG, JPEG, JPG, or GIF image files of size less than or equal to 2 MB.

      The selected image is added as a background image to the widget. To replace the image, repeat the steps, and select another image. To delete the image, click No Background Image.

  9. To save the widget as a custom widget, click Save, and complete the following steps in the Save Widget window:
    1. In the SAVE AS pane, click Widget.
      Note: The SAVE AS pane is displayed only when you use APM, ICAM, or ITM Connectors in the widget.

      To save the custom widget as a custom template, see Saving custom widgets as templates.

    2. In the Widget Name field, enter a name for the widget.
    3. To save the widget to an existing category, click Existing Category, select a category name from the drop-down list, and then click Save.
    4. To save the widget to a new category, click New Category, enter a category name, and then click Save.
  10. To save the widget with another name, click the Save As option, and in the Save As Widget window, enter the required details.
  11. Optional: For Line, Area, Pie, Donut, and Clustered or Stacked Bars and Columns charts, you can replace the selected chart with another chart that belongs to the same category. Click the Change Chart Type Change chart type icon and select the required chart type from the available options.
    You can change a chart type at any step of widget creation.

    The existing chart is replaced with the selected chart type without any changes to the data definitions or chart properties.

  12. After you save a widget, to preview it, click the Preview Preview icon.

Results

The newly created custom widgets and widget templates are listed under Most Recently Created Widgets in the navigation pane. Each widget displays an icon next to it. The icon indicates the chart type that is used in the widget. If you use a Real Time Connector, then the widget displays the Real-time chart real-time chart icon icon.
The All Widgets page displays the following audit trail details for each custom widget:
  • Custom widget name
  • Custom widget category
  • Name of the Engine instance to which the widget is published.
  • Date and time when the custom widget was first created, and the username of the user who first created the custom widget.
  • Date and time when the custom widget was last modified, and the username of the user who last modified the widget. Only the latest record is displayed.

What to do next

You can complete any of the following tasks: