File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
simpleclient_graphite_bridge/src
main/java/io/prometheus/client/bridge
test/java/io/prometheus/client/bridge Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public void push(CollectorRegistry registry) throws IOException {
61
61
writer .write (m .replaceAll ("_" ));
62
62
for (int i = 0 ; i < sample .labelNames .size (); ++i ) {
63
63
m .reset (sample .labelValues .get (i ));
64
- writer .write (". " + sample .labelNames .get (i ) + ". " + m .replaceAll ("_" ));
64
+ writer .write ("; " + sample .labelNames .get (i ) + "= " + m .replaceAll ("_" ));
65
65
}
66
66
writer .write (" " + sample .value + " " + now + "\n " );
67
67
}
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public void run() {
50
50
// Check result.
51
51
String [] parts = result .toString ().split (" " );
52
52
assertEquals (3 , parts .length );
53
- assertEquals ("labels.l. fo_o" , parts [0 ]);
53
+ assertEquals ("labels;l= fo_o" , parts [0 ]);
54
54
assertEquals ("1.0" , parts [1 ]);
55
55
Integer .parseInt (parts [2 ]); // This shouldn't throw an exception.
56
56
}
You can’t perform that action at this time.
0 commit comments