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
86ac6f79
Commit
86ac6f79
authored
3 years ago
by
Paweł Krupa (paulfantom)
Browse files
Options
Downloads
Patches
Plain Diff
jsonnet: filter out kube-proxy alerts when kube-proxy is disabled
Signed-off-by:
Paweł Krupa (paulfantom)
<
pawel@krupa.net.pl
>
parent
6bfb07aa
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/components/k8s-control-plane.libsonnet
+8
-0
8 additions, 0 deletions
...et/kube-prometheus/components/k8s-control-plane.libsonnet
with
8 additions
and
0 deletions
jsonnet/kube-prometheus/components/k8s-control-plane.libsonnet
+
8
−
0
View file @
86ac6f79
...
...
@@ -37,6 +37,14 @@ function(params) {
mixin
::
(
import
'github.com/kubernetes-monitoring/kubernetes-mixin/mixin.libsonnet'
)
{
_config
+::
k8s
.
_config
.
mixin
.
_config
,
}
+
{
// Filter-out alerts related to kube-proxy when `kubeProxy: false`
[
if
!
(
defaults
+
params
).
kubeProxy
then
'prometheusAlerts'
]+::
{
groups
:
std
.
filter
(
function
(
g
)
!
std
.
member
([
'kubernetes-system-kube-proxy'
],
g
.
name
),
super
.
groups
),
},
},
prometheusRule
:
{
...
...
This diff is collapsed.
Click to expand it.
Botaniker (Bot)
@botaniker
mentioned in commit
701e3c91
·
3 years ago
mentioned in commit
701e3c91
mentioned in commit 701e3c91ebca4df330158170cc2c3e2fda0d31b5
Toggle commit list
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