-
Notifications
You must be signed in to change notification settings - Fork 256
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
categraf输出到promethues的数据时间不对 #1026
Comments
不可能 |
@kongfei605 |
prometheus 中是正常的
|
@kongfei605 |
categraf 不支持ForceUseServerTS = true ,其他插件默认就是当前采集时间。 阿里云这个指标是自带时间的,所以不会附加为当前时间。 |
确实是这个问题,后续有改进计划么,我觉得删掉指标中自带的时间更合理 |
本身就是这个用法。 阿里云采集的时间戳,删除了会更合理? 本来是10分钟前的故障,要当成现在的故障吗? |
在我看来这就是一个时区转换问题,阿里云监控指标里面带了时区信息,但是prometheus数据记录是UTC时区,这直接影响可视化数据的准确性 |
要不您再重新了解下时间戳的概念。 |
btw, 时区差异也不能只差个5分钟10分钟 |
Relevant config.toml
Logs from categraf
System info
categraf v0.3.76,centos 7.9
Docker
No response
Steps to reproduce
1.配置input.aliyun插件
2.启动categraf客户端
Expected behavior
数据正确写入victoria和prometheus数据源
Actual behavior
写入victoria的数据时间格式正常,写入promethues的时间错误
Additional info
No response
The text was updated successfully, but these errors were encountered: