Skip to content

Commit 5a9ca59

Browse files
committed
Add --namespace=prometheus to examples in metrics exporting guide
1 parent eb009ef commit 5a9ca59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/clusters/observability/metrics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ spec:
110110
Then, update Prometheus with your annotations:
111111
112112
```bash
113-
kubectl patch prometheuses.monitoring.coreos.com prometheus --patch-file patch.yaml --type merge
113+
kubectl patch --namespace prometheus prometheuses.monitoring.coreos.com prometheus --patch-file patch.yaml --type merge
114114
```
115115

116116
## Long term metric storage
@@ -138,5 +138,5 @@ spec:
138138
Update Prometheus with your changes:
139139
140140
```bash
141-
kubectl patch prometheuses.monitoring.coreos.com prometheus --patch-file patch.yaml --type merge
141+
kubectl patch --namespace prometheus prometheuses.monitoring.coreos.com prometheus --patch-file patch.yaml --type merge
142142
```

0 commit comments

Comments
 (0)