This allows the mapping logic and configuration format to be re-used by the graphite exporter. Enables prometheus/graphite_exporter#37, cf. https://github.com/prometheus/graphite_exporter/pull/52#issuecomment-412324849 Signed-off-by: Matthias Rampke <mr@soundcloud.com>
* Added `regex` match_type as valid config callout in both individual mappers and mapper defaults * Added test coverage for changes * Updated documentation to reflect usage of `match_type` parameter and provide example of a raw regex match rule