10 Commits

Author SHA1 Message Date
Chuck Short
b8bb2ff4c3 Add python36 support
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>
2018-10-25 09:09:53 -04:00
Jui Chandwaskar
c983708637 Add Apache License
Added Apache 2.0 License for missed files

Change-Id: I72217d3cf0089434a9bbe1e5dfd57224a803704e
Signed-off-by: Jui Chandwaskar <jchandwaskar@op5.com>
2018-04-14 11:50:07 +00:00
mhoppal
9105ce9a29 Update k8s utils and prometheus plugin
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
2017-12-11 10:45:11 -07:00
Kaiyan Sheng
aaa4440fd3 Use monasca-common to validate metrics
Change-Id: I2f52cef518c492cf73ff8310d343363f2863b390
2017-12-01 08:51:11 -07:00
Craig Bryant
5e0319002b Validate valueMeta for measurement
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
2016-03-10 09:53:22 -07:00
Ryan Brandt
e7eabee61d Allow apostrophes in dimension names and values
Change-Id: Iec6a2b4190bdcc24978e9f5921a68cd00fd7834e
2015-09-04 13:54:34 -06:00
Michael James Hoppal
22c704560c Accept Unicode in the Aggregator
Our aggregator is rejecting unicode values for dimension key,value
and metric names.

Change-Id: Ic23a29702475f2b2c7ca0788bab678ebe190822c
2015-08-24 11:08:13 -06:00
Michael James Hoppal
d910c9995c Add aggregator checks for the collecter to match the api
Change-Id: I089dbd5045dba1a20ad51d4e5a648d876d351d70
2015-08-21 14:40:33 -06:00
Joe Keen
cf0914168f Updating unit tests
Change-Id: I2e54e928852de3add10f7c7fbc5b5c3a69a4108b
2015-08-20 16:35:55 -06:00
Joe Keen
ffd53d8536 Updating unit tests
Change-Id: I56a884962902a0633cd6dded0c1d877a116715b9
2015-08-20 15:04:00 -06:00