Update minitor with new apps and global options

This commit is contained in:
IamTheFij 2023-08-03 14:39:50 -07:00
parent 3e0533954f
commit 02959c7673
2 changed files with 22 additions and 77 deletions

View File

@ -38,7 +38,7 @@ module "minitor" {
source = "./service"
name = "minitor"
image = "iamthefij/minitor-go:1.1"
image = "iamthefij/minitor-go:1.2"
args = ["-metrics", "-config=$${NOMAD_TASK_DIR}/config.yml"]
service_port = 8080
prometheus = true

View File

@ -1,110 +1,55 @@
---
check_interval: 30s
default_alert_down: [log, mailgun]
default_alert_up: [log, mailgun_up]
default_alert_after: 20 # 20 * 30s = 10 min
default_alert_every: 1440 # 12hrs / 30s = 1440 checks
monitors:
- name: Cloudron
command:
- 'curl'
- '--silent'
- '--show-error'
- '--fail'
- '-o'
- '/dev/null'
- '/app/scripts/curl_ok.sh'
- 'https://my.iamthefij.com'
alert_down: [log, mailgun]
alert_up: [log, mailgun_up]
check_interval: 30s
alert_after: 20 # 20 * 30s = 10 min
alert_every: 1440 # 12hrs / 30s = 1440 checks
- name: Grafana (public)
command:
- 'curl'
- '--silent'
- '--show-error'
- '--fail'
- '-o'
- '/dev/null'
- '/app/scripts/curl_ok.sh'
- 'https://grafana.iamthefij.com'
alert_down: [log, mailgun]
alert_up: [log, mailgun_up]
check_interval: 30s
alert_after: 20 # 20 * 30s = 10 min
alert_every: 1440 # 12hrs / 30s = 1440 checks
- name: Grafana (internal)
command:
- 'curl'
- '--silent'
- '--show-error'
- '--fail'
- '-o'
- '/dev/null'
- '/app/scripts/curl_ok.sh'
- 'https://grafana.thefij.rocks'
alert_down: [log, mailgun]
alert_up: [log, mailgun_up]
check_interval: 30s
alert_after: 20 # 20 * 30s = 10 min
alert_every: 1440 # 12hrs / 30s = 1440 checks
- name: Plex
command:
- 'curl'
- '--silent'
- '--show-error'
- '-o'
- '/dev/null'
- '/app/scripts/curl_ok.sh'
- 'http://192.168.2.10:32400'
alert_down: [log, mailgun]
alert_up: [log, mailgun_up]
check_interval: 30s
alert_after: 20 # 20 * 30s = 10 min
alert_every: 1440 # 12hrs / 30s = 1440 checks
- name: NZBget
command:
- 'curl'
- '--silent'
- '--show-error'
- '--fail'
- '-o'
- '/dev/null'
- '/app/scripts/curl_ok.sh'
- 'https://nzbget.thefij.rocks'
alert_down: [log, mailgun]
alert_up: [log, mailgun_up]
check_interval: 30s
alert_after: 20 # 20 * 30s = 10 min
alert_every: 1440 # 12hrs / 30s = 1440 checks
- name: Sonarr
command:
- 'curl'
- '--silent'
- '--show-error'
- '--fail'
- '-o'
- '/dev/null'
- '/app/scripts/curl_ok.sh'
- 'https://sonarr.thefij.rocks'
alert_down: [log, mailgun]
alert_up: [log, mailgun_up]
check_interval: 30s
alert_after: 20 # 20 * 30s = 10 min
alert_every: 1440 # 12hrs / 30s = 1440 checks
- name: Lidarr
command:
- '/app/scripts/curl_ok.sh'
- 'https://lidarr.thefij.rocks'
- name: Authelia
command:
- '/app/scripts/curl_ok.sh'
- 'https://authelia.thefij.rocks'
- name: Photoprism
command:
- 'curl'
- '--silent'
- '--show-error'
- '--fail'
- '-o'
- '/dev/null'
- '/app/scripts/curl_ok.sh'
- 'https://photoprism.thefij.rocks'
alert_down: [log, mailgun]
alert_up: [log, mailgun_up]
check_interval: 30s
alert_after: 20 # 20 * 30s = 10 min
alert_every: 1440 # 12hrs / 30s = 1440 checks
alerts:
log: