(prometheus) Saner histogram buckets

This commit is contained in:
Viktor Lofgren 2024-01-02 17:13:14 +01:00
parent 72b773f06d
commit c70f508ae8
5 changed files with 5 additions and 5 deletions

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();