Skip to content

Commit

Permalink
docs: Fix the controller annotation to enable data scrapping (argopro…
Browse files Browse the repository at this point in the history
…j#2238)

Signed-off-by: Andrii Perenesenko <[email protected]>
Signed-off-by: Xijun Dai <[email protected]>
  • Loading branch information
perenesenko authored and daixijun committed Sep 27, 2022
1 parent 399496b commit b527369
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 b527369

Please sign in to comment.