# By default the BOSH director is not scraped by Prometheus

- type: replace
  path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/scrape_configs/job_name=node/static_configs?/-
  value:
    targets:
      - "10.0.0.6:9100"

# By default the BOSH director is not scraped by Prometheus

- type: replace
  path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/scrape_configs/job_name=node/static_configs?/-
  value:
    targets:
      # The port will be added in the upstream relabel configuration
      - "10.0.0.6"
    labels:
      __meta_bosh_job_process_name: node_exporter

Add bosh job proc name to bosh node exporter op
Add bosh job proc name to bosh node exporter op

Otherwise it gets dropped by the upstream relabel config

Signed-off-by: Toby Lorne <527052641d65eef236eeef9545b2acac74c35d57@digital.cabinet-office.gov.uk>
