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

feat: support ranges for Value Mappings #421

Merged
merged 11 commits into from
Oct 18, 2024
Merged

Conversation

Fine0830
Copy link
Member

Related apache/skywalking#12696 (comment)

Video

1.mov

Signed-off-by: Qiuxia Fan [email protected]

@Fine0830 Fine0830 added the enhancement New feature or request label Oct 17, 2024
@Fine0830 Fine0830 added this to the 10.2.0 milestone Oct 17, 2024
@Fine0830 Fine0830 self-assigned this Oct 17, 2024
withinRange = k.startsWith("(-∞") || Number(singleVal.value) > ranges[0];
}
if (k.endsWith("]")) {
withinRange = withinRange && (k.endsWith("+∞]") || Number(singleVal.value) <= (ranges[1] || ranges[0]));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, +∞ and -∞ are supported if we need no upper or lower boundary?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a little concern of , it is hard to input from the keyboard. How about infinite+ and infinite-

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this supports writing regular expressions directly, how about that. For example, ^(10|[0-9])$ matches 0-10.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How to write 25-34 in regex? Regex is better in string pattern match I think.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\b(2[5-9]|3[0-4])\b could catch up, regex may not be as intuitive as the current method.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Fine0830 Could you try to change the format to include a regex?

@wu-sheng
Copy link
Member

image

Could you we add tips about how to setup the range? The contributors/users will not be able to watch this video and learn how to use this. We need to way to guide them.

Or

If you want to put this in the documents, you should update this doc. https://skywalking.apache.org/docs/main/next/en/ui/readme/

@wu-sheng
Copy link
Member

fyi @CodePrometheus

@wu-sheng
Copy link
Member

@CodePrometheus I think we need to update your dashboard to adopt this change. Could you do that soon? I could merge this when you are ready to follow.

FYI, the config key is changed, so you need to remove the old one and add the new config.

@CodePrometheus
Copy link
Contributor

@CodePrometheus I think we need to update your dashboard to adopt this change. Could you do that soon? I could merge this when you are ready to follow.

FYI, the config key is changed, so you need to remove the old one and add the new config.

Let me sync ui later, thanks @Fine0830

@wu-sheng wu-sheng merged commit b6522f4 into apache:main Oct 18, 2024
5 checks passed
@Fine0830 Fine0830 deleted the feat/config branch October 18, 2024 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants