apache / apache/hertzbeat

[BUG] <title>图标获取不应该使用Instance,应该使用id,否则可能出现多个任务的图标数据重复展示

Open
#3,990 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
7.4k
Forks
1.3k
Avg merge
1d 20h
Merged PRs (30d)
32

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Current Behavior

Image
http 配置host port 发现 图标侧是通过Instance进行取数的,按道理应该根据 id,因为http的ip+port可能是传参的,不一定会变。

Image

Image

Image

### Expected Behavior

_No response_

### Steps To Reproduce

_No response_

### Environment

```markdown
HertzBeat version(s):1.8.0
```

### Debug logs

_No response_

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing the HTTP monitor icon lookup that currently uses Instance, using the screenshots and HertzBeat 1.8.0 context to locate the relevant code. Verify how monitor IDs are available, then update the lookup to use the ID so tasks with changing IP and port values do not display duplicate icon data.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.