Skip to content

Target: set

Plugin name target_set
Status supported
Since 4.6
Copyright 2008 Florian octo Forster
License GPLv2
Configuration collectd.conf(5)

Description

The Set target sets or re-sets parts of an identifier.

Synopsis

 <Target "set">
   PluginInstance "coretemp"
   TypeInstance "core3"
 </Target>

To "drop" the plugin or type-instance you can set the field to an empty string. Please note that the Host and Plugin fields cannot be empty.

 <Target "set">
   Plugin "foobar"
   PluginInstance ""
 </Target>

Dependencies

  • none

Configuration

Configuration options · from collectd.conf(5)

See this section in the full configuration reference

Sets part of the identifier of a value to a given string.

Available options:

Host String
Plugin String
PluginInstance String
TypeInstance String
MetaData String String

Set the appropriate field to the given string. The strings for plugin instance, type instance, and meta data may be empty, the strings for host and plugin may not be empty. It's currently not possible to set the type of a value this way.

The following placeholders will be replaced by an appropriate value:

%{host}
%{plugin}
%{plugin_instance}
%{type}
%{type_instance}
These placeholders are replaced by the identifier field of the same name.
%{meta:name}
These placeholders are replaced by the meta data value with the given name.

Please note that these placeholders are case sensitive!

DeleteMetaData String
Delete the named meta data field.

Example:

<Target "set">
  PluginInstance "coretemp"
  TypeInstance "core3"
</Target>