折腾完了Grafana,又想折腾TICK全家桶,毕竟Telegraf,InfluxDB,Chronograf跟Kapacitor人家是一家的,而且Kapacitor支持脚本处理数据,可玩性 实用性还是可以的,所以又在树莓派上安装了Chronograf跟Kapacitor。结果在用Chronograf时,没法编辑Template Variable,总是报错Meta Query failed to execute,涉及 Field Keys,Tag Keys 和 Tag Values。
折腾了几天还跑到GayHub上开了Issues,看了Chronograf和InfluxDB的日志,有一下报错:
Chronograf:
time="2019-04-12T09:08:01+08:00" level=error msg="Error message received status code 400 from server: err: error parsing query: found ON, expected ; at line 1, char 15" component=server http_status =400 time="2019-04-12T09:08:01+08:00" level=info msg="Response: Bad Request" component=server method=POST remote_addr="127.0.0.1:52415" response_time=10.0057ms status=400 time="2019-04-12T09:08:01+08:00" level=error msg="Error message received status code 400 from server: err: error parsing query: found ON, expected WITH at line 1, char 17" component=server http_status =400
InfluxDB:
[query] 2019/04/12 03:09:00 SHOW MEASUREMENTS [httpd] 10.60.60.20 - - [12/Apr/2019:03:09:00 +0100] "POST /query?db=ServerMonitor&epoch=ms&q=SHOW+MEASUREMENTS&rp= HTTP/1.1" 200 301 "-" "Go-http-client/1.1" efff030c-5cc7-11e9-8001-000000000000 11120 [httpd] 10.60.60.20 - - [12/Apr/2019:03:09:00 +0100] "POST /query?db=ServerMonitor&epoch=ms&q=SHOW+TAG+KEYS+ON+%22ServerMonitor%22+FROM+%22Clock%22&rp= HTTP/1.1" 400 93 "-" "Go-http-client/1.1" f0097643-5cc7-11e9-8002-000000000000 5763 [httpd] 10.60.60.20 - - [12/Apr/2019:03:09:04 +0100] "POST /query?db=ServerMonitor&epoch=ms&q=SHOW+TAG+KEYS+ON+%22ServerMonitor%22+FROM+%22Temperature%22&rp= HTTP/1.1" 400 93 "-" "Go-http-client/1.1" f2470b44-5cc7-11e9-8003-000000000000 4832
看到Q=SHOW TAG KEYS ON "ServerMonitor" FROM "Temperature"就赶紧到InfluxDB Studio里面查一下,啊哈,报错!具体报错由于当时没有截屏,无法贴出,大致意思就是在ON那里有语法错误,Chronograf有这种Bug?走!GayHub开Issues,嘻嘻嘻……(打脸预定)
于是,就有了这个 #5144 发完Issues,忽然想起来我好像只是用的树莓派,没在Windows上跑一下试试啊,结果还真是,Windows下面跑的InflluxDB就没有这一问题,难道是我树莓派的版本太老了?不对啊,我可是用的apt安装的啊(欢迎加入吐槽apt更新慢),官方下了ARM版的Binaries,解压后直接覆盖原先apt安装的程序,service influxdb start,Chronograf再测试,没问题!看了一下树莓派的源,InfluxDB还在1.0.2(在GayHub一口咬定都是1.7.5的我,哎,打脸...)石锤了,RaspberryPi的包更新不及时!酿此乌龙。ARM真的就是弃婴么
更新
树莓派官方源中有influxdb的包,但是很老的包,我已经将最新的InfluxDB以及Telegraf、Chronograf、Kapacitor打包并放在了GayHub上,可以前去直接下载安装。
https://github.com/JinkunTian/TICK_Raspberry_Pi
-
关于《Linux下的N种作死方法》的想法
:下一篇 »