mirror of
https://github.com/carlosedp/cluster-monitoring.git
synced 2024-12-04 19:07:43 +01:00
38 lines
946 B
YAML
38 lines
946 B
YAML
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
labels:
|
|
k8s-app: apiserver
|
|
name: kube-apiserver
|
|
namespace: monitoring
|
|
spec:
|
|
endpoints:
|
|
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
|
|
interval: 30s
|
|
metricRelabelings:
|
|
- action: drop
|
|
regex: etcd_(debugging|disk|request|server).*
|
|
sourceLabels:
|
|
- __name__
|
|
- action: drop
|
|
regex: apiserver_admission_controller_admission_latencies_seconds_.*
|
|
sourceLabels:
|
|
- __name__
|
|
- action: drop
|
|
regex: apiserver_admission_step_admission_latencies_seconds_.*
|
|
sourceLabels:
|
|
- __name__
|
|
port: https
|
|
scheme: https
|
|
tlsConfig:
|
|
caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
|
|
serverName: kubernetes
|
|
jobLabel: component
|
|
namespaceSelector:
|
|
matchNames:
|
|
- default
|
|
selector:
|
|
matchLabels:
|
|
component: apiserver
|
|
provider: kubernetes
|