metrics: fix an issue where search alerts were incorrectly counted as timeouts
Created by: slimsag
Fixes #7214
The added prometheusType
allows us to account for the type of search alert, such as for tracking the amount of search queries that result in structural_search_repo_too_large
and structural_search_needs_more_memory
alerts (cc @rvantonder )