Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upExpression browser metric autocomplete misses certain search terms #2380
Comments
juliusv
added
help wanted
kind/bug
kind/regression
labels
Jan 31, 2017
This comment has been minimized.
This comment has been minimized.
|
Yes, it's probably because of this change. The fuzzy matching breaks words by space. To perform the lookup, I remove the underscore from the metric name before looking up, and add it back after. I wonder what will be the solution here. What would you expect the behavior to be? It might be treated as a space, or it might be treated as an underscore. If treated as a space, then typing an underscore is meaningless, but the user was actually trying to do something - reduce the suggested options? |
This comment has been minimized.
This comment has been minimized.
|
@lightpriest Hmm, not sure yet! Do you know why it does work if the search term is a metric prefix (like |
This comment has been minimized.
This comment has been minimized.
|
@juliusv #2396 includes a fix for this issue. It also includes a change to the library itself to provide better results. I tried replacing the fuzzy search lib with atom's one (https://github.com/atom/fuzzaldrin), but it's targeted at path subjects, giving higher scores to the last path element, treats slash specially, etc. |
juliusv
closed this
in
#2396
Feb 28, 2017
beorn7
added a commit
that referenced
this issue
Mar 2, 2017
brian-brazil
added
kind/bug
and removed
kind/bug
labels
Jul 14, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
juliusv commentedJan 31, 2017
Metric name fragments that are not a metric prefix (but contained somewhere in a metric name) and contain an underscore are not shown by the fuzzy-matching autocompleter in the expression browser.
For example, enter
diskon http://demo.robustperception.io:9090/ to see that there are metricsnode_disk_bytes_read, etc. Then enterdisk_to see that all those suggestions disappear.This is likely related to 50f8e35. /cc @lightpriest