Skip to main content

Monitoring Multiple Instances

Home > Select Project > Dashboard > Monitoring Multiple Instances

While you can monitor only one agent (instance) in Monitoring a Database Instance, Monitoring Multiple Instances allows you to monitor and manage multiple agents (instances).

You can compare and analyze key performance metrics occurring in each instance at a glance. You can effectively perform monitoring by aggregating data such as the number of agents running, the sum of all active sessions, and the number of transactions. Users can easily check the changes in metric values ​​over time and high performance metrics for each instance through graph charts.

Additionally, users can see the longest-lasting active sessions, which can be used as a basis for diagnosing and resolving the system performance bottlenecks.

Multi-instance Monitoring

Tip

If you select an agent to compare in Dashboard > Instance List, and then select Multi view, the Monitoring Multiple Instances menu appears.

Query Time Setting

The dashboard basically provides the real-time monitoring feature but the past data can be viewed using the time selector at the top of the screen. In the time selector, select Pause icon and then set the following time. It updates the data in widgets placed on the dashboard based on the set time.

Agent Check

Checking the agent connection status

Agent connection status

On the upper left of the screen, the right area of the time selector provides information that allows you to check the status of agents connected to the project. This allows you to immediately check whether the target application server is running.

  • Total: Number of all agents connected to the project

  • Active: Number of active agents

  • Inactive: Number of inactive agents

  • Agent display icon: Can display or hide inactive agents.

Agent-based monitoring

Selecting the agent

By default, the dashboard displays the metrics collected from all agents in charts and you can also view the data by agent. Select one or more agents under the time selector. The data of the widgets on the dashboard is updated with the metrics of the selected agent(s).

Tip

To select all agents again while one or more agents is selected, deselect them or click Total.

Note

If there are numerous agents connected to the project, it is efficient to set the agent names to be short. For more information about the agent name setting, see the following.

Widget Edit

The widgets on the dashboard can be adjusted to the desired size and placed in the desired positions. You can also delete unnecessary widgets or add them again.

Resizing a widget

Resizing a widget

Click and hold the mouse on the Resize icon element at the lower right of the widget, and then drag it to the desired size. Grids with a uniform horizontal-to-vertical ratio appear and the size of the widget can be adjusted in each grid.

Moving a widget

Moving a widget

When you move the mouse cursor to the top of the widget, the cursor shape changes to Move icon. At this time, you can move the widget by dragging with your left mouse button and move to the desired position.

Deleting a widget

Deleting a widget

Right-click on a widget to delete. If you select Delete, the widget is deleted from the dashboard.

Adding a widget

Adding a widget

Move the mouse cursor to an empty space on the dashboard and then right-click on it. Select a widget to add from the pop-up menu. Place the widget to the desired position and then resize it.

Note
  • For more information about the widgets that can be placed on the dashboard, see the following.

  • In addition to the metrics provided by default on the dashboard, you can add the desired metrics. For more information about custom widgets, see the following.

Custom widget

The custom widget feature allows users to add their own metrics in addition to the metrics provided by default on the dashboard. If you have metrics to continuously monitor on the dashboard in addition to the metrics provided by default, use the custom widget feature.

Add

  1. Right-click an empty space on the dashboard.

  2. On the pop-up menu, select Add Custom Widgets.

  3. If Custom Widget is created on the dashboard, select Select indicator.

    Custom widget

  4. When the Add Custom Widgets window appears on the right of the screen, enter the widget name in Title.

    Custom widget

  5. In the metrics list at the bottom of the screen, select the Add icon button on the upper right of the metric to add.

  6. After the metric has been changed, select Save.

Note
  • You can add up to four metrics. To add metrics, select Add icon.

  • Ti change the metric, select a different metric in the metrics list. If you select Add icon, the metric is added.

  • If you do not enter the widget title, it is saved as a custom widget.

Selecting the chart type

In chart type of the Add Custom Widgets window, you can select the following types.

  • Graph icon Series: Time series chart that displays the metric changes over time.

  • Graph icon Equalizer: Bar graph chart that can compare the performance for multiple metrics. By visually displaying various metrics on one screen, you can easily see the overall performance status.

  • Graph icon Pie: Pie chart useful for checking the composition ratio for multiple metrics relative to the whole.

  • Text icon Text: It displays the figures for the metrics in text.

Selecting the data merging method

In Merge target of the Add Custom Widgets window, you can select the way to display metrics collected from agents.

  • Sum: It sums up the metric values ​​collected from multiple agents and displays them as a single value. This option is useful for displaying the overall total by merging data from multiple agents.

  • Avg: It averages the metric values ​​collected from multiple agents and displays them as a single value. This option is useful for checking the average performance or status of all agents.

  • Max: By selecting the largest value among the metric values ​​collected from multiple agents, it displays a single value. This option is useful for identifying the highest performance consumption or worst performance cases among agents.

  • No Merge: It displays the metrics for each agent.

Note

The available merge method may differ depending on the chart type.

Changing a metric

You can change or add metrics for the metrics added to the custom widget.

  1. Select Configuration icon on the upper right of the custom widget added on the dashboard.

  2. When the Add Custom Widgets window appears on the right of the screen, select a metric to change.

    Custom widget

  3. Select a metric to change from the metric list at the bottom of the screen. To add a metric, select Add icon on the upper right of the metric to add.

  4. After the metric has been changed, select Save.

Tip

The features of the icon buttons in the list for added or changed metrics are as follows:

  • Delete icon: You can exclude the metric from the custom widget.

  • Alert icon: You can set the alert for the metric. When the button is selected, the Alert > Event Configuration appears. For more information about the Metrics event setting, see the following.

Widget Options

The icons displayed on the widget function as follows:

  • Information icon: You can see the features and information for major widgets. (multilingual support planned)

  • Up arrow icon or Down arrow icon: You can enlarge or reduce the range of the vertical axis.

  • Fullscreen icon: You can view the widget's data on a wider screen.

  • Detail icon : A detail window appears where you can search the data of the widgets separately by agent.

Note

The provided options may differ depending on the widget.

Preset Setting

You can save and load the settings and layouts for widgets on the dashboard. You can create a new preset by adjusting its size and placing it on the desired position.

Preset

Note
  • The dashboard settings that can be stored into a preset are as follows:

    • Widget size and location

    • Settings defined in the custom widget

    • Width, filter, and selected column values ​​of the table defined in the Session Table widget.

  • The default preset (Default) cannot be changed.

  • Depending on the database environment, some presets may not be supported.

  • You can save or modify the presets with the Edit project role. For more information about the member roles, see the following.

Creating a new preset

  1. Place the widgets in the desired format on the dashboard. You can also resize and place only the widgets to be frequently checked.

  2. On the upper right of the screen, select Save icon.

  3. Enter a new preset name.

    Preset

    To save the selected agent data, select Include agent selection history.

  4. Select Save.

You can see the newly saved preset from the preset list.

Note
  • If any changes are made to the newly created preset, save the preset again. Select Save icon and then save the preset with the same name. Any changes are overwritten in the existing preset.

  • If you go to another menu without saving changes on the dashboard, the changes are not saved.

  • Presets are saved on a project basis and can be shared with other users.

Deleting presets

If you have unused presets, you can delete them from the preset list. Select Delete icon on the right of the item to delete from the preset list.

Note

The Default preset cannot be deleted.

Learning about the main widgets

The types of widgets that can be placed on the dashboard are as follows.

Database widgets

The provided widgets allow you to check the status of various system resources, such as CPU, memory, and disk I/O, as key metrics for database performance analysis.

  • CPU (cpu_usage_total)

    You can see the CPU utilization (%) for each instance. This value is calculated using the CPU metric in the SYSIBMADM.ENV_SYS_RESOURCE management view's metadata.

  • Memory (mem)

    You can see the memory utilization (%) for each instance. This value is calculated using the memory metric in the SYSIBMADM.ENV_SYS_RESOURCE management view's metadata.

  • Index Physical Reads (index_physical_reads)

    It is the number of index pages read from disk in the database. This important metric evaluates the disk I/O performance. A higher value indicates increase in disk operation. It is used to identify disk I/O bottlenecks or analyze the index efficiency.

  • Logical I/O (data_logical_reads)

    It is the total number of pages read from the buffer pool in the database. It is the metric of the caching operations in memory of the system. A high value may indicate that the buffer pool is operating efficiently. By comparing logical reads and physical reads, the efficiency of the buffer pool can be analyzed.

  • Physical I/O (data_physical_reads)

    It is the total number of pages read from disk in the database. This metric displays physical I/O operations and may increase if the buffer pool is unable to cache data. You can identify disk I/O bottlenecks and tune them to reduce physical disk accesses.

  • Data Hit Ratio(%) (data_hit_ratio)

    It is the ratio of logical reads to physical reads, indicating the proportion of data cached in the buffer pool. A high value indicates that most data read operations are being processed in memory. It is used when analyzing the buffer pool size and policy for optimization of the database performance.

  • Index Hit Ratio(%) (index_hit_ratio)

    It is the ratio of logical index reads to physical index reads. A high value indicates that the index is being processed efficiently in memory.

  • Total Hit Ratio(%) (total_hit_ratio)

    It is the ratio of logical reads to physical reads for all data and index reads. It is a key metric for evaluating the caching efficiency of the entire database. It can be used to analyze the overall caching performance of the database operating environment and to prioritize tuning.

Session Table widget

  • Active sessions

    You can view active sessions and queries. If you select an item in the rightmost query column in the table, the SQL details window appears. You can see the full text and plan information for the selected query. For more information, see the following.

  • Lock tree

    You can see the lock session information, and holder and waiter information in real time. For more information about the table columns, see the following.

Note

In the table list, the text colors are changed black → orangeRed, which means that the performance of the session is getting slower.

View SQL Details

To check the SQL query information of the executing session, select the query (or sql_text) column in the Active sessions section. The SQL details window appears. You can check the SQL query statements and plan information.

Click the View SQL Statistics button to move to SQL statistics,
where you can view statistical information related to the selected SQL query.

SQL details

  • Default Bind: You can bind the part set as a variable in the query sentence to the default value.

  • Reset Bind: You can release the bound default value and check the variable.

  • Formatting: You can improve readability by applying indentation and formatting to a SQL query statement.

Column information guide

ItemDescription
instanceName of the DB2 instance (agent).
dbnameDatabase name.
application_handleUnique handle value that identifies a specific application.
usernameUser name of the current session.
stateCurrent state of the session.
activity_typeType of the operation running in the session.
queryContent of the SQL query running in the session.
application_idUnique ID for the application used to distinguish sessions.
application_nameName of the application the session is running in.
client_hostnameHostname or IP address of the client that initiated the session.
last_reference_timeTime when a final action was executed in the session.
local_start_timeLocal time when the session was initialized.
query_hashUnique hash value for the query being executed to identify the query content.
runtimeTime when the current session was run.
timeTotal time the session was spent for tasks.
Note

WhaTap basically stores the client-related information.

Downloading the view list

You can download the current Session Table list in CSV format. Select Download icon on the upper right of the Session Table section.

The naming format of the downloaded file is as follows:

Viewing in a new window

You can see the Session Table list on a new wider screen. Select New window icon on the upper right of the Session Table section.