---
title: Set up service health monitoring
description: Configure segmented analysis to access drill-down analysis of service health, data drift, and accuracy statistics by filtering them into unique segment attributes and values.

---

# Set up service health monitoring

On a deployment's **Service Health > Settings** tab, you can enable [segmented analysis](deploy-segment) for service health; however, to use segmented analysis for data drift and accuracy, you must also enable the following deployment settings: 

* [Enable target monitoring](data-drift-settings) (required to enable data drift _and_ accuracy tracking)

* [Enable feature drift tracking](data-drift-settings) (required to enable data drift tracking)

Once you've enabled the tracking required for your deployment, configure segment analysis to access segmented analysis of [service health](deploy-segment#service-health), [data drift](deploy-segment#data-drift-and-accuracy), and [accuracy](deploy-segment#data-drift-and-accuracy) statistics by filtering them into unique segment attributes and values.

On a deployment's **Service Health > Settings** tab, you can configure the **Service Health Settings**:

![](images/service-health-settings.png)

| Field                    | Description                |
|--------------------------|----------------------------|
|  **Segmented Analysis**  | :~~: |
| [Track attributes for segmented analysis of training data and predictions](deploy-segment) | Enables DataRobot to monitor deployment predictions by segments, for example by categorical features. | 
|  **Notifications**           | :~~: |
| [Send notification](#schedule-service-health-monitoring-notifications) | Configures the service health monitoring notification schedule. |

After enabling segmented analysis, you must specify the segment attributes to track in training and prediction data before making predictions. Selecting a segment attribute for tracking causes the model's data to be segmented by the attribute, allowing users to closely analyze the segment values that comprise the attributes selected for tracking. Attributes used for segmented analysis must be present in the training dataset for a deployed model, but they don't need to be features of the model. The list of segment attributes available for tracking is limited to categorical features, except the selected series ID used by multiseries deployments. To track an attribute, add it to the **Track attributes for segmented analysis of training data and predictions** field. The "Consumer" attribute (representing users making prediction requests) is always listed by default. 

![](images/segment-5.png)

For time series deployments with segmented analysis enabled, DataRobot automatically adds up to two segmented attributes: `Forecast Distance` and `series id` (the ID is only provided for multiseries models). Forecast distance is automatically available as a segment attribute without being explicitly present in the training dataset; it is inferred based on the forecast point and the date being predicted on. These attributes allow you to view accuracy and drift for a specific forecast distance, series, or other defined attribute.

![](images/segment-10.png)

When you have finalized the attributes to track, click **Save**.

[Make predictions](../../predictions/index) and navigate to the tab you want to analyze for your deployment by segment: [**Service Health**](deploy-segment#service-health), [**Data Drift**](deploy-segment#data-drift-and-accuracy), or [**Accuracy**](deploy-segment#data-drift-and-accuracy). 

!!! important 
    Segmented analysis is only available for predictions made after the segmented analysis is enabled.


## Schedule service health monitoring notifications {: #schedule-service-health-monitoring-notifications }

Service health tracks metrics about a deployment’s ability to respond to prediction requests quickly and reliably. You can visualize service health on the [Service Health](service-health) tab.

!!! note
    Only deployment _Owners_ can modify data drift monitoring settings; however, _Users_ can [configure the conditions under which notifications are sent to them](deploy-notifications). _Consumers_ cannot modify monitoring or notification settings.

To schedule service health monitoring email notifications:

1. On the **Service Health Settings** page, in the **Notifications** section, select the **Send notifications** checkbox.

2. Configure the settings for service health notifications:

    ![](images/deploy-monitoring-service-health.png)

    The following table lists the scheduling options. All times are displayed in your configured time zone:

    | Frequency       | Description |
    |-----------------|-------------|
    | Every hour      | Each hour on the 0 minute        |
    | Every day       | Each day at the configured hour* |
    | Every week      | Configurable day and hour        |
    | Every month     | Configurable date (`1`-`31`) and hour |
    | Every quarter   | Configurable number of days (`1`-`31`) past the first day of January, April, July, October, at the configured hour |

     _* The cadence setting applies across all days selected. In other words, you cannot set checks to occur every 12 hours on Saturday and every 2 hours on Monday._

3. After updating the scheduling settings, click **Save**.
    
    At the configured time, DataRobot sends emails to subscribers.