You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.
Currently, the only determination if a metric namespace is dynamic or static is if Name is set on a NamespaceElement(s).
After creating a metric namespace via core.NewNamespace("intel", "mock", "foo"), there is nothing that prevents setting the Name field on the three NamespaceElements that make up this Namespace. Initially, IsDynamic() on this Namespace would return false. However, if a plugin were to go the extra step to set the Name field on each NamespaceElement, like so
IsDynamic() will now return true on this metric namespace. Any tooling that would consume this information and display dynamic metrics different from static metrics would see an issue. As an example, this is what snapctl would display with the changes in PR #931
The text was updated successfully, but these errors were encountered:
Currently, the only determination if a metric namespace is dynamic or static is if
Name
is set on a NamespaceElement(s).After creating a metric namespace via
core.NewNamespace("intel", "mock", "foo")
, there is nothing that prevents setting the Name field on the three NamespaceElements that make up this Namespace. Initially,IsDynamic()
on this Namespace would return false. However, if a plugin were to go the extra step to set theName
field on each NamespaceElement, like soIsDynamic()
will now return true on this metric namespace. Any tooling that would consume this information and display dynamic metrics different from static metrics would see an issue. As an example, this is what snapctl would display with the changes in PR #931The text was updated successfully, but these errors were encountered: