Add automatic prometheus monitoring to the cockroachdb example
This commit is contained in:
parent
f3cad5b7fa
commit
718c90a883
|
|
@ -2,7 +2,12 @@ apiVersion: v1
|
|||
kind: Service
|
||||
metadata:
|
||||
annotations:
|
||||
# Make sure DNS is resolvable during initialization.
|
||||
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
|
||||
# Enable automatic monitoring of all instances when Prometheus is running in the cluster.
|
||||
prometheus.io/scrape: "true"
|
||||
prometheus.io/path: "_status/vars"
|
||||
prometheus.io/port: "8080"
|
||||
name: cockroachdb
|
||||
labels:
|
||||
app: cockroachdb
|
||||
|
|
|
|||
|
|
@ -54,6 +54,8 @@ kind: PersistentVolumeClaim
|
|||
apiVersion: v1
|
||||
metadata:
|
||||
name: datadir-cockroachdb-${i}
|
||||
labels:
|
||||
app: cockroachdb
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
|
|
|
|||
Loading…
Reference in New Issue