Open matwey opened 8 months ago
@octo so what is plugin_get_ds()
alternative for 6.0?
@matwey There is no equivalent. Set the type
field in metric_family_t
to either METRIC_TYPE_COUNTER
or METRIC_TYPE_GAUGE
. The concepts of "data source name", minimum value, and maximum value no longer exist at all.
So I think I need also rethink the way the plugin configured.
I'm not familiar with the epics plugin, but at a glance it looks like the "label" concept adapts much nicer to collectd 6.
Strawman proposal for a configuration syntax, based on the v5 epics manpage entry:
<Plugin epics>
<Family "cavity.temperature"> # metric family name
Type "counter" # or "gauge"
Unit "Cel" # for degrees celsius
<Metric "Cavity1:Temp"> # where to read the value from
Label "name" "Cavity1:Name" # populate additional metric labels
</Metric>
</Family>
</Plugin>
That's roughly what I'd focus on for a MVP version. We can add things like static labels or resource attributes later, if they are useful.
Should we specify Type
if we can infer it from the epics internal type?
Hello,
This is placeholder issue for porting epics plugin (see #4022) to collectd-6.