---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  labels:
    app: apt-version-exporter
    app.kubernetes.io/instance: apt-version-exporter
    app.kubernetes.io/name: apt-version-exporter
  name: apt-version-exporter-servicemonitor
  namespace: apt-version-exporter
spec:
  attachMetadata:
    node: false
  endpoints:
  - interval: 2h
    path: /metrics
    port: http-metrics
    relabelings:
    - action: replace
      sourceLabels:
      - __meta_kubernetes_endpoint_node_name
      targetLabel: node
    scheme: http
  jobLabel: jobLabel
  selector:
    matchLabels:
      app.kubernetes.io/instance: apt-version-exporter
      app.kubernetes.io/name: apt-version-exporter