Skip to content

Commit

Permalink
docs: Fix the controller annotation to enable data scrapping (#2238)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrii Perenesenko <andrii.perenesenko@gmail.com>
  • Loading branch information
perenesenko authored Sep 19, 2022
1 parent c639574 commit df8af6d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/features/controller-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ for Kubernetes, but you need to [configure it first](https://prometheus.io/docs/
For example, if you used the Helm chart of Prometheus you need to annotate your Argo Rollouts Controller with the following:

```yaml
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: /metrics
prometheus.io/port: "8090"
spec:
template:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: /metrics
prometheus.io/port: "8090"
```
You can always see if the controller is reached successfully in the Prometheus "Targets" screen:
Expand Down

0 comments on commit df8af6d

Please sign in to comment.