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

内置变量与自定义变量数据对比 #2065

Closed
HH17740639615 opened this issue Jul 30, 2024 · 1 comment
Closed

内置变量与自定义变量数据对比 #2065

HH17740639615 opened this issue Jul 30, 2024 · 1 comment

Comments

@HH17740639615
Copy link

Question and Steps to reproduce

我使用exec插件获取自定义变量数据: server__bindwidth{server_code='tps41'}
与内置变量 rate(net_bytes_sent{ident='tps41'}[1m]) 两个变量皆有数据,且单位也一致,见图 。不知道为啥计算后无结果
微信图片_20240730100347

Relevant logs and configurations

日志正常, 就是查询无数据

Version

夜莺版本: v7.0.0-17dbb3ec778f84aa8687ac4fda91b7370ba32c7c
操作系统: centos7
内核: Linux 3.10.0-1160.90.1.el7.x86_64
CPU: Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz

@UlricQin
Copy link
Member

你需要再学习一下 promql,在 promql 里标签不同的指标不能直接计算,更详细可以再问问 GPT

@710leo 710leo closed this as completed Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants