Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alerta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
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
Ansible
Roles
alerta
Commits
8ff30d7c
Commit
8ff30d7c
authored
6 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Implement housekeeping and heartbeat alerts via crontab
parent
380061e4
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/alerta.yml
+20
-0
20 additions, 0 deletions
tasks/alerta.yml
templates/alerta.conf
+7
-0
7 additions, 0 deletions
templates/alerta.conf
with
27 additions
and
0 deletions
tasks/alerta.yml
+
20
−
0
View file @
8ff30d7c
...
...
@@ -75,3 +75,23 @@
dest
:
'
/etc/alertad.conf'
notify
:
-
"
Restart
uwsgi"
-
name
:
"
Configure
root
CLI"
template
:
src
:
'
alerta.conf'
dest
:
'
/root/.alerta.conf'
-
name
:
"
Configure
crontabs"
cron
:
name
:
'
{{
item.name
}}'
minute
:
'
{{
item.minute
}}'
job
:
'
{{
item.job
}}
>/dev/null
2>&1'
disabled
:
'
{{
crons_disabled|default(false)
}}'
items
:
-
name
:
'
Heartbeats
to
Alert'
minute
:
'
*/3'
job
:
'
/usr/local/bin/alerta
heartbeats
--alert'
-
name
:
'
Alerta
Housekeeping'
minute
:
'
0'
job
:
'
/usr/local/bin/alerta
housekeeping'
tags
:
'
cron'
This diff is collapsed.
Click to expand it.
templates/alerta.conf
0 → 100644
+
7
−
0
View file @
8ff30d7c
[
DEFAULT
]
timezone
=
Europe
/
Berlin
profile
=
admin
[
profile
admin
]
endpoint
=
https
://{{
alerta_domain
}}/
api
key
= {{
alerta_api_key
}}
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