)]}'
{"cluster_metrics/files/cinder_data.py":[{"author":{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},"change_message_id":"b20c2ffefd59cb6864d3b73c2014ee6d98a9e9ad","unresolved":false,"context_lines":[{"line_number":1,"context_line":"import json"},{"line_number":2,"context_line":"import subprocess"},{"line_number":3,"context_line":"output \u003d subprocess.check_output(\"/bin/bash -l -c \"\\"},{"line_number":4,"context_line":"\"\u0027source /home/openrc;cinder get-pools --detail|\" \\"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a95cdbc_8b97708f","line":1,"updated":"2016-10-05 19:43:46.000000000","message":"We need the license boilerplate at the top here.","commit_id":"e425dea501d369bce47442e61cf123ff431ce7c3"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"7401ecc15b07d997078b8dd5e0e17fe6de4115f9","unresolved":false,"context_lines":[{"line_number":18,"context_line":"import subprocess"},{"line_number":19,"context_line":"from jsontoinflux import jsontoinflux"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"output \u003d subprocess.check_output(\"/bin/bash -l -c\\"},{"line_number":22,"context_line":"   \u0027source /home/openrc;cinder get-pools --detail|\\"},{"line_number":23,"context_line":"      grep -w \\\"total_capacity_gb\\|free_capacity_gb\\|name\\\"\u0027\\"},{"line_number":24,"context_line":"         \", shell\u003dTrue, stderr\u003dsubprocess.PIPE)"},{"line_number":25,"context_line":"list \u003d []"},{"line_number":26,"context_line":"tag_keys \u003d dict()"},{"line_number":27,"context_line":"return_data \u003d dict()"}],"source_content_type":"text/x-python","patch_set":26,"id":"7a77a97e_4ce623b1","line":24,"range":{"start_line":21,"start_character":0,"end_line":24,"end_character":47},"updated":"2016-11-17 02:28:23.000000000","message":"In the future it\u0027d be nice if this was using the OpenStack SDK or maybe the cinder client libraries but no deal breaker.","commit_id":"346861b784277c3d3b6dea195f1422f6b3e62e38"},{"author":{"_account_id":22778,"name":"Nish Patwa(nishpatwa007)","email":"nish.patwa@intel.com","username":"npatwa"},"change_message_id":"b1fc33b9f3473880c51a9b1c064842868859d687","unresolved":false,"context_lines":[{"line_number":18,"context_line":"import subprocess"},{"line_number":19,"context_line":"from jsontoinflux import jsontoinflux"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"output \u003d subprocess.check_output(\"/bin/bash -l -c\\"},{"line_number":22,"context_line":"   \u0027source /home/openrc;cinder get-pools --detail|\\"},{"line_number":23,"context_line":"      grep -w \\\"total_capacity_gb\\|free_capacity_gb\\|name\\\"\u0027\\"},{"line_number":24,"context_line":"         \", shell\u003dTrue, stderr\u003dsubprocess.PIPE)"},{"line_number":25,"context_line":"list \u003d []"},{"line_number":26,"context_line":"tag_keys \u003d dict()"},{"line_number":27,"context_line":"return_data \u003d dict()"}],"source_content_type":"text/x-python","patch_set":26,"id":"7a77a97e_f814ada0","line":24,"range":{"start_line":21,"start_character":0,"end_line":24,"end_character":47},"in_reply_to":"7a77a97e_4ce623b1","updated":"2016-11-18 19:59:21.000000000","message":"I checked the cinder python client, but its not well documented and I am not able to execute the cinder commands using the api","commit_id":"346861b784277c3d3b6dea195f1422f6b3e62e38"}],"cluster_metrics/files/cinder_data.sh":[{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"f516b3b943e47ecc53d5cbd2472b92e3aa114197","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":4,"id":"3a98d1f4_5c3600e8","updated":"2016-09-29 19:02:26.000000000","message":"Would it be possible to simply execute this using the known creds and loading it through the python plugin?","commit_id":"e0c725b334f29c18667bdf91dfec25f3fad101a4"}],"cluster_metrics/kapacitor_files/delete_all.sh":[{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"794fb4debc0ca80fa42b3545df7cb9e76892dccb","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":24,"id":"ba5da102_d34b1caf","updated":"2016-10-26 18:31:01.000000000","message":"This needs a boilerplate header and a #!","commit_id":"451a375ef52044e789001d1fc66a1d5b6dbe77b7"},{"author":{"_account_id":22778,"name":"Nish Patwa(nishpatwa007)","email":"nish.patwa@intel.com","username":"npatwa"},"change_message_id":"4b56855e4e45884d161769f688948fa82d2290bd","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":24,"id":"ba5da102_e8cb7451","in_reply_to":"ba5da102_d34b1caf","updated":"2016-10-31 20:26:06.000000000","message":"Done","commit_id":"451a375ef52044e789001d1fc66a1d5b6dbe77b7"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"7401ecc15b07d997078b8dd5e0e17fe6de4115f9","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2016, Rackspace US, Inc."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":4,"context_line":"# you may not use this file except in compliance with the License."}],"source_content_type":"text/x-sh","patch_set":26,"id":"7a77a97e_ec536f37","line":1,"updated":"2016-11-17 02:28:23.000000000","message":"this should have a \"#!/usr/bin/env bash\" at the top of the file.","commit_id":"346861b784277c3d3b6dea195f1422f6b3e62e38"},{"author":{"_account_id":22778,"name":"Nish Patwa(nishpatwa007)","email":"nish.patwa@intel.com","username":"npatwa"},"change_message_id":"b1fc33b9f3473880c51a9b1c064842868859d687","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2016, Rackspace US, Inc."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":4,"context_line":"# you may not use this file except in compliance with the License."}],"source_content_type":"text/x-sh","patch_set":26,"id":"7a77a97e_d8a7f1a4","line":1,"in_reply_to":"7a77a97e_ec536f37","updated":"2016-11-18 19:59:21.000000000","message":"Done","commit_id":"346861b784277c3d3b6dea195f1422f6b3e62e38"}],"cluster_metrics/kapacitor_files/run_all.sh":[{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"794fb4debc0ca80fa42b3545df7cb9e76892dccb","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":24,"id":"ba5da102_73db30ee","updated":"2016-10-26 18:31:01.000000000","message":"This needs a boilerplate header and a #!","commit_id":"451a375ef52044e789001d1fc66a1d5b6dbe77b7"},{"author":{"_account_id":22778,"name":"Nish Patwa(nishpatwa007)","email":"nish.patwa@intel.com","username":"npatwa"},"change_message_id":"4b56855e4e45884d161769f688948fa82d2290bd","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":24,"id":"ba5da102_28c64c48","in_reply_to":"ba5da102_73db30ee","updated":"2016-10-31 20:26:06.000000000","message":"Done","commit_id":"451a375ef52044e789001d1fc66a1d5b6dbe77b7"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"7401ecc15b07d997078b8dd5e0e17fe6de4115f9","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2016, Rackspace US, Inc."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":4,"context_line":"# you may not use this file except in compliance with the License."}],"source_content_type":"text/x-sh","patch_set":26,"id":"7a77a97e_0c334b15","line":1,"updated":"2016-11-17 02:28:23.000000000","message":"this should have a \"#!/usr/bin/env bash\" at the top of the file.","commit_id":"346861b784277c3d3b6dea195f1422f6b3e62e38"},{"author":{"_account_id":22778,"name":"Nish Patwa(nishpatwa007)","email":"nish.patwa@intel.com","username":"npatwa"},"change_message_id":"b1fc33b9f3473880c51a9b1c064842868859d687","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2016, Rackspace US, Inc."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":4,"context_line":"# you may not use this file except in compliance with the License."}],"source_content_type":"text/x-sh","patch_set":26,"id":"7a77a97e_18bc09ba","line":1,"in_reply_to":"7a77a97e_0c334b15","updated":"2016-11-18 19:59:21.000000000","message":"Done","commit_id":"346861b784277c3d3b6dea195f1422f6b3e62e38"}],"cluster_metrics/kapacitor_files/tickscripts/conntrack_alert_batch.tick":[{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"794fb4debc0ca80fa42b3545df7cb9e76892dccb","unresolved":false,"context_lines":[{"line_number":24,"context_line":"    .period(period)"},{"line_number":25,"context_line":"    .every(every)"},{"line_number":26,"context_line":"    .groupBy(\u0027host\u0027)"},{"line_number":27,"context_line":" "},{"line_number":28,"context_line":"// Thresholds"},{"line_number":29,"context_line":"var alert \u003d data"},{"line_number":30,"context_line":"  |alert()"}],"source_content_type":"application/octet-stream","patch_set":24,"id":"ba5da102_f37820fb","line":27,"range":{"start_line":27,"start_character":0,"end_line":27,"end_character":1},"updated":"2016-10-26 18:31:01.000000000","message":"whitespace.","commit_id":"451a375ef52044e789001d1fc66a1d5b6dbe77b7"},{"author":{"_account_id":22778,"name":"Nish Patwa(nishpatwa007)","email":"nish.patwa@intel.com","username":"npatwa"},"change_message_id":"4b56855e4e45884d161769f688948fa82d2290bd","unresolved":false,"context_lines":[{"line_number":24,"context_line":"    .period(period)"},{"line_number":25,"context_line":"    .every(every)"},{"line_number":26,"context_line":"    .groupBy(\u0027host\u0027)"},{"line_number":27,"context_line":" "},{"line_number":28,"context_line":"// Thresholds"},{"line_number":29,"context_line":"var alert \u003d data"},{"line_number":30,"context_line":"  |alert()"}],"source_content_type":"application/octet-stream","patch_set":24,"id":"ba5da102_68de8412","line":27,"range":{"start_line":27,"start_character":0,"end_line":27,"end_character":1},"in_reply_to":"ba5da102_f37820fb","updated":"2016-10-31 20:26:06.000000000","message":"Done","commit_id":"451a375ef52044e789001d1fc66a1d5b6dbe77b7"}],"cluster_metrics/kapacitor_files/tickscripts/cpu_alert_stream.tick":[{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"794fb4debc0ca80fa42b3545df7cb9e76892dccb","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    .info(lambda: \"stat\" \u003c info)"},{"line_number":41,"context_line":"    .warn(lambda: \"stat\" \u003c warn)"},{"line_number":42,"context_line":"    .crit(lambda: \"stat\" \u003c crit)"},{"line_number":43,"context_line":" "},{"line_number":44,"context_line":"// Alert"},{"line_number":45,"context_line":"alert"},{"line_number":46,"context_line":"  .log(\u0027/tmp/cpu_alert_log.txt\u0027)"}],"source_content_type":"application/octet-stream","patch_set":24,"id":"ba5da102_137e74e4","line":43,"range":{"start_line":43,"start_character":0,"end_line":43,"end_character":1},"updated":"2016-10-26 18:31:01.000000000","message":"whitespace.","commit_id":"451a375ef52044e789001d1fc66a1d5b6dbe77b7"},{"author":{"_account_id":22778,"name":"Nish Patwa(nishpatwa007)","email":"nish.patwa@intel.com","username":"npatwa"},"change_message_id":"4b56855e4e45884d161769f688948fa82d2290bd","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    .info(lambda: \"stat\" \u003c info)"},{"line_number":41,"context_line":"    .warn(lambda: \"stat\" \u003c warn)"},{"line_number":42,"context_line":"    .crit(lambda: \"stat\" \u003c crit)"},{"line_number":43,"context_line":" "},{"line_number":44,"context_line":"// Alert"},{"line_number":45,"context_line":"alert"},{"line_number":46,"context_line":"  .log(\u0027/tmp/cpu_alert_log.txt\u0027)"}],"source_content_type":"application/octet-stream","patch_set":24,"id":"ba5da102_c8eb10af","line":43,"range":{"start_line":43,"start_character":0,"end_line":43,"end_character":1},"in_reply_to":"ba5da102_137e74e4","updated":"2016-10-31 20:26:06.000000000","message":"Done","commit_id":"451a375ef52044e789001d1fc66a1d5b6dbe77b7"}],"cluster_metrics/kapacitor_files/tickscripts/interface_speed_alert_stream.tick":[{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"794fb4debc0ca80fa42b3545df7cb9e76892dccb","unresolved":false,"context_lines":[{"line_number":70,"context_line":"    .warn(lambda: \"bytes_recv.value\"+\"bytes_sent.value\" \u003e \"max_speed.value\"*0.125*1000000.0*warn)"},{"line_number":71,"context_line":"    .crit(lambda: \"bytes_recv.value\"+\"bytes_sent.value\" \u003e \"max_speed.value\"*0.125*1000000.0*crit)"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"// Alert "},{"line_number":74,"context_line":" alert"},{"line_number":75,"context_line":"  .log(\u0027/tmp/interface_speed_alert_log.txt\u0027)"}],"source_content_type":"application/octet-stream","patch_set":24,"id":"ba5da102_736df031","line":73,"range":{"start_line":73,"start_character":8,"end_line":73,"end_character":9},"updated":"2016-10-26 18:31:01.000000000","message":"whitespace.","commit_id":"451a375ef52044e789001d1fc66a1d5b6dbe77b7"}],"cluster_metrics/kapacitor_files/tickscripts/mem_alert_stream.tick":[{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"794fb4debc0ca80fa42b3545df7cb9e76892dccb","unresolved":false,"context_lines":[{"line_number":28,"context_line":"    .every(every)"},{"line_number":29,"context_line":"  |mean(\u0027used_percent\u0027)"},{"line_number":30,"context_line":"    .as(\u0027stat\u0027)"},{"line_number":31,"context_line":" "},{"line_number":32,"context_line":"// Thresholds"},{"line_number":33,"context_line":"var alert \u003d data"},{"line_number":34,"context_line":"  |alert()"}],"source_content_type":"application/octet-stream","patch_set":24,"id":"ba5da102_d374fcfe","line":31,"range":{"start_line":31,"start_character":0,"end_line":31,"end_character":1},"updated":"2016-10-26 18:31:01.000000000","message":"whitespace.","commit_id":"451a375ef52044e789001d1fc66a1d5b6dbe77b7"},{"author":{"_account_id":22778,"name":"Nish Patwa(nishpatwa007)","email":"nish.patwa@intel.com","username":"npatwa"},"change_message_id":"4b56855e4e45884d161769f688948fa82d2290bd","unresolved":false,"context_lines":[{"line_number":28,"context_line":"    .every(every)"},{"line_number":29,"context_line":"  |mean(\u0027used_percent\u0027)"},{"line_number":30,"context_line":"    .as(\u0027stat\u0027)"},{"line_number":31,"context_line":" "},{"line_number":32,"context_line":"// Thresholds"},{"line_number":33,"context_line":"var alert \u003d data"},{"line_number":34,"context_line":"  |alert()"}],"source_content_type":"application/octet-stream","patch_set":24,"id":"ba5da102_08cee859","line":31,"range":{"start_line":31,"start_character":0,"end_line":31,"end_character":1},"in_reply_to":"ba5da102_d374fcfe","updated":"2016-10-31 20:26:06.000000000","message":"Done","commit_id":"451a375ef52044e789001d1fc66a1d5b6dbe77b7"}],"cluster_metrics/kapacitor_files/tickscripts/net_alert_stream.tick":[{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"794fb4debc0ca80fa42b3545df7cb9e76892dccb","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    .as(\u0027value\u0027)"},{"line_number":30,"context_line":"    .nonNegative()"},{"line_number":31,"context_line":"    .unit(unit)"},{"line_number":32,"context_line":" "},{"line_number":33,"context_line":"var err_out \u003d rawdata"},{"line_number":34,"context_line":"  |derivative(\u0027err_out\u0027)"},{"line_number":35,"context_line":"    .as(\u0027value\u0027)"}],"source_content_type":"application/octet-stream","patch_set":24,"id":"ba5da102_f35f4073","line":32,"range":{"start_line":32,"start_character":0,"end_line":32,"end_character":1},"updated":"2016-10-26 18:31:01.000000000","message":"whitespace.","commit_id":"451a375ef52044e789001d1fc66a1d5b6dbe77b7"},{"author":{"_account_id":22778,"name":"Nish Patwa(nishpatwa007)","email":"nish.patwa@intel.com","username":"npatwa"},"change_message_id":"4b56855e4e45884d161769f688948fa82d2290bd","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    .as(\u0027value\u0027)"},{"line_number":30,"context_line":"    .nonNegative()"},{"line_number":31,"context_line":"    .unit(unit)"},{"line_number":32,"context_line":" "},{"line_number":33,"context_line":"var err_out \u003d rawdata"},{"line_number":34,"context_line":"  |derivative(\u0027err_out\u0027)"},{"line_number":35,"context_line":"    .as(\u0027value\u0027)"}],"source_content_type":"application/octet-stream","patch_set":24,"id":"ba5da102_28dd6c0e","line":32,"range":{"start_line":32,"start_character":0,"end_line":32,"end_character":1},"in_reply_to":"ba5da102_f35f4073","updated":"2016-10-31 20:26:06.000000000","message":"Done","commit_id":"451a375ef52044e789001d1fc66a1d5b6dbe77b7"}],"cluster_metrics/kapacitor_files/tickscripts/netstat_alert_stream.tick":[{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"794fb4debc0ca80fa42b3545df7cb9e76892dccb","unresolved":false,"context_lines":[{"line_number":31,"context_line":"    .every(every)"},{"line_number":32,"context_line":"  |mean(\u0027tcp_established\u0027)"},{"line_number":33,"context_line":"    .as(\u0027stat\u0027)"},{"line_number":34,"context_line":" "},{"line_number":35,"context_line":"// Thresholds"},{"line_number":36,"context_line":"var alert \u003d data"},{"line_number":37,"context_line":"  |eval(lambda: sigma(\"stat\"))"}],"source_content_type":"application/octet-stream","patch_set":24,"id":"ba5da102_535f0c72","line":34,"range":{"start_line":34,"start_character":0,"end_line":34,"end_character":1},"updated":"2016-10-26 18:31:01.000000000","message":"whitespace.","commit_id":"451a375ef52044e789001d1fc66a1d5b6dbe77b7"},{"author":{"_account_id":22778,"name":"Nish Patwa(nishpatwa007)","email":"nish.patwa@intel.com","username":"npatwa"},"change_message_id":"4b56855e4e45884d161769f688948fa82d2290bd","unresolved":false,"context_lines":[{"line_number":31,"context_line":"    .every(every)"},{"line_number":32,"context_line":"  |mean(\u0027tcp_established\u0027)"},{"line_number":33,"context_line":"    .as(\u0027stat\u0027)"},{"line_number":34,"context_line":" "},{"line_number":35,"context_line":"// Thresholds"},{"line_number":36,"context_line":"var alert \u003d data"},{"line_number":37,"context_line":"  |eval(lambda: sigma(\"stat\"))"}],"source_content_type":"application/octet-stream","patch_set":24,"id":"ba5da102_6805a478","line":34,"range":{"start_line":34,"start_character":0,"end_line":34,"end_character":1},"in_reply_to":"ba5da102_535f0c72","updated":"2016-10-31 20:26:06.000000000","message":"Done","commit_id":"451a375ef52044e789001d1fc66a1d5b6dbe77b7"}],"cluster_metrics/playbook-influx-telegraf.yml":[{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"bffca3f2b132d09a82f0ee59705456dc59bc5cca","unresolved":false,"context_lines":[{"line_number":30,"context_line":"      apt:"},{"line_number":31,"context_line":"        pkg: \"telegraf\""},{"line_number":32,"context_line":"        state: \"latest\""},{"line_number":33,"context_line":"    - name: Install Ethtool"},{"line_number":34,"context_line":"      apt:"},{"line_number":35,"context_line":"        pkg: \"ethtool\""},{"line_number":36,"context_line":"        state: \"latest\""},{"line_number":37,"context_line":"    - name: Create telegraf plugin dir"},{"line_number":38,"context_line":"      file:"},{"line_number":39,"context_line":"        path: \"/opt/telegraf\""}],"source_content_type":"text/x-yaml","patch_set":20,"id":"fa6399be_c2a95a7d","line":36,"range":{"start_line":33,"start_character":0,"end_line":36,"end_character":23},"updated":"2016-10-12 03:02:54.000000000","message":"do we need/want this installed everywhere?","commit_id":"8951097d177dfff241aecefe88fd717f8ffb6db4"},{"author":{"_account_id":22778,"name":"Nish Patwa(nishpatwa007)","email":"nish.patwa@intel.com","username":"npatwa"},"change_message_id":"765fe49c738f7efc140094c616877224321405c6","unresolved":false,"context_lines":[{"line_number":30,"context_line":"      apt:"},{"line_number":31,"context_line":"        pkg: \"telegraf\""},{"line_number":32,"context_line":"        state: \"latest\""},{"line_number":33,"context_line":"    - name: Install Ethtool"},{"line_number":34,"context_line":"      apt:"},{"line_number":35,"context_line":"        pkg: \"ethtool\""},{"line_number":36,"context_line":"        state: \"latest\""},{"line_number":37,"context_line":"    - name: Create telegraf plugin dir"},{"line_number":38,"context_line":"      file:"},{"line_number":39,"context_line":"        path: \"/opt/telegraf\""}],"source_content_type":"text/x-yaml","patch_set":20,"id":"fa6399be_138b82c4","line":36,"range":{"start_line":33,"start_character":0,"end_line":36,"end_character":23},"in_reply_to":"fa6399be_c2a95a7d","updated":"2016-10-12 19:03:04.000000000","message":"I guess so. For getting the maximum speed of each interface for each node.","commit_id":"8951097d177dfff241aecefe88fd717f8ffb6db4"}],"cluster_metrics/templates/telegraf.conf.j2":[{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"f516b3b943e47ecc53d5cbd2472b92e3aa114197","unresolved":false,"context_lines":[{"line_number":38,"context_line":"            \"nf_conntrack_count\",\"nf_conntrack_max\"]"},{"line_number":39,"context_line":"  dirs \u003d [\"/proc/sys/net/ipv4/netfilter\",\"/proc/sys/net/netfilter\"]"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"{% if inventory_hostname in groups[\u0027utility_all\u0027] %}"},{"line_number":42,"context_line":"[[inputs.exec]]"},{"line_number":43,"context_line":"  commands \u003d [\"python /opt/telegraf/cinder_data.py\"]"},{"line_number":44,"context_line":"  timeout \u003d \"5s\""},{"line_number":45,"context_line":"  data_format \u003d \"json\""},{"line_number":46,"context_line":"  name_prefix \u003d \"cinder_\""},{"line_number":47,"context_line":"{%   endif %}"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"{% if inventory_hostname in groups[\u0027all_containers\u0027] %}"},{"line_number":50,"context_line":""}],"source_content_type":"text/x-jinja2","patch_set":4,"id":"3a98d1f4_6108772e","line":47,"range":{"start_line":41,"start_character":0,"end_line":47,"end_character":13},"updated":"2016-09-29 19:02:26.000000000","message":"this should be moved to the existing [[inputs.exec]] section. Additionally it\u0027d be nice if this was simply appending to the commands list that is already in that section based on being a compute node, utility node, etc.","commit_id":"e0c725b334f29c18667bdf91dfec25f3fad101a4"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"663a37b0f491d0f192446d74ad090e7ca1abb17d","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"[[inputs.exec]]"},{"line_number":42,"context_line":"{% if inventory_hostname in groups[\u0027utility_all\u0027] %}"},{"line_number":43,"context_line":"  commands \u003d [\"python /opt/telegraf/cinder_data.py\"]"},{"line_number":44,"context_line":"  timeout \u003d \"5s\""},{"line_number":45,"context_line":"  name_prefix \u003d \"cinder_\""},{"line_number":46,"context_line":"{%   endif %}"},{"line_number":47,"context_line":"{% if inventory_hostname in groups[\u0027nova_compute\u0027] %}"},{"line_number":48,"context_line":"  commands \u003d [\"/opt/telegraf/kvm_virsh.py\"]"},{"line_number":49,"context_line":"  timeout \u003d \"15s\""},{"line_number":50,"context_line":"  name_prefix \u003d \"custom_\""},{"line_number":51,"context_line":"{%   endif %}"}],"source_content_type":"text/x-jinja2","patch_set":6,"id":"3a98d1f4_1706b81c","line":48,"range":{"start_line":43,"start_character":0,"end_line":48,"end_character":43},"updated":"2016-10-02 04:05:11.000000000","message":"I would still like to see this as a single dynamically generated command based on set facts.","commit_id":"f1c715d2a70d79c2c9b310d41d02aaaca492cdd6"},{"author":{"_account_id":22778,"name":"Nish Patwa(nishpatwa007)","email":"nish.patwa@intel.com","username":"npatwa"},"change_message_id":"83e43b9c0fb720507700e1fc5df01e59e3588fb7","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"[[inputs.exec]]"},{"line_number":42,"context_line":"{% if inventory_hostname in groups[\u0027utility_all\u0027] %}"},{"line_number":43,"context_line":"  commands \u003d [\"python /opt/telegraf/cinder_data.py\"]"},{"line_number":44,"context_line":"  timeout \u003d \"5s\""},{"line_number":45,"context_line":"  name_prefix \u003d \"cinder_\""},{"line_number":46,"context_line":"{%   endif %}"},{"line_number":47,"context_line":"{% if inventory_hostname in groups[\u0027nova_compute\u0027] %}"},{"line_number":48,"context_line":"  commands \u003d [\"/opt/telegraf/kvm_virsh.py\"]"},{"line_number":49,"context_line":"  timeout \u003d \"15s\""},{"line_number":50,"context_line":"  name_prefix \u003d \"custom_\""},{"line_number":51,"context_line":"{%   endif %}"}],"source_content_type":"text/x-jinja2","patch_set":6,"id":"3a98d1f4_abf6638c","line":48,"range":{"start_line":43,"start_character":0,"end_line":48,"end_character":43},"in_reply_to":"3a98d1f4_1706b81c","updated":"2016-10-03 15:00:47.000000000","message":"Sure.\nActually I am facing an issue in retrieving the commands info.\nIts appending a unicode character u in front of the string and throwing an error.\nI am working on that.","commit_id":"f1c715d2a70d79c2c9b310d41d02aaaca492cdd6"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"d36a55f2308d066c7414161aba2cf25af090da72","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"{% if commands %}"},{"line_number":42,"context_line":"[[inputs.exec]]"},{"line_number":43,"context_line":"  commands \u003d [\"{{ commands | list | join(\"\\\", \\\"\") }}\"]"},{"line_number":44,"context_line":"  timeout \u003d \"15s\""},{"line_number":45,"context_line":"  name_prefix \u003d \"custom_\""},{"line_number":46,"context_line":"  data_format \u003d \"json\""}],"source_content_type":"text/x-jinja2","patch_set":7,"id":"3a98d1f4_9992c8f4","line":43,"range":{"start_line":43,"start_character":18,"end_line":43,"end_character":50},"updated":"2016-10-04 01:10:15.000000000","message":"Since commands should already be a list I believe we can simply do the following:\n\n  {{ commands | map(\u0027quote\u0027) | join (\u0027,\u0027) }}","commit_id":"f14665b6c20091af28fb7f58cf0fa69c475b67eb"}]}
