We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d66bd75 commit d9a275aCopy full SHA for d9a275a
docs/admin/prometheus.md
@@ -37,7 +37,26 @@ setting the environment variable `CODER_PROMETHEUS_ADDRESS` to `0.0.0.0:2112`.
37
The environment variable `CODER_PROMETHEUS_ENABLE` will be enabled
38
automatically. A Service Endpoint will not be exposed; if you need to expose the
39
Prometheus port on a Service, (for example, to use a `ServiceMonitor`), create a
40
-separate service instead.
+separate headless service instead:
41
+
42
+```yaml
43
+apiVersion: v1
44
+kind: Service
45
+metadata:
46
+ name: coder-prom
47
+ namespace: coder
48
+spec:
49
+ clusterIP: None
50
+ ports:
51
+ - name: prom-http
52
+ port: 2112
53
+ protocol: TCP
54
+ targetPort: 2112
55
+ selector:
56
+ app.kubernetes.io/instance: coder
57
+ app.kubernetes.io/name: coder
58
+ type: ClusterIP
59
+```
60
61
### Prometheus configuration
62
0 commit comments