starting prometheus alerter
This commit is contained in:
@@ -35,6 +35,29 @@ type configPrometheus struct {
|
||||
NumGroupDeleted prometheus.Gauge
|
||||
}
|
||||
|
||||
type alertmanagerStruct struct {
|
||||
Version string `json:"version"`
|
||||
GroupKey string `json:"groupKey"`
|
||||
TruncatedAlerts int `json:"truncatedAlerts"`
|
||||
Status string `json:"status"`
|
||||
Reciver string `json:"receiver"`
|
||||
GroupLabels string `json:"groupLabels"`
|
||||
ComminLabels string `json:"commonLabels"`
|
||||
CommonAnnotaations string `json:"commonAnnotations"`
|
||||
ExternalURL string `json:"externalURL"`
|
||||
Alerts []alertmanagerAlertsStruct `json:"alerts"`
|
||||
}
|
||||
|
||||
type alertmanagerAlertsStruct struct {
|
||||
Status string `json:"status"`
|
||||
Labels string `json:"labels"`
|
||||
Annotations string `json:"annotations"`
|
||||
StartsAt string `json:"startsAt"`
|
||||
EndsAt string `json:"endsAt"`
|
||||
GeneratorURL string `json:"generatorURL"`
|
||||
Fingerprint string `json:"fingerprint"`
|
||||
}
|
||||
|
||||
var config = configStructure{
|
||||
TimeFormat: "2006-01-02 15:04:05",
|
||||
Log: &logutils.LevelFilter{
|
||||
|
Reference in New Issue
Block a user