sofastack / sofa-lookout

SOFALookout is a light-weight monitoring and analysis tool
Apache License 2.0
372 stars 119 forks source link

Tag selector [=] Filter #83

Open it-linnan opened 4 years ago

it-linnan commented 4 years ago

Describe the bug

A clear and concise description of what the bug is. Tag选择器的使用“=”筛选,不能实现全字匹配。

Expected behavior

Tag选择器的使用“=”筛选,能实现全字匹配。 比如jvm.threads.daemon{app="foo"},这样查询只能够查询到foo应用的时序数据

Actual behavior

比如jvm.threads.daemon{app="foo"},这样查询能够查询到foo和gateway等多个应用的时序数据

image

Steps to reproduce

  1. 多个应用接入SOFALookout
  2. 启动SOFALookout服务端
  3. 访问服务端web界面,查询jvm.threads.daemon{app="foo"}

Minimal yet complete reproducer code (or GitHub URL to code)

Environment

sofastack-bot[bot] commented 4 years ago

Hi @it-linnan, we detect non-English characters in the issue. This comment is an auto translation by @sofastack-robot to help other users to understand this issue.

We encourage you to describe your issue in English which is more friendly to other users.

Describe the bug A clear and concise description of what the bug is. Tag selectors use "=" to filter, and can't match whole words. ### Expected behavior Tag selector uses "=" to filter, which can realize whole word matching. For example, jvm.threads.daemon {app = "foo"}, this query can only query the time series data of foo application ### Actual behavior, such as jvm.threads.daemon {app = "foo"}, this query can query foo And time series data for multiple applications, such as gateway and gateway! Multiple applications access SOFALookout 2. Start the SOFALookout server 3. Visit the server web interface and query jvm.threads.daemon {app = "foo"} ### Minimal yet complete reproducer code (or GitHub URL to code) ## # Environment-SOFALookout version: 1.6.0-JVM version (eg java -version): 1.8-OS version (eguname -a): windows10-Maven version: 3.5-IDE version: Intelli IDEA 2019.2