# Real-Time Monitoring Settings

## Contents
Overview Configuring Monitoring Settings Configuring Service Monitor Settings

## Overview
The real-time monitoring settings are configured at the Process level. For example, these enable you to specify monitoring of the message path and message content. The Real-time Monitoring Console and Service Monitor use this data to display graphical reports in their web-based interfaces. In addition, for Service Monitor, you can also specify the database to which the Process writes metrics data.
## Configuring Monitoring Settings
To configure real-time monitoring settings, right-click the Process (for example, the default Oracle Enterprise Gateway), and select Monitoring -> Metrics. The following fields are available on the Real time monitoring dialog. Name: Enter a descriptive name for these monitoring settings in this field. Enable real time monitoring: This setting enables real-time monitoring globally for the Enterprise Gateway. This checkbox must be selected to monitor traffic processed by the Enterprise Gateway, and is enabled by default. To disable real-time monitoring, unselect this checkbox. Important Note: Enabling real-time monitoring has a negative impact on performance. If you wish to maximize performance, do not enable this setting.
## Configuring Service Monitor Settings
Store real time monitoring data for charts/reports: If you wish real-time monitoring data to be written to a database, select this checkbox. This enables the following fields. Use the following database: If you have already configured the database that you wish to store the metrics data in, you can select it from this drop-down list. You can add databases as global configuration items under the External Connections node in the Policy Studio tree view. For more information on configuring database connections, see the Database Connection topic. Note: Service Monitor must be configured to read metrics data from the database that the Enterprise Gateway is configured to write the metrics data to. For more details, see the Service Monitor Installation Guide. Time window to store: This setting determines the time period over which metrics are accumulated and enables you to view messages processed over this interval (for example, the number of messages processed over a 5 second interval). There are three time window sizes available to specify the granularity of the monitoring data: 5 seconds, 5 minutes, and 1 hour. When storing metrics into the database, metrics for a 5 second time window are stored by default. To store metrics for a longer time window size, select a longer value. It is important to note that storing metrics with shorter time window sizes can fill the database quickly and may cause reports rendered from the database to be slow. The time window selected determines when reports are generated and viewed. Metrics for all time window sizes are always stored and made available to Service Monitor at the end of the time window interval. All time windows start at 0:00:00, and the count from there uses the specified window: hourly metrics at hour intervals, 5 minutes at 5 minute intervals, and 5 seconds at 5 second intervals. For example, if the Enterprise Gateway is configured to store hourly metrics, this data is not available to Service Monitor until the hour comes to an end. Finally, it is important to note that if you have configured the Enterprise Gateway to store metrics using hourly time periods, you can not view metrics for 5 second or 5 minute time windows in Service Monitor. On the other hand, if you have configured 5 second time periods, you can only view metrics for 5 second and hourly time windows in Service Monitor, but not 5 minutes.