You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1011 B
35 lines
1011 B
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: exporter
|
|
app.kubernetes.io/name: kube-state-metrics
|
|
app.kubernetes.io/part-of: kube-prometheus
|
|
app.kubernetes.io/version: 2.1.1
|
|
name: kube-state-metrics
|
|
namespace: monitoring
|
|
spec:
|
|
endpoints:
|
|
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
|
|
honorLabels: true
|
|
interval: 30s
|
|
port: https-main
|
|
relabelings:
|
|
- action: labeldrop
|
|
regex: (pod|service|endpoint|namespace)
|
|
scheme: https
|
|
scrapeTimeout: 30s
|
|
tlsConfig:
|
|
insecureSkipVerify: true
|
|
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
|
|
interval: 30s
|
|
port: https-self
|
|
scheme: https
|
|
tlsConfig:
|
|
insecureSkipVerify: true
|
|
jobLabel: app.kubernetes.io/name
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/component: exporter
|
|
app.kubernetes.io/name: kube-state-metrics
|
|
app.kubernetes.io/part-of: kube-prometheus
|
|
|