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" source = "./service"
name = "minitor" name = "minitor"
image = "iamthefij/minitor-go:1.1" image = "iamthefij/minitor-go:1.2"
args = ["-metrics", "-config=$${NOMAD_TASK_DIR}/config.yml"] args = ["-metrics", "-config=$${NOMAD_TASK_DIR}/config.yml"]
service_port = 8080 service_port = 8080
prometheus = true prometheus = true

View File

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