load static method
read yaml content and return a CollectorConfig instance.
Implementation
static CollectorConfig load(String rawYaml, String defaultConfigYaml) =>
CollectorConfig.withFallback(
yaml: loadYaml(rawYaml) as YamlMap?,
fallback: loadYaml(defaultConfigYaml) as YamlMap);