(prometheus) Saner histogram buckets
This commit is contained in:
parent
72b773f06d
commit
c70f508ae8
@ -50,7 +50,7 @@ public class ApiService extends Service {
|
||||
private static final Histogram wmsa_api_query_time = Histogram.build()
|
||||
.name("wmsa_api_query_time")
|
||||
.labelNames("key")
|
||||
.linearBuckets(0.005, 0.005, 15)
|
||||
.linearBuckets(0.05, 0.05, 15)
|
||||
.help("API-side query time")
|
||||
.register();
|
||||
|
||||
|
@ -27,7 +27,7 @@ public class SearchService extends Service {
|
||||
private static final Logger logger = LoggerFactory.getLogger(SearchService.class);
|
||||
private static final Histogram wmsa_search_service_request_time = Histogram.build()
|
||||
.name("wmsa_search_service_request_time")
|
||||
.linearBuckets(0.005, 0.005, 15)
|
||||
.linearBuckets(0.05, 0.05, 15)
|
||||
.labelNames("matchedPath", "method")
|
||||
.help("Search service request time (seconds)")
|
||||
.register();
|
||||
|
@ -66,7 +66,7 @@ public class IndexQueryService extends IndexApiImplBase {
|
||||
.register();
|
||||
private static final Histogram wmsa_query_time = Histogram.build()
|
||||
.name("wmsa_index_query_time")
|
||||
.linearBuckets(0.005, 0.005, 15)
|
||||
.linearBuckets(0.05, 0.05, 15)
|
||||
.labelNames("node", "api")
|
||||
.help("Index-side query time")
|
||||
.register();
|
||||
|
@ -23,7 +23,7 @@ public class QueryGRPCService extends QueryApiGrpc.QueryApiImplBase {
|
||||
|
||||
private static final Histogram wmsa_qs_query_time_grpc = Histogram.build()
|
||||
.name("wmsa_qs_query_time_grpc")
|
||||
.linearBuckets(0.005, 0.005, 15)
|
||||
.linearBuckets(0.05, 0.05, 15)
|
||||
.help("QS-side query time (GRPC endpoint)")
|
||||
.register();
|
||||
|
||||
|
@ -33,7 +33,7 @@ public class QueryService extends Service {
|
||||
|
||||
private static final Histogram wmsa_qs_query_time_rest = Histogram.build()
|
||||
.name("wmsa_qs_query_time_rest")
|
||||
.linearBuckets(0.005, 0.005, 15)
|
||||
.linearBuckets(0.05, 0.05, 15)
|
||||
.help("QS-side query time (REST endpoint)")
|
||||
.register();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user