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