---
# cf-deployment uses system_domain as metron agent deployment.
# Use this to override metron agent deployment name in the loggregator_agent addon
- type: replace
  path: /addons/name=loggregator_agent/jobs/name=loggregator_agent/properties/deployment?
  value: ((loggregator_agent_deployment))

---
# cf-deployment uses system_domain as metron agent deployment.
# Use this to override metron agent deployment name in the loggregator_agent addon
- type: replace
  path: /addons/name=loggregator_agent/jobs/name=loggregator_agent/properties/deployment?
  value: ((loggregator_agent_deployment))
- type: replace
  path: /addons/name=loggregator_agent/jobs/name=loggregator_agent/properties/tags?/deployment
  value: ((loggregator_agent_deployment))
- type: replace
  path: /addons/name=forwarder_agent/jobs/name=loggr-forwarder-agent/properties/deployment?
  value: ((loggregator_agent_deployment))
- type: replace
  path: /addons/name=forwarder_agent/jobs/name=loggr-forwarder-agent/properties/tags?/deployment
  value: ((loggregator_agent_deployment))

Set deployment name tag in loggregator_agent and loggr-forwarder-agent
Set deployment name tag in loggregator_agent and loggr-forwarder-agent

Since the loggregator forwarder_agent is now GA in cf-deployment,
in order to set a custom deployment name for metrics, we'll have to
set the deployment name tag in the loggr-forwarder-agent properties.

We also set the loggregator_agent deployment tag property to ensure v2
envelopes have the correct deployment tag.

Co-authored-by: Edwin Xie <6bc24e9c160281972837d9e13287696d26612564@pivotal.io>
