mirror of
https://github.com/openfaas/faas.git
synced 2025-06-21 22:33:23 +00:00
Add static front end + functions endpoint.
This commit is contained in:
@ -64,5 +64,5 @@ inhibit_rules:
|
||||
receivers:
|
||||
- name: 'scale-up'
|
||||
webhook_configs:
|
||||
- url: http://gateway:8080/function/func_webhookstash
|
||||
- url: http://gateway:8080/system/alert
|
||||
send_resolved: true
|
||||
|
47
prometheus/test_alert.json
Normal file
47
prometheus/test_alert.json
Normal file
@ -0,0 +1,47 @@
|
||||
{
|
||||
"receiver":"scale-up",
|
||||
"status":"firing",
|
||||
"alerts":[
|
||||
{
|
||||
"status":"firing",
|
||||
"labels":{
|
||||
"alertname":"APIHighInvocationRate",
|
||||
"function_name":"func_echoit",
|
||||
"instance":"gateway:8080",
|
||||
"job":"gateway",
|
||||
"monitor":"faas-monitor",
|
||||
"service":"gateway",
|
||||
"severity":"major",
|
||||
"value":"8"
|
||||
},
|
||||
"annotations":{
|
||||
"description":"High invocation total on gateway:8080",
|
||||
"summary":"High invocation total on gateway:8080"
|
||||
},
|
||||
"startsAt":"2017-01-22T10:40:52.804Z",
|
||||
"endsAt":"0001-01-01T00:00:00Z",
|
||||
"generatorURL":"http://bb1b23e87070:9090/graph?g0.expr=rate%28gateway_function_invocation_total%5B10s%5D%29+%3E+5\u0026g0.tab=0"
|
||||
}
|
||||
],
|
||||
"groupLabels":{
|
||||
"alertname":"APIHighInvocationRate",
|
||||
"service":"gateway"
|
||||
},
|
||||
"commonLabels":{
|
||||
"alertname":"APIHighInvocationRate",
|
||||
"function_name":"func_echoit",
|
||||
"instance":"gateway:8080",
|
||||
"job":"gateway",
|
||||
"monitor":"faas-monitor",
|
||||
"service":"gateway",
|
||||
"severity":"major",
|
||||
"value":"8"
|
||||
},
|
||||
"commonAnnotations":{
|
||||
"description":"High invocation total on gateway:8080",
|
||||
"summary":"High invocation total on gateway:8080"
|
||||
},
|
||||
"externalURL":"http://c052c835bcee:9093",
|
||||
"version":"3",
|
||||
"groupKey":18195285354214864953
|
||||
}
|
Reference in New Issue
Block a user