Skip to content

search: add a prometheus metric for structural search queries

Warren Gifford requested to merge rvt/structural-search-prom-metrics into master

Created by: rvantonder

I want to know how many of the search queries bound for searcher are asking for structural search. This PR adds a counter that labels by language. It is not all languages ever, just the extensions supported in this function: https://sourcegraph.com/github.com/sourcegraph/sourcegraph/-/blob/cmd/searcher/search/search_structural.go#L85

Very low-res example:

Screen Shot 2020-01-09 at 5 02 30 PM

Merge request reports

Loading