rpi.carlosedp.cluster-monit.../manifests/kube-state-metrics-serviceMonitor.yaml

32 lines
829 B
YAML
Raw Normal View History

2018-03-02 01:03:53 +01:00
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/version: 1.7.2
name: kube-state-metrics
namespace: monitoring
2018-03-02 01:03:53 +01:00
spec:
endpoints:
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
honorLabels: true
2018-03-02 01:03:53 +01:00
interval: 30s
port: https-main
2019-10-09 22:33:29 +02:00
relabelings:
- action: labeldrop
regex: (pod|service|endpoint|namespace)
scheme: https
scrapeTimeout: 30s
2018-03-02 01:03:53 +01:00
tlsConfig:
insecureSkipVerify: true
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
2018-03-02 01:03:53 +01:00
interval: 30s
port: https-self
scheme: https
2018-03-02 01:03:53 +01:00
tlsConfig:
insecureSkipVerify: true
jobLabel: app.kubernetes.io/name
2018-03-02 01:03:53 +01:00
selector:
matchLabels:
app.kubernetes.io/name: kube-state-metrics