This repository has been archived by the owner on Nov 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 294
Metric too ambiguous #1228
Labels
Comments
jcooklin
added a commit
to jcooklin/snap
that referenced
this issue
Sep 23, 2016
* Updates validateMetric on subscriptionGroups to use GetMetrics instead of GetMetric since some namespace requests can expand to include multiple metrics.
jcooklin
added a commit
to jcooklin/snap
that referenced
this issue
Sep 23, 2016
* Updates validateMetric on subscriptionGroups to use GetMetrics instead of GetMetric since some namespace requests can expand to include multiple metrics.
jcooklin
added a commit
to jcooklin/snap
that referenced
this issue
Sep 23, 2016
* Updates validateMetric on subscriptionGroups to use GetMetrics instead of GetMetric since some namespace requests can expand to include multiple metrics.
jcooklin
added a commit
to jcooklin/snap
that referenced
this issue
Oct 5, 2016
* Updates validateMetric on subscriptionGroups to use GetMetrics instead of GetMetric since some namespace requests can expand to include multiple metrics.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Plugin exposes metrics like below:
where
/intel/psutil/cpu/*/<metric_name>
are dynamic metrics per cpu ids/intel/psutil/cpu/cpu-total/<metric_name>
are static metrics for aggregated value over all cpus1st Example task manifest:
2nd Example task manifest:
Issue:
For both task manifest, when starting task error is reported:
for example 1:
$ snapctl task create -t example_1.yaml Using task manifest to create task Error creating task:Incoming namespace `/intel/psutil/cpu/*/user` is too ambiguous (version: 7)
for example 2:
Problems seems to be in
mtnode.GetMetric()
which is called bysubscriptionGroups.ValidateDeps() -> subscriptionGroups.validateMetric() -> metricCatalog.GetMetric()
.Function
mtnode.GetMetric()
returns error when more then one metric is retrieved from metric tree, which was not the case before. I tested above examples with6dee88
commit and both tasks work without any problem.I would assume this is a bug, otherwise it's quite limiting plugins ability to expose metrics.
Important: to test above behavior please refer to
snap-plugin-collector-psutil
from https://github.com/marcin-krolik/snap-plugin-collector-psutil/tree/feat/dynamic-metrics@intelsdi-x/snap-maintainers
The text was updated successfully, but these errors were encountered: