Last active
August 29, 2015 14:05
-
-
Save mbarton/1a258ac06103af7c1635 to your computer and use it in GitHub Desktop.
two clusters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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