Skip to content

Commit f156806

Browse files
committed
Fix prometheus metrics text exporter rendering
Iterate through all text chunks that need to be emitted as part of the metric text label section before rendering the value and timestamp.
1 parent f82ee0c commit f156806

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/textexporter.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ struct PrometheusMetric {
118118
buf += view.size();
119119
space -= view.size();
120120
}
121+
_render<typename Split::Next>(buf, space, val);
122+
return;
121123
}
124+
122125
auto v = std::to_string(val);
123126
auto ts = std::to_string(photon::now / 1000);
124127
if (v.size() < space) {

0 commit comments

Comments
 (0)