Nereus/deploy/base/servicemonitor.yaml

24 lines
681 B
YAML

# Prometheus Operator CRD, not core Kubernetes. Works because the k3d values
# set serviceMonitorSelectorNilUsesHelmValues: false.
#
# Matches both Services, so each pod is scraped once per Service. That's the
# point -- the `service` label is how the analysis isolates the preview.
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: nereus-api
labels:
app.kubernetes.io/name: nereus-api
app.kubernetes.io/part-of: nereus
spec:
selector:
matchLabels:
app.kubernetes.io/name: nereus-api
namespaceSelector:
matchNames:
- nereus
endpoints:
- port: http
path: /metrics
interval: 15s
scrapeTimeout: 10s