-
Notifications
You must be signed in to change notification settings - Fork 294
Support for dynamic metrics #676
Comments
(In the Definition section)
Should be changed to "may not be known at the time of GetMetricTypes" (a.k.a. at load) (In the Configuration section) There is a relationship to #652 here.
I feel these are best left as separate tasks. (In the filtering section)
How do you propose the plugin author communicate that their plugin accepts a wild card at specific locations in the namespace? Also, do you mean that a '*' should not be part of the general namespace or in other words that part of the namespace that is shared with multiple plugins (prefix)?
I'm not sure how the framework can make this guarantee. Accepting a wildcard is largely up to the plugin writer. (In the Metric listing section) Item 1 sounds good to me. |
Hey @jcooklin thanks for comments Filtering.1&2
Then following should be possible: Metric listing.3
Then, since GetMetricTypes() doesn't have access to task manifest json, it can only return someting like, for example: |
For implementation, my proposition is to extend client interface and add method which can "flush" plugin and return new list of metrics, then when user have a task with wildcard at any level, new instance/container will be monitored from this time. For eg.: /intel/docker/*/memory/free . This method can be triggered at the creation/remove of container (we can have a buffer with container id, counting containers is not enough) same with libvirt. |
Bug #654 is related. |
@sandlbn @andrzej-k: will you comment on #679? |
Definition:
Dynamic metrics is a metric which:
Configuration:
Extensions in per metric (in task manifest), per plugin (in task manifest) and global (config file for snapd) configuration.
Filtering:
Extensions in filtering capabilities.
Metric listing:
Extensions in metrics listing.
/intel/procfs/<process_name>/cpu_utilization
- then allow to filter on process name and/or return metrics which include names of processes at the time of metric gathering: /intel/procfs/process_A/cpu_utilization, /intel/procfs/process_B/cpu_utilizationReturning metrics:
The text was updated successfully, but these errors were encountered: