# This config is cooked based on following resource:
# https://godoc.org/github.com/coreos/prometheus-operator/pkg/apis/monitoring/v1#Prometheus
# https://github.com/istio/installer/blob/master/istio-telemetry/prometheus-operator/templates/prometheus.yaml
apiVersion: monitoring.coreos.com/v1
image: "docker.io/prom/prometheus:v2.12.0"
serviceAccountName: prometheus
serviceMonitorNamespaceSelector:
podMonitorNamespaceSelector:
image: gcr.io/stackdriver-prometheus/stackdriver-prometheus-sidecar:0.7.3
- --stackdriver.project-id=${PROJECT_ID}
- --stackdriver.kubernetes.location=${LOCATION}
- --stackdriver.kubernetes.cluster-name=${CLUSTER_NAME}
- --prometheus.wal-directory=/prometheus/wal
- name: prometheus-prometheus-db
apiVersion: rbac.authorization.k8s.io/v1
verbs: ["get", "list", "watch"]
- nonResourceURLs: ["/metrics"]
apiVersion: rbac.authorization.k8s.io/v1
apiGroup: rbac.authorization.k8s.io
prometheus.io/scrape: 'true'