-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalues.yaml
166 lines (141 loc) · 4.77 KB
/
values.yaml
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# Values for smarter-edge when used for hybrid demo.
# No data is sent to the cloud
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
global:
domain: example.com
smarter-gstreamer:
configuration:
video_id: 3
smarter-fluent-bit:
fluentd:
host: fluentbit
port: 30224
nodeSelector:
smarter-fluent-bit: enabled
tolerations:
- key: "smarter.type"
operator: "Equal"
value: "edge"
effect: "NoSchedule"
hostname: smarter-fluent-bit
config:
service: |
[SERVICE]
Daemon Off
Flush {{ .Values.flush }}
Log_Level {{ .Values.logLevel }}
Parsers_File parsers.conf
Parsers_File custom_parsers.conf
HTTP_Server On
HTTP_Listen 0.0.0.0
HTTP_Port {{ .Values.metricsPort }}
Health_Check On
Streams_File mqtt-split.conf
inputs: |
[INPUT]
name cpu
Tag cpu
Interval_Sec 30
[INPUT]
Name tcp
Tag netdata
Listen 0.0.0.0
Port 5170
Chunk_Size 64
Buffer_Size 128
Format json
[INPUT]
Name mqtt
alias mqttdata
Tag mqttdata
Listen 0.0.0.0
Port 1883
filters: |
[FILTER]
Name record_modifier
Match ${HOSTNAME}
Record hostname ${HOSTNAME}
[FILTER]
Name record_modifier
Match car_count
Record hostname ${HOSTNAME}
[FILTER]
Name record_modifier
Match person_count
Record hostname ${HOSTNAME}
[FILTER]
Name record_modifier
Match bus_count
Record hostname ${HOSTNAME}
[FILTER]
Name record_modifier
Match bicycle_count
Record hostname ${HOSTNAME}
[FILTER]
Name record_modifier
Match motorcycle_count
Record hostname ${HOSTNAME}
[FILTER]
Name record_modifier
Match sound_class
Record hostname ${HOSTNAME}
[FILTER]
Name record_modifier
Match pms7003_count
Record hostname ${HOSTNAME}
[FILTER]
Name record_modifier
Match weatherbit_count
Record hostname ${HOSTNAME}
extraFiles:
mqtt-split.conf: |
[STREAM_TASK]
Name car_count
Exec CREATE STREAM car_count AS SELECT * FROM STREAM:mqttdata WHERE topic = '/demo/car_count';
[STREAM_TASK]
Name person_count
Exec CREATE STREAM person_count AS SELECT * FROM STREAM:mqttdata WHERE topic = '/demo/person_count';
[STREAM_TASK]
Name bus_count
Exec CREATE STREAM bus_count AS SELECT * FROM STREAM:mqttdata WHERE topic = '/demo/bus_count';
[STREAM_TASK]
Name bicycle_count
Exec CREATE STREAM bicycle_count AS SELECT * FROM STREAM:mqttdata WHERE topic = '/demo/bicycle_count';
[STREAM_TASK]
Name motorcycle_count
Exec CREATE STREAM motorcycle_count AS SELECT * FROM STREAM:mqttdata WHERE topic = '/demo/motorcycle_count';
[STREAM_TASK]
Name sound_class
Exec CREATE STREAM sound_class AS SELECT * FROM STREAM:mqttdata WHERE topic = '/demo/sound_class';
[STREAM_TASK]
Name pms7003_count
Exec CREATE STREAM pms7003_count AS SELECT * FROM STREAM:mqttdata WHERE topic = '/demo/pms7003';
[STREAM_TASK]
Name weatherbit_count
Exec CREATE STREAM weatherbit_count AS SELECT * FROM STREAM:mqttdata WHERE topic = '/demo/weatherbit';
outputs: |
[OUTPUT]
Name stdout
Match *
customParsers: |
[PARSER]
Name json
Format json
Time_Key time
Time_Format %d/%b/%Y:%H:%M:%S %z
[PARSER]
Name docker
Format json
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%L
Time_Keep On
# Command | Decoder | Field | Optional Action
# =============|==================|=================
Decode_Field_As escaped log
[PARSER]
Name syslog
Format regex
Regex ^\<(?<pri>[0-9]+)\>(?<time>[^ ]* {1,2}[^ ]* [^ ]*) (?<host>[^ ]*) (?<ident>[a-zA-Z0-9_\/\.\-]*)(?:\[(?<pid>[0-9]+)\])?(?:[^\:]*\:)? *(?<message>.*)$
Time_Key time
Time_Format %b %d %H:%M:%S