Skip to content

Instantly share code, notes, and snippets.

@davidbirdsong
Created March 4, 2014 21:10
Show Gist options
  • Select an option

  • Save davidbirdsong/9355702 to your computer and use it in GitHub Desktop.

Select an option

Save davidbirdsong/9355702 to your computer and use it in GitHub Desktop.
create jmx json file
{% set config = dict(servers=list()) %}
{% for kserver in groups['kafka_' + coloc] %}
{% for query in kafkagraphitequeries %}
{% set q = dict(host=kserver, port= kafka[coloc].jmx_port, outputWriters=kafkagraphiteoutput) %}
{% do config.servers.append(q) %}
{% endfor %}
{% endfor %}
{% config|to_nice_json %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment