2018-03-02 01:03:53 +01:00
|
|
|
apiVersion: monitoring.coreos.com/v1
|
|
|
|
kind: ServiceMonitor
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
k8s-app: apiserver
|
2018-12-12 18:18:00 +01:00
|
|
|
name: kube-apiserver
|
|
|
|
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
|
2018-03-02 01:03:53 +01:00
|
|
|
interval: 30s
|
2018-12-12 18:18:00 +01:00
|
|
|
metricRelabelings:
|
|
|
|
- action: drop
|
|
|
|
regex: etcd_(debugging|disk|request|server).*
|
|
|
|
sourceLabels:
|
|
|
|
- __name__
|
2019-02-15 13:22:45 +01:00
|
|
|
- action: drop
|
|
|
|
regex: apiserver_admission_controller_admission_latencies_seconds_.*
|
|
|
|
sourceLabels:
|
|
|
|
- __name__
|
|
|
|
- action: drop
|
|
|
|
regex: apiserver_admission_step_admission_latencies_seconds_.*
|
|
|
|
sourceLabels:
|
|
|
|
- __name__
|
2018-12-12 18:18:00 +01:00
|
|
|
port: https
|
2018-03-02 01:03:53 +01:00
|
|
|
scheme: https
|
|
|
|
tlsConfig:
|
|
|
|
caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
|
|
|
|
serverName: kubernetes
|
2018-12-12 18:18:00 +01:00
|
|
|
jobLabel: component
|
|
|
|
namespaceSelector:
|
|
|
|
matchNames:
|
|
|
|
- default
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
component: apiserver
|
|
|
|
provider: kubernetes
|