Skip to content

search: Add prometheus metric for overall search latency

Administrator requested to merge master-dry-run/cc/alerts-5 into main

Created by: camdencheek

To avoid further increasing the cardinality of the src_graphql_field_seconds metric, this commit creates a new exported prometheus metric src_search_response_latency_seconds which only tracks the response latency for a single search query.

Additionally, it adds support for parsing the search-blitz query name from the User-Agent string as the source so that we can uniquely identify named queries to use as sentinels of search performance.

Example showing it works in grafana: Screen Shot 2021-03-24 at 17 15 20

Merge request reports

Loading