]> git.ipfire.org Git - thirdparty/collectd.git/commit
match_regex: Accept all data types of meta data 3231/head
authorTakuro Ashie <ashie@clear-code.com>
Fri, 26 Jul 2019 02:19:11 +0000 (11:19 +0900)
committerTakuro Ashie <ashie@clear-code.com>
Fri, 26 Jul 2019 03:18:54 +0000 (12:18 +0900)
commit7924ff92e47a247ef705f1824ca9ceafd70dc49e
tree9be705045189b790d3ba703cb2b12ba750b33b31
parentd1a39899dbbdc093ac17a5e5e7ea9ba8d66be28e
match_regex: Accept all data types of meta data

match_regex currently accepts only string type of meta data, but
there is no reason to reject other data types since they can be
easily stringified by meta_data_as_string().
Accepting all data type will provide more benefit, for example
the following config can distinguish that data is local or remote,
the previous match_regex outputs many error logs for this config
though:

  <Match "regex">
    MetaData "network:received" "true"
  </Match>

Signed-off-by: Takuro Ashie <ashie@clear-code.com>
src/match_regex.c