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
The value_list_t data structure is the main data structure because it is used to pass measured values around inside the daemon. It is often accompanied by data-set-t which is used to describe the stored values in more detail.
The following information is included in the data structure:
One or more values of data-sources of undefined type. Only the number of values is included in the structure. What type a specific data source has (for example GAUGE or COUNTER) is described by the data-set-t structure.
This example initializes, fills and dispatches a value_list_t data structure as seen in nearly every collectdplugin. Please note that neither vl.interval nor vl.time are filled in. In this case the value of interval_g and cdtime() ("now") will be filled in by plugin_dispatch_values(). This is the recommended behavior if these values are applicable.