Add automatic prometheus monitoring to the cockroachdb example

This commit is contained in:
Alex Robinson 2016-08-18 15:27:27 -04:00
parent 1e7545393f
commit 01cf564eaa
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -54,6 +54,8 @@ kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: datadir-cockroachdb-${i}
labels:
app: cockroachdb
spec:
accessModes:
- ReadWriteOnce