if (!prometheusTypeName.empty()) {
static const std::map<std::string, PrometheusMetricType> namesToTypes = {
{"counter", PrometheusMetricType::counter},
- {"gauge", PrometheusMetricType::gauge},
+ {"gauge", PrometheusMetricType::gauge},
};
auto realtype = namesToTypes.find(prometheusTypeName);
if (realtype != namesToTypes.end()) {
// name is XXX_count, strip the _count part
helpname = helpname.substr(0, helpname.length() - 6);
}
- } else {
+ }
+ else {
if (tup.second.d_prometheusType) {
prometheusTypeName = MetricDefinitionStorage::getPrometheusStringMetricType(
*tup.second.d_prometheusType);