Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
fix stats output
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieurobin committed Jan 20, 2021
1 parent f005b71 commit 521e827
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Kitten mq

### v0.10.2
*2021-01-20*
- Remove chars from statistics (`GET /statistics`) in order to be compliant with promotheus.

### v0.10.1
*2021-01-18*
- Brokers share the same message ids.
Expand Down
2 changes: 1 addition & 1 deletion lib/broker/management/serverHTTP.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function prepareExportedData (config, queues) {
* Channel : <channel> nbMessagesMain : <Int> nbMessagesSecondary : <Int> nbMessagesDropped : <Int>
*/
function createNetdataOutput (queue) {
let res = 'HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\n\r\n';
let res = '';
let statistics = stats.getAll();

for (let i = 0; i < statistics.length; i++) {
Expand Down

0 comments on commit 521e827

Please sign in to comment.