Compare commits
3 Commits
monitoring
...
monitoring
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8207fa5329 | ||
|
|
35a3b59098 | ||
|
|
b0f2009ccf |
25
monitoring/alertmanager/alertmanager.yml
Normal file
25
monitoring/alertmanager/alertmanager.yml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
global:
|
||||||
|
resolve_timeout: 5m
|
||||||
|
|
||||||
|
route:
|
||||||
|
receiver: telegram
|
||||||
|
group_by: ['alertname', 'instance']
|
||||||
|
group_wait: 30s
|
||||||
|
group_interval: 5m
|
||||||
|
repeat_interval: 6h
|
||||||
|
|
||||||
|
receivers:
|
||||||
|
- name: telegram
|
||||||
|
telegram_configs:
|
||||||
|
- bot_token: '7896670660:AAGtfYPY47GfEhFLQeAR5oRGodV7Y6qa_LY'
|
||||||
|
chat_id: -1003779247128
|
||||||
|
message: |-
|
||||||
|
{{ range .Alerts }}
|
||||||
|
*{{ .Labels.alertname }}* ({{ .Labels.severity }})
|
||||||
|
{{ .Annotations.summary }}
|
||||||
|
{{ .Annotations.description }}
|
||||||
|
{{ end }}
|
||||||
|
parse_mode: Markdown
|
||||||
|
disable_notifications: false
|
||||||
|
api_url: 'https://api.telegram.org'
|
||||||
|
send_resolved: true
|
||||||
@@ -21,10 +21,8 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
volumes:
|
volumes:
|
||||||
- ./alertmanager/alertmanager.tmpl.yml:/etc/alertmanager/alertmanager.tmpl.yml:ro
|
- ./alertmanager/alertmanager.yml:/etc/alertmanager/alertmanager.yml:ro
|
||||||
- ./alertmanager/render.sh:/render.sh:ro
|
|
||||||
- alertmanager-data:/alertmanager
|
- alertmanager-data:/alertmanager
|
||||||
command: ["/render.sh"]
|
|
||||||
ports:
|
ports:
|
||||||
- "9093:9093"
|
- "9093:9093"
|
||||||
|
|
||||||
|
|||||||
@@ -12,5 +12,6 @@ providers:
|
|||||||
type: file
|
type: file
|
||||||
disableDeletion: false
|
disableDeletion: false
|
||||||
editable: true
|
editable: true
|
||||||
|
allowUiUpdates: true
|
||||||
options:
|
options:
|
||||||
path: /var/lib/grafana/dashboards
|
path: /var/lib/grafana/dashboards
|
||||||
|
|||||||
@@ -26,3 +26,7 @@ scrape_configs:
|
|||||||
- job_name: smartctl
|
- job_name: smartctl
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ["smartctl-exporter:9633"]
|
- targets: ["smartctl-exporter:9633"]
|
||||||
|
|
||||||
|
- job_name: revproxy-node
|
||||||
|
static_configs:
|
||||||
|
- targets: ["10.8.0.1:9100"]
|
||||||
|
|||||||
Reference in New Issue
Block a user