Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dockerfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Picasoft
Technique
Dockerfiles
Commits
c497f039
Verified
Commit
c497f039
authored
3 years ago
by
Quentin Duchemin
Browse files
Options
Downloads
Patches
Plain Diff
Add skeleton for vmalert and alertmanager (without configuration)
parent
432035e2
No related branches found
Branches containing commit
No related tags found
1 merge request
!65
Add alerting
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pica-metrologie/alertmanager.yml
+0
-0
0 additions, 0 deletions
pica-metrologie/alertmanager.yml
pica-metrologie/docker-compose.yml
+39
-0
39 additions, 0 deletions
pica-metrologie/docker-compose.yml
pica-metrologie/vmalert-rules.yml
+0
-0
0 additions, 0 deletions
pica-metrologie/vmalert-rules.yml
with
39 additions
and
0 deletions
pica-metrologie/alertmanager.yml
0 → 100644
+
0
−
0
View file @
c497f039
This diff is collapsed.
Click to expand it.
pica-metrologie/docker-compose.yml
+
39
−
0
View file @
c497f039
...
...
@@ -52,6 +52,7 @@ services:
-
metrics
restart
:
unless-stopped
# Stores all metrics in a TSDB compatible with PromQL queries
vmagent
:
image
:
victoriametrics/vmagent:v1.63.0
container_name
:
vmagent
...
...
@@ -67,3 +68,41 @@ services:
networks
:
-
metrics
restart
:
unless-stopped
# Fires alerts based on custom rules (like disk > 80% etc)
vmalert
:
image
:
victoriametrics/vmalert:v1.62.0
container_name
:
vmalert
command
:
-
"
-rule=/config/vmalert-rules.yml"
# Where to read metrics
-
"
-datasource.url=http://victoria-metrics:8428"
# Where to write and read alert states, to keep
# state during restart, as vmagent stores states in memory
-
"
-remoteWrite.url=http://victoria-metrics:8428"
-
"
-remoteRead.url=http://victoriametrics:8428"
# Where to send alert when they must be triggered
-
"
-notifier.url=http://alertmanager:9093"
# HTTP server for vmagent's own metrics
-
"
-httpListenAddr=:8880"
# Evaluate rules every 10 minutes
-
"
-evaluationInterval=10m"
-
"
-loggerOutput=stdout"
volumes
:
-
./vmalert-rules.yml:/config/vmalert-rules.yml
networks
:
-
metrics
restart
:
unless-stopped
# Receives alerts and decides what to do, e.g. send a mail or a Mattermost message
# Takes care of deduplication etc
alertmanager
:
image
:
prom/alertmanager:v0.22.2
container_name
:
alertmanager
command
:
-
"
--config.file=/config/alertmanager.yml"
volumes
:
-
./alertmanager.yml:/config/alertmanager.yml
networks
:
-
metrics
restart
:
unless-stopped
This diff is collapsed.
Click to expand it.
pica-metrologie/vmalert-rules.yml
0 → 100644
+
0
−
0
View file @
c497f039
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