Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
Kubernetes clusters configuration
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
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Platform
Infrastructure
CI CD
Kubernetes clusters configuration
Merge requests
!15
admin: Configure some probes to monitor the websites
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
admin: Configure some probes to monitor the websites
websites-monitoring
into
master
Overview
0
Commits
3
Pipelines
0
Changes
3
Merged
Vincent Sellier
requested to merge
websites-monitoring
into
master
2 years ago
Overview
0
Commits
3
Pipelines
0
Changes
3
Expand
Configure the probes to monitor the websites
Configure a critical and a warning alerts
Configure blackbox module to monitor the wordpress site (poc for regex checks)
Related to
swh/infra/sysadm-environment#4525
/cc
@teams/sysadmin
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
86bbe920
3 commits,
2 years ago
3 files
+
191
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
admin/websites-alerting.yaml
0 → 100644
+
88
−
0
Options
---
apiVersion
:
monitoring.coreos.com/v1
kind
:
PrometheusRule
metadata
:
labels
:
app
:
website
name
:
websites-critical-alertmanager.rules
namespace
:
cattle-monitoring-system
spec
:
groups
:
-
name
:
critical-website.rules
rules
:
-
alert
:
WebsiteNotHealthy
annotations
:
description
:
The {{ $labels.domain }} website {{ $labels.instance }} is not healthy since more than 5m.
summary
:
A blackbox probe is failing since more then 5mn
expr
:
|-
max_over_time(probe_success{level="critical"}[1m]) == 0
for
:
5m
labels
:
severity
:
critical
namespace
:
cattle-monitoring-system
---
apiVersion
:
monitoring.coreos.com/v1
kind
:
PrometheusRule
metadata
:
labels
:
app
:
website
name
:
websites-body-critical-alertmanager.rules
namespace
:
cattle-monitoring-system
spec
:
groups
:
-
name
:
critical-website-body.rules
rules
:
-
alert
:
WebsiteIncorrectBody
annotations
:
description
:
The {{ $labels.domain }} website {{ $labels.instance }} has an incorrect body since more than 5m.
summary
:
A blackbox probe regex check is failing since more then 5mn
expr
:
|-
max_over_time(probe_failed_due_to_regex{level="critical"}[1m]) == 1
for
:
5m
labels
:
severity
:
critical
namespace
:
cattle-monitoring-system
---
apiVersion
:
monitoring.coreos.com/v1
kind
:
PrometheusRule
metadata
:
labels
:
app
:
website
name
:
websites-body-warning-alertmanager.rules
namespace
:
cattle-monitoring-system
spec
:
groups
:
-
name
:
warning-website-body.rules
rules
:
-
alert
:
WebsiteIncorrectBody
annotations
:
description
:
The {{ $labels.domain }} website {{ $labels.instance }} has an incorrect body since more than 5m.
summary
:
A blackbox probe regex check is failing since more then 5mn
expr
:
|-
max_over_time(probe_failed_due_to_regex{level="critical"}[1m]) == 1
for
:
5m
labels
:
severity
:
warning
namespace
:
cattle-monitoring-system
---
apiVersion
:
monitoring.coreos.com/v1
kind
:
PrometheusRule
metadata
:
labels
:
app
:
website
name
:
websites-warning-alertmanager.rules
namespace
:
cattle-monitoring-system
spec
:
groups
:
-
name
:
warning-website.rules
rules
:
-
alert
:
WebsiteNotHealthy
annotations
:
description
:
The {{ $labels.domain }} website {{ $labels.instance }} is not healthy since more than 5m.
summary
:
A blackbox probe is failing since more then 5mn
expr
:
|-
max_over_time(probe_success{level='warning'}[1m]) == 0
for
:
5m
labels
:
severity
:
warning
namespace
:
cattle-monitoring-system
Loading