-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample_settings.yml
118 lines (115 loc) · 2.28 KB
/
sample_settings.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Default settings
---
General:
# It is in minutes for cron job config now
Interval: 10
InfluxDB:
# avoid using 'localhost' when this is deployed to be used by get_metrics.py
# running in docker container
Host: influx_db_host
Port: 8086
Bucket: sensor
API_TOKEN: '{{ influxdb_token }}'
Org: neofob
# A node can have more than one sensors
# Example:
# http://192.168.1.2:8000/NODE_KEY&Stats/json
# {
# "API": {
# "Version": "200"
# },
# "Stats": {
# "Temp": "82.09F",
# "Humi": "38.41%",
# "Press (inHg)": "29.74"
# }
#}
# Measurement: Air
# Tags: location
# Fields: temperature, humidity, pressure
# field to to be used in influxdb ingestion
# we know that we only need to chomp 1 char for now
# (r.json()["Stats"]["Temp"][:-1]
Nodes:
Basement:
Host: 192.168.1.2
Port: 8000
Key: '{{ b_node_key }}'
Endpoint: "&Stats/json"
Metric: Stats
Measurement: Air
Tags:
location: Basement
Fields:
Temp:
field: temperature
chomp: true
Humi:
field: humidity
chomp: true
Press (inHg):
field: pressure
chomp: false
Garden:
Host: 192.168.1.2
Port: 8001
Key: '{{ g_node_key }}'
Endpoint: "&Stats/json"
Metric: Stats
Measurement: Air
Tags:
location: Garden
Fields:
Temp:
field: temperature
chomp: true
Humi:
field: humidity
chomp: true
Soil:
Host: 192.168.1.2
Port: 8004
Key: '{{ s_node_key }}'
Endpoint: "&Stats/json"
Metric: Stats
Measurement: Soil
Tags:
location: Garden
Fields:
Temp1:
Tags:
lot: RaisedBed
field: temperature
chomp: true
Temp2:
Tags:
lot: Compost1
field: temperature
chomp: true
Temp3:
Tags:
lot: Compost2
field: temperature
chomp: true
# Sample of settings for temper-service
Temper:
Host: temper
Port: 2610
Key: ""
Endpoint: "metrics"
Metric: ""
# ax + b
# Convert Celcius to Farenheit
Transform:
a: 1.8
b: 32
Measurement: Air
Tags:
location: Rackspace
Index: 0
Fields:
internal temperature:
Tags:
lot: Rack0
field: temperature
chomp: False