Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 47628c9

Browse files
committed
docs: use consistent examples in prometheus doc and add namespaceSelector spec (#16918)
closes: #15385 - use consistent `prom-http` port (@johnstcn looks like this was changed/added in #12214 - do we prefer `prom-http` over `prometheus-http` or is it more important that they align?) - add `namespaceSelector:` per @francisco-mata (thanks! - sorry it took so long to get this in) from issue: > For some reason our target was not appearing on our prometheus targets, we had to add a namespaceSelector key on the Service Monitor to successfully appear Co-authored-by: EdwardAngert <[email protected]>
1 parent c2805e1 commit 47628c9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/admin/integrations/prometheus.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,12 @@ metadata:
8484
namespace: coder
8585
spec:
8686
endpoints:
87-
- port: prometheus-http
87+
- port: prom-http
8888
interval: 10s
8989
scrapeTimeout: 10s
90+
namespaceSelector:
91+
matchNames:
92+
- coder
9093
selector:
9194
matchLabels:
9295
app.kubernetes.io/name: coder

0 commit comments

Comments
 (0)