Add cpu allocation ratio to OpenStack Telegraf plugin configuration

Change-Id: I020ce3f3d1d348d7f6a9d1ae91d9d716c4c6d59e
Depends-On: Iadb37c5511763a48e5185768b9369abc95864547
diff --git a/metadata/service/support.yml b/metadata/service/support.yml
index b1d9bcd..2c762b0 100644
--- a/metadata/service/support.yml
+++ b/metadata/service/support.yml
@@ -13,3 +13,5 @@
         enabled: true
       grafana:
         enabled: true
+      telegraf:
+        enabled: true
diff --git a/nova/meta/telegraf.yml b/nova/meta/telegraf.yml
new file mode 100644
index 0000000..6b2366b
--- /dev/null
+++ b/nova/meta/telegraf.yml
@@ -0,0 +1,7 @@
+{%- from "nova/map.jinja" import controller with context %}
+{%- if controller is defined and controller.get('enabled', False) and controller.cpu_allocation_ratio is defined %}
+remote_agent:
+  input:
+    openstack:
+      cpu_ratio: "{{ controller.cpu_allocation_ratio }}"
+{%- endif %}