in cloudwatch_metrics_collector/src/metrics_collector_parameter_helper.cpp [72:87]
void ReadMetricNamespace(
const std::shared_ptr<Aws::Client::ParameterReaderInterface>& parameter_reader,
std::string & metric_namespace) {
// Load the metric namespace
Aws::AwsError read_namespace_status =
parameter_reader->ReadParam(ParameterPath(kNodeParamMetricNamespaceKey), metric_namespace);
if (Aws::AWS_ERR_OK == read_namespace_status) {
AWS_LOGSTREAM_INFO(__func__, "Namespace: " << metric_namespace);
} else {
AWS_LOGSTREAM_INFO(
__func__,
"No namespace configuration found. Falling back to default namespace: " << kNodeDefaultMetricNamespace);
metric_namespace = kNodeDefaultMetricNamespace;
}
}