-
Notifications
You must be signed in to change notification settings - Fork 294
Snaptel does not support task creation with other separator than "/" #1477
Comments
I would guess the issue happens because you are using pipe as a separator. In YAML, pipe has a special behavior. If you change to one of the following namespace it should work: # add quotes to the namespace
"|intel|linux|perfevents|cgroup|intel_cqm/llc_occupacy/|docker:62167f2c9f0b62068c3e0d09ee3275190ae7e41230e9861e324621442bbda222": {}
# use a different separator
\intel\namespace\/path/test\plop: {} |
I talked with @skonefal and he is ok with defining his task manifest as a JSON file. Also, changing a separator to sth different than pipe is the another possibility which resolves that. Currently, for a metric which contains a slash,
This suggests that such metric might be copied to a task manifest (json or yaml) as a metric to collect. Based on that does not work with YAML, changing these pipes in the output of |
Maybe we should move the pipe out of the priority list (or move it on the right). And we can document separator good practices somewhere. Optionally, we could investigate and make a list of characters we can't use as separator because of YAML or JSON standard. Another one that comes in the top of my head, we can't use |
@kindermoumoute, I added the label |
@IzabellaRaulin I really like that use of the label, but not how we've used it to date. The first You'll need to open another issue for docs and label that one |
…ters as a namespace separators in the task manifest
…ters as a namespace separators in the task manifest
…ters as a namespace separators in the task manifest
…ters as a namespace separators in the task manifest
…ters as a namespace separators in the task manifest
…ters as a namespace separators in the task manifest
…ters as a namespace separators in the task manifest
…ters as a namespace separators in the task manifest
…ters as a namespace separators in the task manifest
…ters as a namespace separators in the task manifest
…ters as a namespace separators in the task manifest
…ters as a namespace separators in the task manifest
…ters as a namespace separators in the task manifest
…ters as a namespace separators in the task manifest
…ters as a namespace separators in the task manifest
…ters as a namespace separators in the task manifest
…ters as a namespace separators in the task manifest
…ters as a namespace separators in the task manifest
…ters as a namespace separators in the task manifest
…ters as a namespace separators in the task manifest
Fixes #1477, Added information about not recommended characters as a namespace separators in the task manifest
I have a metric with slashes and I cannot gather it via task manifest creation (my extension of perf plugin: http://bit.ly/2jwF3OZ).
My task manifest:
Output:
Expected output:
My metric looks like:
Snap Versions:
The problem also manifests when I change well known metric like
/intel/psutil/vm/used
to|intel|psutil|vm|used
.Also, this feature lack tests.
The text was updated successfully, but these errors were encountered: