Add webhook docs

This commit is contained in:
stefanprodan
2019-01-03 16:11:30 +02:00
parent d26255070e
commit 5d0939af7d
2 changed files with 39 additions and 3 deletions

View File

@@ -62,9 +62,10 @@ spec:
webhooks:
- name: integration-tests
url: http://podinfo.test:9898/echo
timeout: 5s
timeout: 1m
metadata:
test: "all"
token: "16688eb5e9f289f1991c"
```
### Canary Deployment
@@ -105,7 +106,7 @@ You can change the canary analysis _max weight_ and the _step weight_ percentage
### Canary Analisys
The canary analysis is using the following Prometheus queries:
The canary analysis is using the following Prometheus queries:
**HTTP requests success rate percentage**
@@ -148,3 +149,21 @@ histogram_quantile(0.99,
)
```
The canary analysis can be extended with webhooks.
Flagger would call a URL (HTTP POST) and determine from the response status code (HTTP 2xx) if the canary is failing or not.
Webhook payload:
```json
{
"name": "podinfo",
"namespace": "test",
"metadata": {
"test": "all",
"token": "16688eb5e9f289f1991c"
}
}