Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SummaryLabel is the name of the label containing the an alert's summary. SummaryLabel = "summary" // DescriptionLabel is the name of the label containing the an alert's description. DescriptionLabel = "description" // SourceLabel is the name of the label containing the an alert's source. SourceLabel = "source" // SeverityLabel is the name of the label containing the an alert's severity. SeverityLabel = "severity" // ComponentLabel is the name of the label containing the an alert's component. ComponentLabel = "component" // GroupLabel is the name of the label containing the an alert's group. GroupLabel = "group" )
Variables ¶
View Source
var ( // PrometheusAlertGeneratedDiagnosisPrefix is the name prefix for diagnoses generated by prometheus alerts. PrometheusAlertGeneratedDiagnosisPrefix = "prometheus-alert" // PrometheusAlertAnnotation is the annotation used to store the prometheus alert that triggers a diagnosis. PrometheusAlertAnnotation = util.KubeDiagPrefix + PrometheusAlertGeneratedDiagnosisPrefix )
Functions ¶
This section is empty.
Types ¶
type Alert ¶ added in v0.3.1
func (*Alert) Component ¶ added in v0.3.1
Component returns the component of the alert. It is equivalent to the "component" label.
func (*Alert) Description ¶ added in v0.3.1
Description returns the description of the alert. It is equivalent to the "description" label.
func (*Alert) Group ¶ added in v0.3.1
Group returns the group of the alert. It is equivalent to the "group" label.
func (*Alert) Severity ¶ added in v0.3.1
Severity returns the severity of the alert. It is equivalent to the "severity" label.
type Alertmanager ¶
type Alertmanager interface { // Handler handles http requests. Handler(http.ResponseWriter, *http.Request) }
Alertmanager can handle valid post alerts requests.
Click to show internal directories.
Click to hide internal directories.