Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cluster-02
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
K8S
cluster-02
Commits
e6c0f1fd
Verified
Commit
e6c0f1fd
authored
2 years ago
by
Rafael László
Browse files
Options
Downloads
Patches
Plain Diff
Update nginx monitoring
parent
454391ce
No related branches found
No related tags found
No related merge requests found
Pipeline
#38977
passed
2 years ago
Stage: plan
Stage: apply
Stage: ansible
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
infra/ingress-nginx/values.yaml
+50
-52
50 additions, 52 deletions
infra/ingress-nginx/values.yaml
with
50 additions
and
52 deletions
infra/ingress-nginx/values.yaml
+
50
−
52
View file @
e6c0f1fd
...
...
@@ -49,58 +49,56 @@ ingress-nginx:
type
:
LoadBalancer
loadBalancerIP
:
152.66.192.38
# TODO
# metrics:
# enabled: true
# service:
# annotations: {} # With prometheus operator you need a ServiceMonitor
# serviceMonitor:
# enabled: true
# namespace: "monitoring"
# additionalLabels:
# release: monitoring
# # TODO
# prometheusRule:
# enabled: true
# additionalLabels:
# release: monitoring
# namespace: "monitoring"
# rules:
# - alert: NGINXConfigFailed
# expr: count(nginx_ingress_controller_config_last_reload_successful == 0) > 0
# for: 1s
# labels:
# severity: critical
# annotations:
# description: bad ingress config - nginx config test failed
# summary: uninstall the latest ingress changes to allow config reloads to resume
# - alert: NGINXCertificateExpiry
# expr: (avg(nginx_ingress_controller_ssl_expire_time_seconds) by (host) - time()) < 604800
# for: 1s
# labels:
# severity: critical
# annotations:
# description: ssl certificate(s) will expire in less then a week
# summary: renew expiring certificates to avoid downtime
# - alert: NGINXTooMany500s
# expr: 100 * ( sum( nginx_ingress_controller_requests{status=~"5.+"} ) / sum(nginx_ingress_controller_requests) ) > 5
# for: 1m
# labels:
# severity: warning
# annotations:
# description: Too many 5XXs
# summary: More than 5% of all requests returned 5XX, this requires your attention
# - alert: NGINXTooMany400s
# expr: 100 * ( sum( nginx_ingress_controller_requests{status=~"4.+"} ) / sum(nginx_ingress_controller_requests) ) > 30
# for: 1m
# labels:
# severity: warning
# annotations:
# description: Too many 4XXs
# summary: More than 5% of all requests returned 4XX, this requires your attention
metrics
:
enabled
:
true
service
:
annotations
:
{}
# With prometheus operator you need a ServiceMonitor
serviceMonitor
:
enabled
:
true
namespace
:
"
monitoring"
additionalLabels
:
release
:
monitoring
prometheusRule
:
enabled
:
true
additionalLabels
:
release
:
monitoring
namespace
:
"
monitoring"
rules
:
-
alert
:
NGINXConfigFailed
expr
:
count(nginx_ingress_controller_config_last_reload_successful == 0) >
0
for
:
1s
labels
:
severity
:
critical
annotations
:
description
:
bad ingress config - nginx config test failed
summary
:
uninstall the latest ingress changes to allow config reloads to resume
-
alert
:
NGINXCertificateExpiry
expr
:
(avg(nginx_ingress_controller_ssl_expire_time_seconds) by (host) - time()) <
604800
for
:
1s
labels
:
severity
:
critical
annotations
:
description
:
ssl certificate(s) will expire in less then a week
summary
:
renew expiring certificates to avoid downtime
-
alert
:
NGINXTooMany500s
expr
:
100 * ( sum( nginx_ingress_controller_requests{status=~"5.+"} ) / sum(nginx_ingress_controller_requests) ) >
5
for
:
1m
labels
:
severity
:
warning
annotations
:
description
:
Too many 5XXs
summary
:
More than 5% of all requests returned 5XX, this requires your attention
-
alert
:
NGINXTooMany400s
expr
:
100 * ( sum( nginx_ingress_controller_requests{status=~"4.+"} ) / sum(nginx_ingress_controller_requests) ) >
30
for
:
1m
labels
:
severity
:
warning
annotations
:
description
:
Too many 4XXs
summary
:
More than 5% of all requests returned 4XX, this requires your attention
priorityClassName
:
"
infra-ingress"
...
...
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