Skip to content

Commit

Permalink
Add Prometheus metrics docs
Browse files Browse the repository at this point in the history
- ref #2
  • Loading branch information
stefanprodan committed Oct 29, 2018
1 parent 074e57a commit 53c09f4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,18 @@ Scaling down podinfo.test
Promotion completed! podinfo.test
```

Flagger exposes Prometheus metrics that can be used to determine the canary analysis status and the destination weight values:

```bash
# Canary status
# 0 - running, 1 - successful, 2 - failed
flagger_canary_status{name="podinfo" namespace="test"} 1

# Canary traffic weight
flagger_canary_weight{workload="podinfo-primary" namespace="test"} 95
flagger_canary_weight{workload="podinfo" namespace="test"} 5
```

### Roadmap

* Extend the canary analysis and promotion to other types than Kubernetes deployments such as Flux Helm releases or OpenFaaS functions
Expand Down

0 comments on commit 53c09f4

Please sign in to comment.