Skip to content

Instantly share code, notes, and snippets.

@bibryam
Created November 12, 2012 12:41
Show Gist options
  • Select an option

  • Save bibryam/4059191 to your computer and use it in GitHub Desktop.

Select an option

Save bibryam/4059191 to your computer and use it in GitHub Desktop.
Camel JMX Subscription route
<camel:route>
<camel:from uri="jmx:platform?objectDomain=org.apache.camel&amp;monitorType=counter&amp;differenceMode=false&amp;key.context=MC-SS071464.local/monitorContext&amp;key.type=routes&amp;key.name=%22processingRoute%22&amp;observedAttribute=ExchangesFailed&amp;initThreshold=1&amp;granularityPeriod=5000&amp;offset=1&amp;format=raw"/>
<setHeader headerName="CamelAwsCwMetricName">
<simple>${body.observedAttribute}</simple>
</setHeader>
<setHeader headerName="CamelAwsCwMetricValue">
<simple>${body.derivedGauge}</simple>
</setHeader>
<setHeader headerName="CamelAwsCwMetricUnit">
<constant>Count</constant>
</setHeader>
<camel:to uri="aws-cw://www.livephotostream.com/live?accessKey=XXX&amp;secretKey=XXX"/>
</camel:route>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment