forked from mwang98/DBMS-final-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Mike
21 lines (21 loc) · 1.1 KB
/
Mike
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2019/12/22
1. 前端資料生成,如何透過 .tick, UDF.py 將資料送進 kapacitor, influxdb
a. influxdb 和 kapacitor 利用 chronograf 做連結設定
b. 設定 kapacitor.conf, telegraf.conf 後要重新啟動
In telegraf.conf
# Configuration for sending metrics to InfluxDB
[[outputs.influxdb]]
urls = ["http://127.0.0.1:8086"]
database = "telegraf"
retention_policy = ""
timeout = "5s"
username = "telegraf"
password = "metricsmetricsmetricsmetrics"
c. .tick 中用 chaining node : influxDBOut 將資料寫出 InfluxDB
2. tickScript 的檔案邏輯
Intro: https://docs.influxdata.com/kapacitor/v1.5/tick/introduction/
a. 本質為 definition of data pipeline
b. 主要由 chaining method (node), property method 組成
chaining method: 接收到 stream / batch data 後需要執行的動作(same as function)。不同形態的 nodes 之間有特定連接方式
property method: 修改 nodes 內容並且回傳相同 node 的 reference
ref: https://docs.influxdata.com/kapacitor/v1.5/nodes/