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 {
6161 writer .write (m .replaceAll ("_" ));
6262 for (int i = 0 ; i < sample .labelNames .size (); ++i ) {
6363 m .reset (sample .labelValues .get (i ));
64- writer .write (". " + sample .labelNames .get (i ) + ". " + m .replaceAll ("_" ));
64+ writer .write ("; " + sample .labelNames .get (i ) + "= " + m .replaceAll ("_" ));
6565 }
6666 writer .write (" " + sample .value + " " + now + "\n " );
6767 }
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public void run() {
5050 // Check result.
5151 String [] parts = result .toString ().split (" " );
5252 assertEquals (3 , parts .length );
53- assertEquals ("labels.l. fo_o" , parts [0 ]);
53+ assertEquals ("labels;l= fo_o" , parts [0 ]);
5454 assertEquals ("1.0" , parts [1 ]);
5555 Integer .parseInt (parts [2 ]); // This shouldn't throw an exception.
5656 }
You can’t perform that action at this time.
0 commit comments