Re: Embdedded IoTDB Grafana Endpoint

2020-11-09 Thread Boris Zhu
Comparing to restful API, using javascript API reduces JSON parse and can
use all session functions. If we do this, I think we should publish a
javascript/typescript connector package in npm (like a maven in java). By
the way, I develop a simple grafanan iotdb plugin (
https://github.com/Genius-pig/iotdb) by using rest API (
https://github.com/apache/iotdb/pull/1716). restApi is more common, it
transfers data through HTTP, so you can use it in any client in any
language.

On Tue, Nov 10, 2020 at 2:35 PM Jialin Qiao 
wrote:

> Hi,
>
> Thank you for sharing the use case! Currently we do not have a JavaScript
> API.
>
> However, since we use thrift [1] as the RPC framework, you could generate
> the JavaScript API easily.
>
> Please refer to the usage of Python API [2]
>
> [1] https://github.com/apache/iotdb/tree/master/thrift
> [2] https://github.com/apache/iotdb/tree/master/client-py
>
> Thanks,
> --
> Jialin Qiao
> School of Software, Tsinghua University
>
> 乔嘉林
> 清华大学 软件学院
>
>  -原始邮件-
>  发件人: "Shi Jinghai" 
>  发送时间: 2020-11-09 13:29:42 (星期一)
>  收件人: "dev@iotdb.apache.org" 
>  抄送:
>  主题: Re: Embdedded IoTDB Grafana Endpoint
> 
>  As I’m working on an edge system design, I’d suggest running IoTDB in
> Node-RED environment and use Grafana in Node-RED.
> 
>  BTW, is there any Javascript connector ready for IoTDB?
> 
>  Shi Jinghai
> 
> 
>  发件人: Jialin Qiao<mailto:qj...@mails.tsinghua.edu.cn>
>  发送时间: 2020年11月7日 12:22
>  收件人: dev@iotdb.apache.org<mailto:dev@iotdb.apache.org>
>  主题: Re: Embdedded IoTDB Grafana Endpoint
> 
>  Hi,
> 
>   I dislike the idea of having spring in the server as well.
> 
>  +1, could we combine the small handler with our RestAPI?
> 
>  Thanks,
>  --
>  Jialin Qiao
>  School of Software, Tsinghua University
> 
>  乔嘉林
>  清华大学 软件学院
> 
>   -原始邮件-
>   发件人: "Julian Feinauer" 
>   发送时间: 2020-11-06 22:38:50 (星期五)
>   收件人: "dev@iotdb.apache.org" 
>   抄送:
>   主题: Re: Embdedded IoTDB Grafana Endpoint
>  
>   Hey,
>  
>   yes, to do it clean we could do it directly without Spring. Then
> ist just a very small handler.
>   Similar to what we already use optionally in the prometheus
> module.
>  
>   I dislike the idea of having spring in the server as well.
>  
>   Julian
>  
>   Am 06.11.20, 12:03 schrieb "Xiangdong Huang" <
> saint...@gmail.com>:
>  
>   Hi,
>  
>what do you think of an option to run the SimpleJson
> Grafana Connector
>   directly in IoTDBs Server Context (could be disbaled by
> default).
>   it is ok.
>  
>   But I think we need to prune some dependencies of Spring...
> It it too large
>   now.. (I remember it is ~ 20MB to add such a module)
>  
>   Best,
>   ---
>   Xiangdong Huang
>   School of Software, Tsinghua University
>  
>黄向东
>   清华大学 软件学院
>  
>  
>   Julian Feinauer 
> 于2020年11月6日周五 下午6:13写道:
>  
>Hi folks,
>   
>as we just discussed the prometheus integration, what
> do you think of an
>option to run the SimpleJson Grafana Connector directly
> in IoTDBs Server
>Context (could be disbaled by default).
>This would make it way easier for users to just „look“
> aat their IoTDB
>Data.
>   
>WDYT?
>   
>Julian
>   
>  
>   dev@iotdb.apache.org>
> 
> mailto:dev@iotdb.apache.org>mailto:qj...@mails.tsinghua.edu.cn> dev@iotdb.apache.org>


Re: Embdedded IoTDB Grafana Endpoint

2020-11-09 Thread Jialin Qiao
Hi,

Thank you for sharing the use case! Currently we do not have a JavaScript API. 

However, since we use thrift [1] as the RPC framework, you could generate the 
JavaScript API easily.

Please refer to the usage of Python API [2]

[1] https://github.com/apache/iotdb/tree/master/thrift
[2] https://github.com/apache/iotdb/tree/master/client-py

Thanks,
--
Jialin Qiao
School of Software, Tsinghua University

乔嘉林
清华大学 软件学院

 -原始邮件-
 发件人: "Shi Jinghai" 
 发送时间: 2020-11-09 13:29:42 (星期一)
 收件人: "dev@iotdb.apache.org" 
 抄送: 
 主题: Re: Embdedded IoTDB Grafana Endpoint
 
 As I’m working on an edge system design, I’d suggest running IoTDB in 
Node-RED environment and use Grafana in Node-RED.
 
 BTW, is there any Javascript connector ready for IoTDB?
 
 Shi Jinghai
 
 
 发件人: Jialin Qiao<mailto:qj...@mails.tsinghua.edu.cn>
 发送时间: 2020年11月7日 12:22
 收件人: dev@iotdb.apache.org<mailto:dev@iotdb.apache.org>
 主题: Re: Embdedded IoTDB Grafana Endpoint
 
 Hi,
 
  I dislike the idea of having spring in the server as well.
 
 +1, could we combine the small handler with our RestAPI?
 
 Thanks,
 --
 Jialin Qiao
 School of Software, Tsinghua University
 
 乔嘉林
 清华大学 软件学院
 
  -原始邮件-
  发件人: "Julian Feinauer" 
  发送时间: 2020-11-06 22:38:50 (星期五)
  收件人: "dev@iotdb.apache.org" 
  抄送:
  主题: Re: Embdedded IoTDB Grafana Endpoint
 
  Hey,
 
  yes, to do it clean we could do it directly without Spring. Then ist 
just a very small handler.
  Similar to what we already use optionally in the prometheus module.
 
  I dislike the idea of having spring in the server as well.
 
  Julian
 
  Am 06.11.20, 12:03 schrieb "Xiangdong Huang" :
 
  Hi,
 
   what do you think of an option to run the SimpleJson Grafana 
Connector
  directly in IoTDBs Server Context (could be disbaled by default).
  it is ok.
 
  But I think we need to prune some dependencies of Spring... It it 
too large
  now.. (I remember it is ~ 20MB to add such a module)
 
  Best,
  ---
  Xiangdong Huang
  School of Software, Tsinghua University
 
   黄向东
  清华大学 软件学院
 
 
  Julian Feinauer  于2020年11月6日周五 
下午6:13写道:
 
   Hi folks,
  
   as we just discussed the prometheus integration, what do you 
think of an
   option to run the SimpleJson Grafana Connector directly in 
IoTDBs Server
   Context (could be disbaled by default).
   This would make it way easier for users to just „look“ aat 
their IoTDB
   Data.
  
   WDYT?
  
   Julian
  
 
 

 
mailto:dev@iotdb.apache.org>mailto:qj...@mails.tsinghua.edu.cn>

Re: Embdedded IoTDB Grafana Endpoint

2020-11-08 Thread Shi Jinghai
As I’m working on an edge system design, I’d suggest running IoTDB in Node-RED 
environment and use Grafana in Node-RED.

BTW, is there any Javascript connector ready for IoTDB?

Shi Jinghai


发件人: Jialin Qiao<mailto:qj...@mails.tsinghua.edu.cn>
发送时间: 2020年11月7日 12:22
收件人: dev@iotdb.apache.org<mailto:dev@iotdb.apache.org>
主题: Re: Embdedded IoTDB Grafana Endpoint

Hi,

 I dislike the idea of having spring in the server as well.

+1, could we combine the small handler with our RestAPI?

Thanks,
--
Jialin Qiao
School of Software, Tsinghua University

乔嘉林
清华大学 软件学院

 -原始邮件-
 发件人: "Julian Feinauer" 
 发送时间: 2020-11-06 22:38:50 (星期五)
 收件人: "dev@iotdb.apache.org" 
 抄送:
 主题: Re: Embdedded IoTDB Grafana Endpoint

 Hey,

 yes, to do it clean we could do it directly without Spring. Then ist just 
a very small handler.
 Similar to what we already use optionally in the prometheus module.

 I dislike the idea of having spring in the server as well.

 Julian

 Am 06.11.20, 12:03 schrieb "Xiangdong Huang" :

 Hi,

  what do you think of an option to run the SimpleJson Grafana 
Connector
 directly in IoTDBs Server Context (could be disbaled by default).
 it is ok.

 But I think we need to prune some dependencies of Spring... It it too 
large
 now.. (I remember it is ~ 20MB to add such a module)

 Best,
 ---
 Xiangdong Huang
 School of Software, Tsinghua University

  黄向东
 清华大学 软件学院


 Julian Feinauer  于2020年11月6日周五 下午6:13写道:

  Hi folks,
 
  as we just discussed the prometheus integration, what do you 
think of an
  option to run the SimpleJson Grafana Connector directly in IoTDBs 
Server
  Context (could be disbaled by default).
  This would make it way easier for users to just „look“ aat their 
IoTDB
  Data.
 
  WDYT?
 
  Julian
 





Re: Embdedded IoTDB Grafana Endpoint

2020-11-06 Thread Jialin Qiao
Hi,

 I dislike the idea of having spring in the server as well.

+1, could we combine the small handler with our RestAPI?

Thanks,
--
Jialin Qiao
School of Software, Tsinghua University

乔嘉林
清华大学 软件学院

 -原始邮件-
 发件人: "Julian Feinauer" 
 发送时间: 2020-11-06 22:38:50 (星期五)
 收件人: "dev@iotdb.apache.org" 
 抄送: 
 主题: Re: Embdedded IoTDB Grafana Endpoint
 
 Hey,
 
 yes, to do it clean we could do it directly without Spring. Then ist just 
a very small handler.
 Similar to what we already use optionally in the prometheus module.
 
 I dislike the idea of having spring in the server as well.
 
 Julian
 
 Am 06.11.20, 12:03 schrieb "Xiangdong Huang" :
 
 Hi,
 
  what do you think of an option to run the SimpleJson Grafana 
Connector
 directly in IoTDBs Server Context (could be disbaled by default).
 it is ok.
 
 But I think we need to prune some dependencies of Spring... It it too 
large
 now.. (I remember it is ~ 20MB to add such a module)
 
 Best,
 ---
 Xiangdong Huang
 School of Software, Tsinghua University
 
  黄向东
 清华大学 软件学院
 
 
 Julian Feinauer  于2020年11月6日周五 下午6:13写道:
 
  Hi folks,
 
  as we just discussed the prometheus integration, what do you 
think of an
  option to run the SimpleJson Grafana Connector directly in IoTDBs 
Server
  Context (could be disbaled by default).
  This would make it way easier for users to just „look“ aat their 
IoTDB
  Data.
 
  WDYT?
 
  Julian
 
 


Re: Embdedded IoTDB Grafana Endpoint

2020-11-06 Thread Julian Feinauer
Hey,

yes, to do it clean we could do it directly without Spring. Then ist just a 
very small handler.
Similar to what we already use optionally in the prometheus module.

I dislike the idea of having spring in the server as well.

Julian

Am 06.11.20, 12:03 schrieb "Xiangdong Huang" :

Hi,

> what do you think of an option to run the SimpleJson Grafana Connector
directly in IoTDBs Server Context (could be disbaled by default).
it is ok.

But I think we need to prune some dependencies of Spring... It it too large
now.. (I remember it is ~ 20MB to add such a module)

Best,
---
Xiangdong Huang
School of Software, Tsinghua University

 黄向东
清华大学 软件学院


Julian Feinauer  于2020年11月6日周五 下午6:13写道:

> Hi folks,
>
> as we just discussed the prometheus integration, what do you think of an
> option to run the SimpleJson Grafana Connector directly in IoTDBs Server
> Context (could be disbaled by default).
> This would make it way easier for users to just „look“ aat their IoTDB
> Data.
>
> WDYT?
>
> Julian
>



Re: Embdedded IoTDB Grafana Endpoint

2020-11-06 Thread Xiangdong Huang
Hi,

> what do you think of an option to run the SimpleJson Grafana Connector
directly in IoTDBs Server Context (could be disbaled by default).
it is ok.

But I think we need to prune some dependencies of Spring... It it too large
now.. (I remember it is ~ 20MB to add such a module)

Best,
---
Xiangdong Huang
School of Software, Tsinghua University

 黄向东
清华大学 软件学院


Julian Feinauer  于2020年11月6日周五 下午6:13写道:

> Hi folks,
>
> as we just discussed the prometheus integration, what do you think of an
> option to run the SimpleJson Grafana Connector directly in IoTDBs Server
> Context (could be disbaled by default).
> This would make it way easier for users to just „look“ aat their IoTDB
> Data.
>
> WDYT?
>
> Julian
>


Embdedded IoTDB Grafana Endpoint

2020-11-06 Thread Julian Feinauer
Hi folks,

as we just discussed the prometheus integration, what do you think of an option 
to run the SimpleJson Grafana Connector directly in IoTDBs Server Context 
(could be disbaled by default).
This would make it way easier for users to just „look“ aat their IoTDB Data.

WDYT?

Julian