add 'osrm' prefix to the metrics
This commit is contained in:
parent
3c9ce217d0
commit
cb8f54c590
@ -11,5 +11,5 @@ This option switched off by default. To enable this feature please set `-P <moni
|
|||||||
-- `code_version` OSRM version. Same with `-v` command line option;
|
-- `code_version` OSRM version. Same with `-v` command line option;
|
||||||
-- `data_version` OSM data version if available. This value can be setted at the `osrm-extract` phase;
|
-- `data_version` OSM data version if available. This value can be setted at the `osrm-extract` phase;
|
||||||
-- `working_threads` actual count of http requests processing threads;
|
-- `working_threads` actual count of http requests processing threads;
|
||||||
- `http_requests_count` http calls count divided by plugins. And `invalid` count for requests were plugin wasn't set;
|
- `osrm_http_requests_count` http calls count divided by plugins. And `invalid` count for requests were plugin wasn't set;
|
||||||
- `workers_busy` http workers count that process request at this moment;
|
- `osrm_workers_busy` http workers count that process request at this moment;
|
||||||
|
|||||||
@ -28,11 +28,11 @@ void MonitoringRequestHandler::HandleRequest(const http::request &, http::reply
|
|||||||
auto counters = service_handler->GetUsage();
|
auto counters = service_handler->GetUsage();
|
||||||
for (auto counter : counters)
|
for (auto counter : counters)
|
||||||
{
|
{
|
||||||
out_stream << "http_requests_count{plugin=\"" << counter.first << "\"} " << counter.second
|
out_stream << "osrm_http_requests_count{plugin=\"" << counter.first << "\"} " << counter.second
|
||||||
<< "\n";
|
<< "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
out_stream << "workers_busy " << service_handler->GetLoad() << "\n";
|
out_stream << "osrm_workers_busy " << service_handler->GetLoad() << "\n";
|
||||||
|
|
||||||
auto result = out_stream.str();
|
auto result = out_stream.str();
|
||||||
current_reply.content.resize(result.size());
|
current_reply.content.resize(result.size());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user