1
0
Fork 0
home-stack-kustomize/kustomize/bases/monitoring/prometheus/servicemonitors.yaml

63 lines
1.3 KiB
YAML
Raw Normal View History

2020-05-18 18:55:58 +00:00
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: prometheus
labels:
monitor: main
spec:
selector:
matchLabels:
2020-05-31 22:05:21 +00:00
operated-prometheus: "true"
2020-05-18 18:55:58 +00:00
endpoints:
- port: web
path: /metrics
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
2020-05-31 22:05:21 +00:00
metadata:
name: servicemonitor-http
labels:
monitor: main
spec:
namespaceSelector:
any: true
selector:
matchLabels:
monitor: main
endpoints:
- port: http
path: /metrics
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
2020-05-18 18:55:58 +00:00
metadata:
name: kubelet
labels:
monitor: main
spec:
namespaceSelector:
matchNames:
- kube-system
selector:
matchLabels:
k8s-app: kubelet
endpoints:
- port: https-metrics
scheme: https
path: /metrics
honorLabels: true
interval: 60s
bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
tlsConfig:
caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
insecureSkipVerify: true
- port: https-metrics
scheme: https
path: /metrics/cadvisor
honorLabels: true
interval: 60s
bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
tlsConfig:
caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
insecureSkipVerify: true