Fixed Prometheus socket getting disconnected after each request.
This commit is contained in:
parent
0d17a511ef
commit
9498f87cc3
1 changed files with 2 additions and 2 deletions
|
@ -171,11 +171,11 @@ int Controller::handleAPIConnection(Socket::Connection & conn){
|
|||
if (conf.getString("prometheus").size()){
|
||||
if (H.url == "/"+Controller::conf.getString("prometheus")){
|
||||
handlePrometheus(H, conn, PROMETHEUS_TEXT);
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
if (H.url == "/"+Controller::conf.getString("prometheus")+".json"){
|
||||
handlePrometheus(H, conn, PROMETHEUS_JSON);
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
JSON::Value Response;
|
||||
|
|
Loading…
Add table
Reference in a new issue