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

TDengine Data source is not working, reason: undefined #177

Open
PPQiao opened this issue Feb 10, 2023 · 8 comments
Open

TDengine Data source is not working, reason: undefined #177

PPQiao opened this issue Feb 10, 2023 · 8 comments

Comments

@PPQiao
Copy link

PPQiao commented Feb 10, 2023

when add tdengine datasource and save after installing tdengine plugin for grafana, it shows "TDengine Data source is not working, reason: undefined"
Grafana version: 9.3.6
tdengine plugin version: 3.2.8

@PPQiao
Copy link
Author

PPQiao commented Feb 10, 2023

image

@PPQiao
Copy link
Author

PPQiao commented Feb 10, 2023

tdengine version: 2.2.2.0

@PPQiao
Copy link
Author

PPQiao commented Feb 10, 2023

image

@PPQiao
Copy link
Author

PPQiao commented Feb 15, 2023

好像是提示说少了http:// 我加上了,现在报400:
image
image

@sunpe
Copy link
Contributor

sunpe commented Mar 9, 2023

在终端执行 curl -L -H "Authorization: Basic cm9vdDp0YW9zZGF0YQ==" -d "show databases" 10.168.205.81:6041/rest/sql 试一下,看看 taosadapter 是否正常工作

@PPQiao
Copy link
Author

PPQiao commented Apr 25, 2023

在终端执行 curl -L -H "Authorization: Basic cm9vdDp0YW9zZGF0YQ==" -d "show databases" 10.168.205.81:6041/rest/sql 试一下,看看 taosadapter 是否正常工作

[pmish@localhost connector]$ curl -L -H "Authorization: Basic cm9vdDp0YW9zZGF0YQ==" -d "show databases" 10.168.205.81:6041/rest/sql
{"status":"succ","head":["name","created_time","ntables","vgroups","replica","quorum","days","keep","cache(MB)","blocks","minrows","maxrows","wallevel","fsync","comp","cachelast","precision","update","status"],"column_meta":[["name",8,32],["created_time",9,8],["ntables",4,4],["vgroups",4,4],["replica",3,2],["quorum",3,2],["days",3,2],["keep",8,24],["cache(MB)",4,4],["blocks",4,4],["minrows",4,4],["maxrows",4,4],["wallevel",2,1],["fsync",4,4],["comp",2,1],["cachelast",2,1],["precision",8,3],["update",2,1],["status",8,10]],"data":[["log","2023-01-10 15:16:10.841",4,1,1,1,10,"30",1,3,100,4096,1,3000,2,0,"us",0,"ready"],["power","2023-03-23 17:13:56.792",1,1,1,1,10,"365",16,6,100,4096,1,3000,2,0,"ms",0,"ready"],["lbfs","2023-01-10 15:16:43.558",2101,3,1,1,10,"365",16,6,100,4096,1,3000,2,0,"ms",0,"ready"]],"rows":3}

这个应该是说明restful开启着的吧, 另外我是V2.2.2.0版本的tdengine, 还没有taosadapter.

这是grafana在add DataSource时的日志
image

@dddicaprio
Copy link

您这边方便远程吗?可以的话请添加vx:tdengine1

@sangshuduo
Copy link
Contributor

在终端执行 curl -L -H "Authorization: Basic cm9vdDp0YW9zZGF0YQ==" -d "show databases" 10.168.205.81:6041/rest/sql 试一下,看看 taosadapter 是否正常工作

[pmish@localhost connector]$ curl -L -H "Authorization: Basic cm9vdDp0YW9zZGF0YQ==" -d "show databases" 10.168.205.81:6041/rest/sql
{"status":"succ","head":["name","created_time","ntables","vgroups","replica","quorum","days","keep","cache(MB)","blocks","minrows","maxrows","wallevel","fsync","comp","cachelast","precision","update","status"],"column_meta":[["name",8,32],["created_time",9,8],["ntables",4,4],["vgroups",4,4],["replica",3,2],["quorum",3,2],["days",3,2],["keep",8,24],["cache(MB)",4,4],["blocks",4,4],["minrows",4,4],["maxrows",4,4],["wallevel",2,1],["fsync",4,4],["comp",2,1],["cachelast",2,1],["precision",8,3],["update",2,1],["status",8,10]],"data":[["log","2023-01-10 15:16:10.841",4,1,1,1,10,"30",1,3,100,4096,1,3000,2,0,"us",0,"ready"],["power","2023-03-23 17:13:56.792",1,1,1,1,10,"365",16,6,100,4096,1,3000,2,0,"ms",0,"ready"],["lbfs","2023-01-10 15:16:43.558",2101,3,1,1,10,"365",16,6,100,4096,1,3000,2,0,"ms",0,"ready"]],"rows":3}

这个应该是说明restful开启着的吧, 另外我是V2.2.2.0版本的tdengine, 还没有taosadapter.

这是grafana在add DataSource时的日志 

image

建议升级 TDengine 到 3.0.4.0

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

4 participants