// Copyright 2013 Prometheus Team // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package io.prometheus.alertmanager; // Configuration for notification via PagerDuty. message PagerDutyConfig { // PagerDuty service key, see: // http://developer.pagerduty.com/documentation/integration/events optional string service_key = 1; } // Configuration for notification via mail. message EmailConfig { // Email address to notify. optional string email = 1; } // Notification configuration definition. message NotificationConfig { // Name of this NotificationConfig. Referenced from AggregationRule. optional string name = 1; // Zero or more PagerDuty notification configurations. repeated PagerDutyConfig pagerduty_config = 2; // Zero or more email notification configurations. repeated EmailConfig email_config = 3; } // A regex-based label filter used in aggregations. message Filter { // The regex matching the label name. optional string name_re = 1; // The regex matching the label value. optional string value_re = 2; } // Grouping and notification setting definitions for alerts. message AggregationRule { // Filters that define which alerts are matched by this AggregationRule. repeated Filter filter = 1; // How many seconds to wait before resending a notification for a specific alert. optional int32 repeat_rate_seconds = 2 [default = 7200]; // Notification configuration to use for this AggregationRule, referenced by // their name. optional string notification_config_name = 3; } // Global alert manager configuration. message AlertManagerConfig { // Aggregation rule definitions. repeated AggregationRule aggregation_rule = 1; // Notification configuration definitions. repeated NotificationConfig notification_config = 2; }