average.conf 1.13 KB
Newer Older
1
2
3
4
global {
mqttPrefix    /FF112233445566778899AAB
}

Alessio Netti's avatar
Alessio Netti committed
5
template_average def1 {
6
7
8
9
10
11
12
interval    1000
minValues   3
mqttPart    FF0
duplicate 	false
streaming	true
}

Alessio Netti's avatar
Alessio Netti committed
13
average avg1 {
14
15
16
17
18
default     def1
mqttPart    FF0

	input {

19
		sensor "<bottomup>col_user"
20

21
		sensor "<topdown>MemFree"
22
23
24
25
26

	}

	output {

27
		sensor "<bottomup, filter cpu250>sum" {
Alessio Netti's avatar
Alessio Netti committed
28
    		mqttsuffix  76
29
30
    	}

31
    	sensor "<bottomup, filter cpu250>max" {
Alessio Netti's avatar
Alessio Netti committed
32
33
34
    		mqttsuffix  77
    	}

35
    	sensor "<bottomup, filter cpu250>avg" {
Alessio Netti's avatar
Alessio Netti committed
36
37
38
39
40
41
42
43
44
45
46
47
48
49
    		mqttsuffix  78
    	}

	}

}

average avg2 {
default     def1
interval    1500
mqttPart    FF1

	input {

50
		sensor "<topdown 1>col_user"
Alessio Netti's avatar
Alessio Netti committed
51

52
		sensor "<bottomup 1>MemFree"
Alessio Netti's avatar
Alessio Netti committed
53
54
55
56
57

	}

	output {

58
		sensor "<bottomup 1>sum" {
Alessio Netti's avatar
Alessio Netti committed
59
60
61
    		mqttsuffix  76
    	}

62
    	sensor "<bottomup 1>max" {
Alessio Netti's avatar
Alessio Netti committed
63
64
65
    		mqttsuffix  77
    	}

66
    	sensor "<bottomup 1>avg" {
Alessio Netti's avatar
Alessio Netti committed
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
    		mqttsuffix  78
    	}

	}

}

average avg3 {
default     def1
interval    1500
mqttPart    FF2

	input {

		all-recursive

	}

	output {

87
		sensor "<bottomup 1>sumall" {
Alessio Netti's avatar
Alessio Netti committed
88
89
90
    		mqttsuffix  80
    	}

91
    	sensor "<bottomup 1>maxall" {
Alessio Netti's avatar
Alessio Netti committed
92
93
94
    		mqttsuffix  81
    	}

95
    	sensor "<bottomup 1>avgall" {
Alessio Netti's avatar
Alessio Netti committed
96
    		mqttsuffix  82
97
98
99
100
101
    	}

	}

}