Skip to content

Commit 187dd98

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 859f8c8 commit 187dd98

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)