Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
kube-prometheus
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
prometheus-operator
kube-prometheus
Commits
48ab110e
Commit
48ab110e
authored
6 years ago
by
Golubkov Igor
Browse files
Options
Downloads
Patches
Plain Diff
Update unit tests
parent
16b14786
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jsonnet/kube-prometheus/alerts/tests.yaml
+113
-0
113 additions, 0 deletions
jsonnet/kube-prometheus/alerts/tests.yaml
with
113 additions
and
0 deletions
jsonnet/kube-prometheus/alerts/tests.yaml
+
113
−
0
View file @
48ab110e
...
@@ -24,6 +24,10 @@ tests:
...
@@ -24,6 +24,10 @@ tests:
-
exp_labels
:
-
exp_labels
:
service
:
'
alertmanager-main'
service
:
'
alertmanager-main'
severity
:
critical
severity
:
critical
job
:
'
alertmanager-main'
instance
:
10.10.10.0
namespace
:
monitoring
pod
:
alertmanager-main-0
exp_annotations
:
exp_annotations
:
message
:
'
Alertmanager
has
not
found
all
other
members
of
the
cluster.'
message
:
'
Alertmanager
has
not
found
all
other
members
of
the
cluster.'
-
eval_time
:
17m
-
eval_time
:
17m
...
@@ -32,6 +36,10 @@ tests:
...
@@ -32,6 +36,10 @@ tests:
-
exp_labels
:
-
exp_labels
:
service
:
'
alertmanager-main'
service
:
'
alertmanager-main'
severity
:
critical
severity
:
critical
job
:
'
alertmanager-main'
instance
:
10.10.10.0
namespace
:
monitoring
pod
:
alertmanager-main-0
exp_annotations
:
exp_annotations
:
message
:
'
Alertmanager
has
not
found
all
other
members
of
the
cluster.'
message
:
'
Alertmanager
has
not
found
all
other
members
of
the
cluster.'
-
eval_time
:
23m
-
eval_time
:
23m
...
@@ -40,5 +48,110 @@ tests:
...
@@ -40,5 +48,110 @@ tests:
-
exp_labels
:
-
exp_labels
:
service
:
'
alertmanager-main'
service
:
'
alertmanager-main'
severity
:
critical
severity
:
critical
job
:
'
alertmanager-main'
instance
:
10.10.10.0
namespace
:
monitoring
pod
:
alertmanager-main-0
exp_annotations
:
message
:
'
Alertmanager
has
not
found
all
other
members
of
the
cluster.'
-
interval
:
1m
input_series
:
-
series
:
'
alertmanager_cluster_members{job="alertmanager-main",instance="10.10.10.0",namespace="monitoring",pod="alertmanager-main-0",service="alertmanager-main"}'
values
:
'
3
3
3
3
3
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1'
-
series
:
'
alertmanager_cluster_members{job="alertmanager-main",instance="10.10.10.1",namespace="monitoring",pod="alertmanager-main-1",service="alertmanager-main"}'
values
:
'
3
3
3
3
3
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2'
-
series
:
'
alertmanager_cluster_members{job="alertmanager-main",instance="10.10.10.2",namespace="monitoring",pod="alertmanager-main-2",service="alertmanager-main"}'
values
:
'
3
3
3
3
3
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2'
alert_rule_test
:
-
eval_time
:
5m
alertname
:
AlertmanagerMembersInconsistent
-
eval_time
:
11m
alertname
:
AlertmanagerMembersInconsistent
exp_alerts
:
-
exp_labels
:
service
:
'
alertmanager-main'
severity
:
critical
job
:
'
alertmanager-main'
instance
:
10.10.10.0
namespace
:
monitoring
pod
:
alertmanager-main-0
exp_annotations
:
message
:
'
Alertmanager
has
not
found
all
other
members
of
the
cluster.'
-
exp_labels
:
service
:
'
alertmanager-main'
severity
:
critical
job
:
'
alertmanager-main'
instance
:
10.10.10.1
namespace
:
monitoring
pod
:
alertmanager-main-1
exp_annotations
:
message
:
'
Alertmanager
has
not
found
all
other
members
of
the
cluster.'
-
exp_labels
:
service
:
'
alertmanager-main'
severity
:
critical
job
:
'
alertmanager-main'
instance
:
10.10.10.2
namespace
:
monitoring
pod
:
alertmanager-main-2
exp_annotations
:
message
:
'
Alertmanager
has
not
found
all
other
members
of
the
cluster.'
-
eval_time
:
17m
alertname
:
AlertmanagerMembersInconsistent
exp_alerts
:
-
exp_labels
:
service
:
'
alertmanager-main'
severity
:
critical
job
:
'
alertmanager-main'
instance
:
10.10.10.0
namespace
:
monitoring
pod
:
alertmanager-main-0
exp_annotations
:
message
:
'
Alertmanager
has
not
found
all
other
members
of
the
cluster.'
-
exp_labels
:
service
:
'
alertmanager-main'
severity
:
critical
job
:
'
alertmanager-main'
instance
:
10.10.10.1
namespace
:
monitoring
pod
:
alertmanager-main-1
exp_annotations
:
message
:
'
Alertmanager
has
not
found
all
other
members
of
the
cluster.'
-
exp_labels
:
service
:
'
alertmanager-main'
severity
:
critical
job
:
'
alertmanager-main'
instance
:
10.10.10.2
namespace
:
monitoring
pod
:
alertmanager-main-2
exp_annotations
:
message
:
'
Alertmanager
has
not
found
all
other
members
of
the
cluster.'
-
eval_time
:
23m
alertname
:
AlertmanagerMembersInconsistent
exp_alerts
:
-
exp_labels
:
service
:
'
alertmanager-main'
severity
:
critical
job
:
'
alertmanager-main'
instance
:
10.10.10.0
namespace
:
monitoring
pod
:
alertmanager-main-0
exp_annotations
:
message
:
'
Alertmanager
has
not
found
all
other
members
of
the
cluster.'
-
exp_labels
:
service
:
'
alertmanager-main'
severity
:
critical
job
:
'
alertmanager-main'
instance
:
10.10.10.1
namespace
:
monitoring
pod
:
alertmanager-main-1
exp_annotations
:
message
:
'
Alertmanager
has
not
found
all
other
members
of
the
cluster.'
-
exp_labels
:
service
:
'
alertmanager-main'
severity
:
critical
job
:
'
alertmanager-main'
instance
:
10.10.10.2
namespace
:
monitoring
pod
:
alertmanager-main-2
exp_annotations
:
exp_annotations
:
message
:
'
Alertmanager
has
not
found
all
other
members
of
the
cluster.'
message
:
'
Alertmanager
has
not
found
all
other
members
of
the
cluster.'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment