Skip to content

Instantly share code, notes, and snippets.

@mbarton
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbarton/1a258ac06103af7c1635 to your computer and use it in GitHub Desktop.
Save mbarton/1a258ac06103af7c1635 to your computer and use it in GitHub Desktop.
two clusters
machines {
machine {}
}
netprobes {
monitor-probe {}
}
gateways {
cluster-one-gateway {
setup: ${vars.normal-gw-setup}
}
cluster-two-gateway {
setup: ${vars.normal-gw-setup}
}
monitor-gateway {
setup: ${vars.monitor-gw-setup}
}
}
nodes {
proto {
monitoring {
probe: monitor-probe
sampler: clustermon
entity: BasicEntity
}
}
nodeA {
seed-nodes: ["nodeA"]
gateways: ["cluster-one-gateway"]
}
nodeB {
seed-nodes: ["nodeB"]
gateways: ["cluster-two-gateway"]
}
}
vars {
normal-gw-setup: """
<gateway>
<probes><probe name="probe"/></probes>
<managedEntities>
<managedEntity name="BasicEntity">
<probe ref="probe"/>
<sampler ref="cpu"></sampler>
</managedEntity>
</managedEntities>
<samplers>
<sampler name="cpu">
<sampleInterval><data>1</data></sampleInterval>
<plugin><cpu/></plugin>
</sampler>
</samplers>
</gateway>
"""
monitor-gw-setup: """
<gateway>
<probes><probe name="monitor-probe"/></probes>
<managedEntities>
<managedEntity name="BasicEntity">
<probe ref="monitor-probe"/>
<sampler ref="cpu"></sampler>
<sampler ref="clustermon"></sampler>
</managedEntity>
</managedEntities>
<samplers>
<sampler name="cpu">
<sampleInterval><data>1</data></sampleInterval>
<plugin><cpu/></plugin>
</sampler>
<sampler name="clustermon">
<plugin><api></api></plugin>
</sampler>
</samplers>
</gateway>
"""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment