apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: besu-validators
  namespace: besu-network
  labels:
    app: besu
    component: validator
spec:
  selector:
    matchLabels:
      app: besu
      component: validator
  endpoints:
    - port: metrics
      path: /metrics
      interval: 30s
      scrapeTimeout: 10s
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: besu-sentries
  namespace: besu-network
  labels:
    app: besu
    component: sentry
spec:
  selector:
    matchLabels:
      app: besu
      component: sentry
  endpoints:
    - port: metrics
      path: /metrics
      interval: 30s
      scrapeTimeout: 10s
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: besu-rpc
  namespace: besu-network
  labels:
    app: besu
    component: rpc
spec:
  selector:
    matchLabels:
      app: besu
      component: rpc
  endpoints:
    - port: metrics
      path: /metrics
      interval: 30s
      scrapeTimeout: 10s
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: oracle-publisher
  namespace: besu-network
  labels:
    app: oracle-publisher
spec:
  selector:
    matchLabels:
      app: oracle-publisher
  endpoints:
    - port: metrics
      path: /metrics
      interval: 30s
      scrapeTimeout: 10s

