diff --git a/prometheus/values.yaml b/prometheus/values.yaml index e8993afec..c13727044 100644 --- a/prometheus/values.yaml +++ b/prometheus/values.yaml @@ -211,6 +211,11 @@ network: enabled: false port: 30900 +network_policy: + prometheus: + ingress: + - {} + secrets: tls: monitoring: @@ -234,7 +239,7 @@ manifests: ingress: true helm_tests: true job_image_repo_sync: true - network_policy: false + network_policy: true secret_ingress_tls: true secret_prometheus: true service_ingress: true @@ -1195,7 +1200,7 @@ conf: description: Prometheus failed to scrape API server(s), or all API servers have disappeared from service discovery. summary: API server unreachable - alert: K8SApiServerLatency - expr: histogram_quantile(0.99, sum(apiserver_request_latencies_bucket{verb!~"CONNECT|WATCHLIST|WATCH|PROXY|DELETECOLLECTION"}) WITHOUT (instance, resource)) / 1e+06 > 1 + expr: histogram_quantile(0.99, sum(apiserver_request_latencies_bucket{verb!~"CONNECT|WATCHLIST|WATCH|PROXY"}) WITHOUT (instance, resource)) / 1e+06 > 1 for: 10m labels: severity: warning diff --git a/tools/deployment/network-policy/050-prometheus.sh b/tools/deployment/network-policy/050-prometheus.sh index 825ca34e0..3de12c70b 100755 --- a/tools/deployment/network-policy/050-prometheus.sh +++ b/tools/deployment/network-policy/050-prometheus.sh @@ -19,7 +19,7 @@ set -xe #NOTE: Lint and package chart make prometheus -tee /tmp/prometheus.yaml <