Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prometheus: Search pattern for metrics in query box, doesnt search whole word rather it search for each letter of the word #3187

Open
kavyakul opened this Issue Sep 18, 2017 · 2 comments

Comments

Projects
None yet
4 participants
@kavyakul
Copy link

kavyakul commented Sep 18, 2017

What did you do?
Search metrics in Prometheus

What did you expect to see?
name of the metric matching the pattern

What did you see instead? Under which circumstances?
the word was not matched as a whole, rather each letter was searched.

Environment

  • System information:
    Docker container running on Linux 3.10.0-514.26.2.el7.x86_64 x86_64

  • Prometheus version:
    Prometheus docker image version: v1.7.1

image

Regards,
Kavya K

@grobie

This comment has been minimized.

Copy link
Member

grobie commented Sep 18, 2017

I'd not restrict the input to whole word matches, but assuming org_graylog2_memory is an existing metrics name/prefix, it should surely show up at the top.

Maybe @stuartnelson3 can port his weight algorithm from alertmanager over?

@stuartnelson3

This comment has been minimized.

Copy link
Member

stuartnelson3 commented Sep 18, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.