Skip to content

feat: Compatible with XPU monitoring

6511277
Select commit
Loading
Failed to load commit list.
Merged

feat: Compatible with XPU monitoring #11099

feat: Compatible with XPU monitoring
6511277
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Nov 27, 2025 in 1m 40s

Annotations

Check failure on line 143 in agent/app/service/monitor.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'else' clause; the code should continue after the error check.

See more on https://sonarcloud.io/project/issues?id=1Panel-dev_1Panel&issues=AZrD4Fx7ujXon5Il7xLa&open=AZrD4Fx7ujXon5Il7xLa&pullRequest=11099

Check failure on line 96 in agent/utils/ai_tools/xpu/xpu.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "xpu-smi discovery -j" 3 times.

See more on https://sonarcloud.io/project/issues?id=1Panel-dev_1Panel&issues=AZrD4F3QujXon5Il7xLd&open=AZrD4F3QujXon5Il7xLd&pullRequest=11099

Check warning on line 130 in agent/app/api/v2/monitor.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the 'Get' prefix from this function name.

See more on https://sonarcloud.io/project/issues?id=1Panel-dev_1Panel&issues=AZrD4F3EujXon5Il7xLb&open=AZrD4F3EujXon5Il7xLb&pullRequest=11099

Check failure on line 103 in agent/utils/ai_tools/xpu/xpu.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "deviceInfo json unmarshal failed, err: %w" 3 times.

See more on https://sonarcloud.io/project/issues?id=1Panel-dev_1Panel&issues=AZrD4F3QujXon5Il7xLc&open=AZrD4F3QujXon5Il7xLc&pullRequest=11099

Check failure on line 140 in agent/app/service/monitor.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "%d - %s" 3 times.

See more on https://sonarcloud.io/project/issues?id=1Panel-dev_1Panel&issues=AZrD4Fx7ujXon5Il7xLZ&open=AZrD4Fx7ujXon5Il7xLZ&pullRequest=11099