Skip to content

Commit

Permalink
Merge pull request #211 from appuio/fix/alertmanager-no-gossip-netpol
Browse files Browse the repository at this point in the history
Fix alertmanager-allow-web networkpolicy
  • Loading branch information
haasad authored Aug 5, 2024
2 parents df8b8a1 + b222167 commit 947e2ea
Show file tree
Hide file tree
Showing 24 changed files with 69 additions and 68 deletions.
2 changes: 0 additions & 2 deletions component/networkpolicy.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ local params = inv.parameters.openshift4_monitoring;
port: 9097,
},
],
},
{
from: [
{
namespaceSelector: {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ metadata:
namespace: openshift-monitoring
spec:
ingress:
- ports:
- from:
- namespaceSelector: {}
ports:
- port: 9092
protocol: TCP
- port: 9093
Expand All @@ -17,8 +19,6 @@ spec:
protocol: TCP
- port: 9097
protocol: TCP
- from:
- namespaceSelector: {}
podSelector:
matchLabels:
app.kubernetes.io/name: alertmanager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ metadata:
namespace: openshift-user-workload-monitoring
spec:
ingress:
- ports:
- from:
- namespaceSelector: {}
ports:
- port: 9092
protocol: TCP
- port: 9093
Expand All @@ -17,8 +19,6 @@ spec:
protocol: TCP
- port: 9097
protocol: TCP
- from:
- namespaceSelector: {}
podSelector:
matchLabels:
app.kubernetes.io/name: alertmanager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ metadata:
namespace: openshift-monitoring
spec:
ingress:
- ports:
- from:
- namespaceSelector: {}
ports:
- port: 9092
protocol: TCP
- port: 9093
Expand All @@ -17,8 +19,6 @@ spec:
protocol: TCP
- port: 9097
protocol: TCP
- from:
- namespaceSelector: {}
podSelector:
matchLabels:
app.kubernetes.io/name: alertmanager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ metadata:
namespace: openshift-user-workload-monitoring
spec:
ingress:
- ports:
- from:
- namespaceSelector: {}
ports:
- port: 9092
protocol: TCP
- port: 9093
Expand All @@ -17,8 +19,6 @@ spec:
protocol: TCP
- port: 9097
protocol: TCP
- from:
- namespaceSelector: {}
podSelector:
matchLabels:
app.kubernetes.io/name: alertmanager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ metadata:
namespace: openshift-monitoring
spec:
ingress:
- ports:
- from:
- namespaceSelector: {}
ports:
- port: 9092
protocol: TCP
- port: 9093
Expand All @@ -17,8 +19,6 @@ spec:
protocol: TCP
- port: 9097
protocol: TCP
- from:
- namespaceSelector: {}
podSelector:
matchLabels:
app.kubernetes.io/name: alertmanager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ metadata:
namespace: openshift-user-workload-monitoring
spec:
ingress:
- ports:
- from:
- namespaceSelector: {}
ports:
- port: 9092
protocol: TCP
- port: 9093
Expand All @@ -17,8 +19,6 @@ spec:
protocol: TCP
- port: 9097
protocol: TCP
- from:
- namespaceSelector: {}
podSelector:
matchLabels:
app.kubernetes.io/name: alertmanager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ metadata:
namespace: openshift-monitoring
spec:
ingress:
- ports:
- from:
- namespaceSelector: {}
ports:
- port: 9092
protocol: TCP
- port: 9093
Expand All @@ -17,8 +19,6 @@ spec:
protocol: TCP
- port: 9097
protocol: TCP
- from:
- namespaceSelector: {}
podSelector:
matchLabels:
app.kubernetes.io/name: alertmanager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ metadata:
namespace: openshift-user-workload-monitoring
spec:
ingress:
- ports:
- from:
- namespaceSelector: {}
ports:
- port: 9092
protocol: TCP
- port: 9093
Expand All @@ -17,8 +19,6 @@ spec:
protocol: TCP
- port: 9097
protocol: TCP
- from:
- namespaceSelector: {}
podSelector:
matchLabels:
app.kubernetes.io/name: alertmanager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ metadata:
namespace: openshift-monitoring
spec:
ingress:
- ports:
- from:
- namespaceSelector: {}
ports:
- port: 9092
protocol: TCP
- port: 9093
Expand All @@ -17,8 +19,6 @@ spec:
protocol: TCP
- port: 9097
protocol: TCP
- from:
- namespaceSelector: {}
podSelector:
matchLabels:
app.kubernetes.io/name: alertmanager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ metadata:
namespace: openshift-user-workload-monitoring
spec:
ingress:
- ports:
- from:
- namespaceSelector: {}
ports:
- port: 9092
protocol: TCP
- port: 9093
Expand All @@ -17,8 +19,6 @@ spec:
protocol: TCP
- port: 9097
protocol: TCP
- from:
- namespaceSelector: {}
podSelector:
matchLabels:
app.kubernetes.io/name: alertmanager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ metadata:
namespace: openshift-monitoring
spec:
ingress:
- ports:
- from:
- namespaceSelector: {}
ports:
- port: 9092
protocol: TCP
- port: 9093
Expand All @@ -17,8 +19,6 @@ spec:
protocol: TCP
- port: 9097
protocol: TCP
- from:
- namespaceSelector: {}
podSelector:
matchLabels:
app.kubernetes.io/name: alertmanager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ metadata:
namespace: openshift-user-workload-monitoring
spec:
ingress:
- ports:
- from:
- namespaceSelector: {}
ports:
- port: 9092
protocol: TCP
- port: 9093
Expand All @@ -17,8 +19,6 @@ spec:
protocol: TCP
- port: 9097
protocol: TCP
- from:
- namespaceSelector: {}
podSelector:
matchLabels:
app.kubernetes.io/name: alertmanager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2022,6 +2022,7 @@ spec:
description: Prometheus {{$labels.namespace}}/{{$labels.pod}} failed to
send {{ printf "%.1f" $value }}% of the samples to {{ $labels.remote_name}}:{{
$labels.url }}
runbook_url: https://github.com/openshift/runbooks/blob/master/alerts/cluster-monitoring-operator/PrometheusRemoteStorageFailures.md
summary: Prometheus fails to send samples to remote storage.
syn_component: openshift4-monitoring
expr: |
Expand Down Expand Up @@ -2097,6 +2098,7 @@ spec:
description: Prometheus {{$labels.namespace}}/{{$labels.pod}} has failed
{{ printf "%.0f" $value }} scrapes in the last 5m because some targets
exceeded the configured body_size_limit.
runbook_url: https://github.com/openshift/runbooks/blob/master/alerts/cluster-monitoring-operator/PrometheusScrapeBodySizeLimitHit.md
summary: Prometheus has dropped some targets that exceeded body size limit.
syn_component: openshift4-monitoring
expr: |
Expand Down Expand Up @@ -2210,6 +2212,7 @@ spec:
description: Prometheus operator in {{ $labels.namespace }} namespace
rejected {{ printf "%0.0f" $value }} {{ $labels.controller }}/{{ $labels.resource
}} resources.
runbook_url: https://github.com/openshift/runbooks/blob/master/alerts/cluster-monitoring-operator/PrometheusOperatorRejectedResources.md
summary: Resources rejected by Prometheus operator
syn_component: openshift4-monitoring
expr: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ metadata:
namespace: openshift-monitoring
spec:
ingress:
- ports:
- from:
- namespaceSelector: {}
ports:
- port: 9092
protocol: TCP
- port: 9093
Expand All @@ -17,8 +19,6 @@ spec:
protocol: TCP
- port: 9097
protocol: TCP
- from:
- namespaceSelector: {}
podSelector:
matchLabels:
app.kubernetes.io/name: alertmanager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ metadata:
namespace: openshift-user-workload-monitoring
spec:
ingress:
- ports:
- from:
- namespaceSelector: {}
ports:
- port: 9092
protocol: TCP
- port: 9093
Expand All @@ -17,8 +19,6 @@ spec:
protocol: TCP
- port: 9097
protocol: TCP
- from:
- namespaceSelector: {}
podSelector:
matchLabels:
app.kubernetes.io/name: alertmanager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ metadata:
namespace: openshift-monitoring
spec:
ingress:
- ports:
- from:
- namespaceSelector: {}
ports:
- port: 9092
protocol: TCP
- port: 9093
Expand All @@ -17,8 +19,6 @@ spec:
protocol: TCP
- port: 9097
protocol: TCP
- from:
- namespaceSelector: {}
podSelector:
matchLabels:
app.kubernetes.io/name: alertmanager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ metadata:
namespace: openshift-user-workload-monitoring
spec:
ingress:
- ports:
- from:
- namespaceSelector: {}
ports:
- port: 9092
protocol: TCP
- port: 9093
Expand All @@ -17,8 +19,6 @@ spec:
protocol: TCP
- port: 9097
protocol: TCP
- from:
- namespaceSelector: {}
podSelector:
matchLabels:
app.kubernetes.io/name: alertmanager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ metadata:
namespace: openshift-monitoring
spec:
ingress:
- ports:
- from:
- namespaceSelector: {}
ports:
- port: 9092
protocol: TCP
- port: 9093
Expand All @@ -17,8 +19,6 @@ spec:
protocol: TCP
- port: 9097
protocol: TCP
- from:
- namespaceSelector: {}
podSelector:
matchLabels:
app.kubernetes.io/name: alertmanager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ metadata:
namespace: openshift-user-workload-monitoring
spec:
ingress:
- ports:
- from:
- namespaceSelector: {}
ports:
- port: 9092
protocol: TCP
- port: 9093
Expand All @@ -17,8 +19,6 @@ spec:
protocol: TCP
- port: 9097
protocol: TCP
- from:
- namespaceSelector: {}
podSelector:
matchLabels:
app.kubernetes.io/name: alertmanager
Expand Down
Loading

0 comments on commit 947e2ea

Please sign in to comment.