@@ -30,12 +30,18 @@ class PrometheusExporterUtils
3030 * @param populate_target_info whether to populate target_info
3131 * @param without_otel_scope whether to populate otel_scope_name and otel_scope_version
3232 * attributes
33+ * @param without_units exporter configuration controlling whether to append unit suffix in
34+ * the exported metrics.
35+ * @param without_type_suffix exporter configuration controlling whether to append type suffix in
36+ * the exported metrics.
3337 * @return a collection of translated metrics that is acceptable by Prometheus
3438 */
3539 static std::vector<::prometheus::MetricFamily> TranslateToPrometheus (
3640 const sdk::metrics::ResourceMetrics &data,
3741 bool populate_target_info = true ,
38- bool without_otel_scope = false );
42+ bool without_otel_scope = false ,
43+ bool without_units = false ,
44+ bool without_type_suffix = false );
3945
4046private:
4147 /* *
@@ -61,7 +67,9 @@ class PrometheusExporterUtils
6167
6268 static std::string MapToPrometheusName (const std::string &name,
6369 const std::string &unit,
64- ::prometheus::MetricType prometheus_type);
70+ ::prometheus::MetricType prometheus_type,
71+ bool without_units,
72+ bool without_type_suffix);
6573
6674 /* *
6775 * A utility function that returns the equivalent Prometheus name for the provided OTLP metric
0 commit comments