Merge "Mend transport_url/vhost option in single mode"
diff --git a/nova/meta/telegraf.yml b/nova/meta/telegraf.yml
index 6b2366b..af428a6 100644
--- a/nova/meta/telegraf.yml
+++ b/nova/meta/telegraf.yml
@@ -1,7 +1,14 @@
 {%- from "nova/map.jinja" import controller with context %}
-{%- if controller is defined and controller.get('enabled', False) and controller.cpu_allocation_ratio is defined %}
+{%- if controller is defined and controller.get('enabled', False) %}
+{%- if controller.cpu_allocation_ratio is defined %}
 remote_agent:
   input:
     openstack:
       cpu_ratio: "{{ controller.cpu_allocation_ratio }}"
 {%- endif %}
+agent:
+  input:
+    http_response:
+      nova-api:
+        address: "http://{{ controller.bind.private_address|replace('0.0.0.0', '127.0.0.1') }}:8774/"
+{%- endif %}