-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
206: Limit search results and add metrics r=jonathanj a=mithrandi Closes #10. Co-authored-by: Tristan Seligmann <[email protected]>
- Loading branch information
Showing
10 changed files
with
203 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
from prometheus_client import Counter, Histogram | ||
|
||
|
||
|
||
METRIC_LOOKUP_QUERY_LATENCY = Histogram( | ||
'lookup_query_latency_seconds', | ||
'Lookup query latency in seconds', | ||
['environment', 'indexType']) | ||
|
||
METRIC_LOOKUP_INSERT_LATENCY = Histogram( | ||
'lookup_insert_latency_seconds', | ||
'Lookup insertion latency in seconds', | ||
['environment', 'indexType']) | ||
|
||
METRIC_SEARCH_QUERY_LATENCY = Histogram( | ||
'search_query_latency_seconds', | ||
'Search query latency in seconds', | ||
['searchClass', 'environment', 'indexType']) | ||
|
||
METRIC_SEARCH_INSERT_LATENCY = Histogram( | ||
'search_insert_latency_seconds', | ||
'Search insertion latency in seconds', | ||
['searchClass', 'environment', 'indexType']) | ||
|
||
METRIC_SEARCH_DELETE_LATENCY = Histogram( | ||
'search_delete_latency_seconds', | ||
'Search deletion latency in seconds', | ||
['searchClass', 'environment', 'indexType']) | ||
|
||
METRIC_SEARCH_REJECTED = Counter( | ||
'search_rejected_count', | ||
'Searches rejected due to being too general', | ||
['searchClass', 'environment', 'indexType']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.