Files
kuberay/apiserver/deploy/prometheus/api_server_service_monitor.yaml
Boris LublinskyandGitHub 80ce6647b0 Add documentation for API Server monitoring (#1479)
Add documentation for API Server monitoring
2023-10-13 11:23:02 -07:00

17 lines
443 B
YAML

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
release: prometheus
name: kuberay-apiserver
namespace: prometheus-system # ns where prometheus is deployed
spec:
endpoints:
- targetPort: http
path: /metrics
namespaceSelector:
matchNames:
- default # ns where API server is deployed
selector:
matchLabels:
app.kubernetes.io/component: kuberay-apiserver