We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 019083d commit 66c9c73Copy full SHA for 66c9c73
exporters/prometheus/src/exporter_utils.cc
@@ -530,8 +530,9 @@ std::string PrometheusExporterUtils::MapToPrometheusName(
530
531
// Special case - gauge
532
if (unit == "1" && prometheus_type == prometheus_client::MetricType::Gauge &&
533
- sanitized_name.find("ratio") == std::string::npos && !without_type_suffix)
+ sanitized_name.find("ratio") == std::string::npos && !without_units)
534
{
535
+ // this is replacing the unit name
536
sanitized_name += "_ratio";
537
}
538
0 commit comments