Skip to main content

Connect a feature flag


Currently, this feature is behind the feature flag SRM_CUSTOM_CHANGE_SOURCE. Contact Harness Support to enable the feature.

Connecting a feature flag to a monitored service helps you monitor the impact of a change in the status of a feature flag on service health. The following steps explain how to connect a feature flag to a monitored service.

  1. In your Harness project, navigate to the Feature Flags module, and then select Feature Flags.
    A list of all your feature flags is displayed.

    Feature flags list

  2. Select the feature flag that you want to connect to a monitored service.
    The feature flag settings page appears.

    Feature flag Settings

  3. In the Services section, select the pencil icon.
    The Monitored Service dialog appears.

  4. Select the monitored service to which you want to connect the feature flag. You can connect a single feature flag to multiple monitored services.

  5. Select Save.
    The feature flag gets connected to the monitored service that you selected.

The monitored service that you selected appears in the Services section.

Whenever the feature flag is turned off or on, a change event is recorded in the Service Health page of the monitored service.

The following figure shows an event getting recorded on the Service Health page of the monitored service when the feature flag is turned on.

FF event generated