Skip to main content

Centralised notification

Last updated on

Overview

Harness centralised notifications allow you to send notifications based on rules and conditions across pipelines, delegates, and GitOps applications. You can configure and manage alerts to stay informed about critical events in your Harness environment.

You can configure centralised notifications for:

  • Pipelines: Get notified about pipeline events like success, failure, or stage completion.
  • Delegates: Receive alerts when delegates disconnect, expire, or are about to expire.
  • GitOps Applications: Get notified about application sync and health events, such as sync success/failure, out-of-sync drift, and health degradation.

Pipeline Notifications

Prerequisites

Before you begin, ensure you have the following feature flags enabled. Contact Harness Support to enable them.

  • PIPE_CENTRALISED_NOTIFICATION: Required for centralized pipeline notifications.
  • PIPE_PIPELINE_RESUME_NOTIFICATION: Required for the Pipeline Resumed event.

Centralised Notifications for pipelines allow you to configure notifications for multiple pipelines at once instead of setting them up individually. You can create rules at different scopes—Account, Organisation, or Project—with each scope providing appropriate targeting options for the pipelines within its hierarchy.

These notifications are beneficial for tracking pipeline start, success, and failure events, as well as stage-level events (start, success, failure). This helps you monitor pipeline health and quickly identify issues across your deployment processes.

You can also configure the Waiting for User Action event in centralized notification rules. This event fires whenever a pipeline pauses for user input, such as an Approval step, Manual Intervention, or runtime execution input. When you add this event as a condition in a centralized notification rule, alerts are sent across all pipelines that match the rule's scope—without requiring per-pipeline configuration.

Configuration Steps

Delegate Notifications

Central Delegate notifications provide proactive monitoring of Harness delegates, ensuring that you are immediately aware of connectivity issues and expiration. Rules configured at higher scopes automatically apply to delegates at lower scopes, based on your rule configuration.

These notifications help track delegate disconnection, expiration, and expiring soon events, allowing you to monitor delegate health and quickly identify connectivity issues that could impact your deployments.

Configuration Steps

GitOps application notifications

Centralised notifications for GitOps allow you to receive alerts for application sync and health events. This gives you visibility into your GitOps environment without configuring notifications on individual applications or pipelines. All five notification channels (Slack, Microsoft Teams, email, webhooks, and PagerDuty) are supported.

Supported events

The following events are available for GitOps application notification rules:

EventDescription
Application Sync SucceededFires when a sync operation completes successfully.
Application Sync FailedFires when a sync operation fails.
Application Out Of SyncFires when an application's live cluster state drifts from the desired Git state.
Application Health DegradedFires when an application's health status changes to degraded.
Custom notification templates

Custom notification templates are not supported for GitOps application notifications. Notifications use the default template.

Configure GitOps application notifications

  1. Access Notification Management

    • Go to Account Settings, then General, then Notifications Management.
    • Select + New Notification to create a new rule.
  2. Set up GitOps Notification Rule

    • Provide a Notification Name and select Continue.
    • Select GitOps Application as the Resource Type.
    • Choose your scope: All Organizations or Specified Organizations.
    • Select Continue.
  3. Set conditions

    • Select + Add Condition to specify when notifications trigger.
    • Enter a Condition Name.
    • Select the relevant GitOps Events (Sync Succeeded, Sync Failed, Out Of Sync, Health Degraded).
    • Select Continue.
  4. Configure channels

    • Select notification channels (Slack, Microsoft Teams, email, webhooks, or PagerDuty).
    • Choose existing channels or create new ones.
    • Select Submit to save your configuration.

Service account (SA) token notifications

Service account token notifications alert you when tokens are created, updated, rotated, deleted, or nearing expiration. Since expired tokens can lead to pipeline and automation failures, it is important to stay ahead of their lifecycle.

SA token expiry notifications provide advance warnings, allowing you to rotate or renew tokens before they disrupt your workflows.

Feature availability

This feature requires the PL_SERVICE_ACCOUNT_NOTIFICATION feature flag. Contact Harness support to enable it.

Before you begin

Make sure you have access to a Harness account with the following permissions:

  • View permission for Service accounts
  • View permission for Notification channels
  • View, Create/Edit permission for Notification rules

Configure service account token notifications

Important
  • When a service account is deleted, its notification rules are updated asynchronously. If the deleted service account was the only one in a rule, that rule is automatically removed.
  • All timestamps shown in notification messages are in UTC.

You can configure notifications for an existing service account or create a new one. To create a new service account, see the Create a service account guide.