github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/scripts/vagrant/provision/manifests/kube-prometheus/prometheus-serviceMonitorApiserver.yaml (about) 1 apiVersion: monitoring.coreos.com/v1 2 kind: ServiceMonitor 3 metadata: 4 labels: 5 k8s-app: apiserver 6 name: kube-apiserver 7 namespace: monitoring 8 spec: 9 endpoints: 10 - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token 11 interval: 30s 12 metricRelabelings: 13 - action: drop 14 regex: etcd_(debugging|disk|request|server).* 15 sourceLabels: 16 - __name__ 17 - action: drop 18 regex: apiserver_admission_controller_admission_latencies_seconds_.* 19 sourceLabels: 20 - __name__ 21 - action: drop 22 regex: apiserver_admission_step_admission_latencies_seconds_.* 23 sourceLabels: 24 - __name__ 25 port: https 26 scheme: https 27 tlsConfig: 28 caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt 29 serverName: kubernetes 30 jobLabel: component 31 namespaceSelector: 32 matchNames: 33 - default 34 selector: 35 matchLabels: 36 component: apiserver 37 provider: kubernetes