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

v1.4.2 docker version history indicator query cannot find indicator records for more than 1 day #1331

Closed
1 task done
rbsrcy opened this issue Nov 11, 2023 · 2 comments · Fixed by #1348
Closed
1 task done
Labels
bug Something isn't working good first issue Good for newcomers
Milestone

Comments

@rbsrcy
Copy link
Contributor

rbsrcy commented Nov 11, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

检查该监控对应TDengine数据库表,发现近7天的数据是存在的,但是页面上查询不出来。
1

2

Expected Behavior

能查询1天以上的数据并显示出来

Steps To Reproduce

No response

Environment

HertzBeat version(s):v1.4.2

Debug logs

日志无报错

Anything else?

No response

@rbsrcy rbsrcy added the bug Something isn't working label Nov 11, 2023
@hertzbeat hertzbeat changed the title v1.4.2 docker版本历史指标查询不出1天以上的指标记录 v1.4.2 docker version history indicator query cannot find indicator records for more than 1 day Nov 11, 2023
@tomsun28 tomsun28 added the good first issue Good for newcomers label Nov 12, 2023
@tomsun28 tomsun28 added this to the v1.4.3 milestone Nov 12, 2023
@tomsun28
Copy link
Contributor

因为tdengine的处理SQL在 1.4.2 版本更新了下,导致之前的数据查询不到

INSERT_TABLE_DATA_SQL = "INSERT INTO %s USING %s TAGS (%s) VALUES %s"

"SELECT ts, instance, `%s` FROM %s WHERE instance = '%s' AND ts >= now - %s order by ts desc"

变更为

INSERT_TABLE_DATA_SQL = "INSERT INTO `%s` USING `%s` TAGS (%s) VALUES %s";

"SELECT ts, instance, `%s` FROM `%s` WHERE instance = '%s' AND ts >= now - %s order by ts desc"

现在%s 修饰了表名,这样有可能之前建的表不识别, 建议手动修改老表

@jiashu1024
Copy link
Contributor

jiashu1024 commented Nov 15, 2023

image

image

我用的也是1.4.2的版本,刚从 iotdb 切换到 tdengine,我是最近一个小时数据都没有。
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants