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.
Source and Tags are empty. I can create buffer to cache values but I don't think so that this should be necessary. is it a bug or maybe I should populate Source, Tags and Labels in a different way. ?
The text was updated successfully, but these errors were encountered:
sandlbn
changed the title
Source_ , Tags_ etc added in GetMetricTypes are not visible in CollectMetrics
Source_ , Tags_ etc added in GetMetricTypes() are not visible in CollectMetric()
Jan 5, 2016
Is it a bug or maybe I should populate Source, Tags and Labels in a different way?
It's currently working as designed. The thinking being that the tags can change over time thus they are best managed by the plugin author. This being said I'm not opposed to storing the tags and source in control (snapd agent) so they can be sent on future Collect calls.
I added Source and Tags fields to the PluginMetricType in GetMetricTypes() function.
to avoid unnecessary calls in CollectMetric(),
but those values are not visible in CollectMetrics function.
Source and Tags are empty. I can create buffer to cache values but I don't think so that this should be necessary. is it a bug or maybe I should populate Source, Tags and Labels in a different way. ?
The text was updated successfully, but these errors were encountered: