---
# Scrape ghp's Prometheus metrics endpoint. Picked up by the observability
# VMAgent (selectAllByDefault). Estate uses VictoriaMetrics, so VMServiceScrape
# rather than a prometheus-operator ServiceMonitor.
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMServiceScrape
metadata:
  name: ghp
  namespace: ghp
  annotations:
    argocd.argoproj.io/sync-wave: "2"
spec:
  selector:
    matchLabels:
      app: ghp
  endpoints:
    - port: metrics
      path: /metrics
      # ghp runs in plain reverse-proxy mode (no GHP_SERVER_HTTPS_LISTEN), so the
      # metrics server is cleartext HTTP rather than TLS. Scrape over http.
      scheme: http
