31 lines
992 B
YAML
31 lines
992 B
YAML
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: metrics-adapter
|
|
app.kubernetes.io/name: prometheus-adapter
|
|
app.kubernetes.io/part-of: kube-prometheus
|
|
app.kubernetes.io/version: 0.11.1
|
|
name: prometheus-adapter
|
|
namespace: monitoring
|
|
annotations:
|
|
argocd.argoproj.io/sync-wave: '1'
|
|
spec:
|
|
endpoints:
|
|
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
|
|
interval: 30s
|
|
metricRelabelings:
|
|
- action: drop
|
|
regex: (apiserver_client_certificate_.*|apiserver_envelope_.*|apiserver_flowcontrol_.*|apiserver_storage_.*|apiserver_webhooks_.*|workqueue_.*)
|
|
sourceLabels:
|
|
- __name__
|
|
port: https
|
|
scheme: https
|
|
tlsConfig:
|
|
insecureSkipVerify: true
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/component: metrics-adapter
|
|
app.kubernetes.io/name: prometheus-adapter
|
|
app.kubernetes.io/part-of: kube-prometheus
|