Collect Calico Felix metrics

Change-Id: I685f92aac7e4a5dd8bc724552142cb6ecc3a1cec
Depends-On: I5eb98f7edb38283e58b9706f899e2e641f407381
diff --git a/kubernetes/files/collectd_calico_felix.conf b/kubernetes/files/collectd_calico_felix.conf
new file mode 100644
index 0000000..c35bc0b
--- /dev/null
+++ b/kubernetes/files/collectd_calico_felix.conf
@@ -0,0 +1,9 @@
+
+Import "collectd_calico_felix"
+
+<Module "collectd_calico_felix">
+  {%- if plugin.url is defined %}
+  Url "{{ plugin.url }}"
+  {%- endif %}
+</Module>
+
diff --git a/kubernetes/meta/collectd.yml b/kubernetes/meta/collectd.yml
index dbf4d51..577fd24 100644
--- a/kubernetes/meta/collectd.yml
+++ b/kubernetes/meta/collectd.yml
@@ -11,6 +11,11 @@
 
 {%- if master.get('enabled', False) or pool.get('enabled', False) %}
 local_plugin:
+  collectd_calico_felix:
+   plugin: python
+   template: kubernetes/files/collectd_calico_felix.conf
+   url: http://localhost:9091/metrics
+
   collectd_http_check:
    interval: 30
    url: