Add NotReady nodes percentage metric

Change-Id: I403d06f10a589370fa40ad08a0fcb6d3ec237ba4
diff --git a/collectd/files/plugin/collectd_k8s_kubectl_get.py b/collectd/files/plugin/collectd_k8s_kubectl_get.py
index 324867d..1333120 100644
--- a/collectd/files/plugin/collectd_k8s_kubectl_get.py
+++ b/collectd/files/plugin/collectd_k8s_kubectl_get.py
@@ -94,6 +94,12 @@
                 if self._check_conditions(conditions, _type='Ready'):
                     total_ready += 1
                 total += 1
+            if total > 0:
+                yield {'values': (100.0 * (total - total_ready)) / total,
+                       'plugin_instance': 'nodes_percent',
+                       'meta': {'status': 'not_ready'},
+                       }
+
             yield {'values': total_ready,
                    'plugin_instance': 'nodes',
                    'meta': {'status': 'ready'},