add config for chatbot and add alert for high mem openwrt [CI SKIP]

This commit is contained in:
viktorbarzin 2021-03-07 23:14:35 +00:00
parent 67036d7426
commit 0cfc001cdf
2 changed files with 13 additions and 0 deletions

View file

@ -160,6 +160,15 @@ serverFiles:
severity: page
annotations:
summary: No iDRAC amperage reading. Can signal that prometheus is not scraping
- name: OpenWRT High Memory Usage
rules:
- alert: OpenWRT High Memory Usage
expr: 100 - ((openwrt_node_memory_MemAvailable_bytes * 100) / openwrt_node_memory_MemTotal_bytes) > 90
for: 10m
labels:
severity: page
annotations:
summary: OpenWRT high memory usage. Can cause services getting stuck.
extraScrapeConfigs: |
- job_name: 'snmp-idrac'

View file

@ -96,6 +96,10 @@ resource "kubernetes_deployment" "webhook_handler" {
name = "FB_PAGE_TOKEN"
value = var.fb_page_token
}
env {
name = "CONFIG"
value = "./chatbot/config/viktorwebservices.yaml"
}
}
}
}