Github user geomacy commented on a diff in the pull request:

    https://github.com/apache/brooklyn-docs/pull/159#discussion_r108871926
  
    --- Diff: guide/java/policies.md ---
    @@ -235,6 +235,30 @@ An Enricher which computes latency in accessing a URL.
     Can be used to combine the values of sensors.  This enricher should be 
instantiated using Enrichers.buider.combining(..).
     This enricher is only available in Java blueprints and cannot be used in 
YAML.
     
    +#### Note On Enricher Producers
    +
    +`enricher.producer: brooklyn:entity("entity.id.here")` is a 
`brooklyn.config` key/value pair that should be supplied to any
    +enricher that has an `enricher.sourceSensor` value that comes from an 
entity that is different from the entity on which the
    +enricher is defined.
    +
    +For example, if we consider the Transfomer from above, suppose that 
`enricher.sourceSensor: $brooklyn:sensor("urls.tcp.list")`
    +is actually a sensor on a different entity called `load.balancer`. In this 
case, we would need to supploy an
    +`enricher.producer` value.
    +
    +{% highlight yaml %}
    +brooklyn.enrichers:
    +- type: org.apache.brooklyn.enricher.stock.Transformer
    +  brooklyn.config:
    +    enricher.producer: brooklyn:entity("load.balancer")
    --- End diff --
    
    You're missing the `$` in front of `brooklyn:`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to