Additional metric bucket tweaks

This commit is contained in:
Eric Harding committed 2018-07-25 14:28:31 -04:00
1 parent 1b2698d99b
commit ebd6e795ea
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -366,8 +366,8 @@ struct MDRelayServer : bts::co2::MarketDataRelayBase {
bts::co2::MarketDataRelayBase(ctx),
_db(db), _threadpool(threadpool)
#ifndef _WIN32
, _time(std::make_shared<metrics::HistogramMetric<5>>("spark_qserver_response_time_ms", std::array<double,5>({ 1.0, 10.0, 100.0, 500.0, 1000.0 }))),
_size(std::make_shared<metrics::HistogramMetric<5>>("spark_qserver_size_bytes", std::array<double,5>({ 1024 /*kb*/, 10240 /*10k*/, 102400 /*100k*/, 1024*1024 /*1mb*/, 1024*1024*10 /*10mb*/ })))
, _time(std::make_shared<metrics::HistogramMetric<5>>("spark_qserver_response_time_ms", std::array<double,5>({ 5.0, 10.0, 20.0, 50.0, 100.0 }))),
_size(std::make_shared<metrics::HistogramMetric<5>>("spark_qserver_size_bytes", std::array<double,5>({ 10240 /*10k*/, 102400 /*100k*/, 1024*1024 /*1mb*/, 1024*1024*10 /*10mb*/, 1024*1024*100 /*100mb*/ })))
{
stats.publish(_time);
stats.publish(_size);
+1 -1
View File
@@ -63,7 +63,7 @@ namespace http {
_ctx(ctx),
_metrics(metrics),
_mtimer(std::make_shared<metrics::HistogramMetric<4>>("spark_metrics_query_duration_ms",
std::array<double,4>({ 0.1, 0.5, 1.0, 5.0 })))
std::array<double,4>({ 0.5, 1.0, 5.0, 10.0 })))
{
_www = os::sparkdata_path("www");
_conf = os::sparkdata_path("conf");