Skip to content
Snippets Groups Projects
Commit 79b13f68 authored by Alex Ellis's avatar Alex Ellis
Browse files

Move to HA for gateway

parent 8b593f34
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ ALERT service_down
IF up == 0
ALERT APIHighInvocationRate
IF rate ( gateway_function_invocation_total [10s] ) > 5
IF sum ( rate(gateway_function_invocation_total{code="200"}[10s]) ) by (function_name) > 5
FOR 5s
LABELS {
service = "gateway",
......@@ -13,3 +13,4 @@ ALERT APIHighInvocationRate
summary = "High invocation total on {{ $labels.instance }}",
description = "High invocation total on {{ $labels.instance }}"
}
......@@ -30,5 +30,11 @@ scrape_configs:
- job_name: "gateway"
scrape_interval: 5s
static_configs:
- targets: ['gateway:8080']
dns_sd_configs:
- names: ['tasks.gateway']
port: 8080
type: A
refresh_interval: 5s
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment