summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 89be8cc)
raw | patch | inline | side by side (parent: 89be8cc)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 5 Sep 2016 19:25:40 +0000 (21:25 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 5 Sep 2016 19:27:07 +0000 (21:27 +0200) |
Fixes #1910
src/collectd.conf.pod | patch | blob | history | |
src/target_set.c | patch | blob | history |
diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod
index e302e816020f9cf330cbfcf7feaeee4bcc4ad844..4c0a84c211d553ac906df8bc9de99095105d5866 100644 (file)
--- a/src/collectd.conf.pod
+++ b/src/collectd.conf.pod
=item B<TypeInstance> I<String>
-=item B<MetaDataSet> I<String> I<String>
+=item B<MetaData> I<String> I<String>
Set the appropriate field to the given string. The strings for plugin instance
and type instance may be empty, the strings for host and plugin may not be
diff --git a/src/target_set.c b/src/target_set.c
index fee5ffdcbaac2e09e719cd9d9460f5f3cc21de7f..4f00cbbdaf1aedbc2bf6eedbdf60a003e826e9b5 100644 (file)
--- a/src/target_set.c
+++ b/src/target_set.c
else if (strcasecmp ("TypeInstance", child->key) == 0)
status = ts_config_add_string (&data->type_instance, child,
/* may be empty = */ 1);
- else if (strcasecmp ("MetaDataSet", child->key) == 0)
+ else if (strcasecmp ("MetaData", child->key) == 0)
status = ts_config_add_meta (&data->meta, child,
/* may be empty = */ 1);
else
&& (data->meta == NULL))
{
ERROR ("Target `set': You need to set at least one of `Host', "
- "`Plugin', `PluginInstance', `TypeInstance', "
- "`MetaDataSet' or `MetaDataEval'.");
+ "`Plugin', `PluginInstance', `TypeInstance', `MetaData'.");
status = -1;
}