summaryrefslogtreecommitdiffstats
path: root/tedge/example-config.toml
blob: 4f369dee0ec78caebb85e2ef985b7068816e811f (plain)
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
communication_buffer_size = 10

plugin_shutdown_timeout_ms = 10000

[plugins]


[plugins.logging]
kind = "log"

[plugins.logging.configuration]
name = "logging"
level = "trace"
acknowledge = false
setup_logger = false



[plugins.filter-high-cpu]
kind = "measurement_filter"

[plugins.filter-high-cpu.configuration]
target = "mqttbridge"
filtered_target = "logging"
extractor = "global_processor_info.cpu_usage"
more_than = 12.0



[plugins.syscpu]
kind = "sysinfo"

[plugins.syscpu.configuration.cpu]
send_to = ["filter-high-cpu"]
interval_ms = 1000


[plugins.syscpu.configuration.cpu.report_global_processor_info]
enable = true
frequency = true
cpu_usage = true
name = true
vendor_id = true
brand = true

[plugins.syscpu.configuration.cpu.report_processor_info]
enable = false
frequency = false
cpu_usage = false
name = false
vendor_id = false
brand = false

[plugins.syscpu.configuration.cpu.report_physical_core_count]
enable = true


[plugins.watchcargotoml]
kind = "inotify"

[plugins.watchcargotoml.configuration]
target = "logging"
fail_on_err = false

[plugins.watchcargotoml.configuration.pathes]
"Cargo.toml" = [ "ALL_EVENTS" ]


[plugins.httpstopper]
kind = "httpstop"

[plugins.httpstopper.configuration]
bind = "127.0.0.1:9090"