Commit Graph

3 Commits

Author SHA1 Message Date
Andy Xie 19797a2830 bump kubernetes&&client-go&&api&&apimachinery to 1.8 2017-10-11 20:03:19 +08:00
Carl Henrik Lunde 4f184b86d8 Add kube_namespace_created and kube_namespace_labels
This allows prometheus reporting based on labels per namespace.

For example, if each namespace has a team label, you can report on
the memory use per team like this:

    sum(sum(container_memory_usage_bytes) by(namespace) * on(namespace)
    group_right() kube_namespace_labels) by (label_team)

We use the label "namespace" for the name of the namespace, to make it
easy to join with other metrics which is the primary use case.
2017-08-22 20:15:05 +02:00
zouyee 24fb41d5c3 add namespace metric and fix code component etc. 2017-08-22 20:08:14 +02:00