Use the six library to get monasca-agent to work with
python2.7 and python3.
Story: 2004148
Task: 27621
Change-Id: I0de315967dd5a745741fda0c53ce8cc85cda8cc5
Signed-off-by: Chuck Short <chucks@redhat.com>
For k8s we are updating the pod owner
functionaility
Kubernetes 1.6 and newer supports having owner
reference instead if parsing name. This patch
takes advantage of that.
For prometheus we are adding the ability to look
up pod owner based on a pod dimension. This is
key when using kube-state-metrics so we dont
have dead alarms
Also includes a minor fix in k8s plugin for memory
Patch also includes changes to our agent tests as
we now allow () in our new dimensions keys and values
and our tests were not updated for this change yet
Change-Id: I17ea7f42d4b23534221675309c31feeafa75d20c
If a plugin tries to give invalid valueMeta for a Measurement, the
API will reject it. Since the agent batches measurements together,
this will cause rejection of the whole batch so it is better to
just reject these measurements before sending them. It also makes
it easier to determine which plugin is sending the invalid measurements
Change-Id: Id9d14de5e7ad6a11d0c8b284a3cd59bd9ecfafbd