src/yb/util/metrics.cc
// Replace specific chars with underscore to pass PrometheusNameRegex().
Replace specific chars with underscore to pass PrometheusNameRegex().
Replace specific chars with underscore to pass PrometheusNameRegex () .
void EscapeMetricNameForPrometheus(std::string *id) {
  std::replace(id->begin(), id->end(), ' ', '_');
  std::replace(id->begin(), id->end(), '.', '_');
  std::replace(id->begin(), id->end(), '-', '_');
}
void EscapeMetricNameForPrometheus ( std :: string * id ) { std :: replace ( id -> begin ( ) , id -> end ( ) , ' ' , ' ' ) ; std :: replace ( id -> begin ( ) , id -> end ( ) , ' ' , ' ' ) ; std :: replace ( id -> begin ( ) , id -> end ( ) , ' ' , ' ' ) ; }
Replace specific chars with underscore to pass PrometheusNameRegex().
Replace specific chars with underscore to pass PrometheusNameRegex () .