diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-04-22 20:30:45 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-07-02 09:49:31 +0200 |
commit | 8e31688fd7095eab57b692c4e0106df184f0f996 (patch) | |
tree | 4d8fee1286496e5d1739ad332a93fb0c2d71c68f | |
parent | cea84871edc3af1b2b43d8b25a8b98ea2ca594af (diff) |
Add example configuration for testing prometheus pluginfeature/add_tedge_api/plugin-prometheus
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r-- | tedge/example-prometheus.toml | 136 |
1 files changed, 136 insertions, 0 deletions
diff --git a/tedge/example-prometheus.toml b/tedge/example-prometheus.toml new file mode 100644 index 00000000..c6508def --- /dev/null +++ b/tedge/example-prometheus.toml @@ -0,0 +1,136 @@ +communication_buffer_size = 10 + +plugin_shutdown_timeout_ms = 10000 + +[plugins] + + +[plugins.sys] +kind = "sysinfo" + + +[plugins.sys.configuration.cpu] +send_to = ["prom"] +interval_ms = 1000 + +[plugins.sys.configuration.cpu.report_global_processor_info] +enable = true +frequency = true +cpu_usage = true +name = true +vendor_id = true +brand = true + +[plugins.sys.configuration.cpu.report_processor_info] +enable = true +frequency = true +cpu_usage = true +name = true +vendor_id = true +brand = true + +[plugins.sys.configuration.cpu.report_physical_core_count] +enable = true + + +[plugins.sys.configuration.memory] +send_to = ["prom"] +interval_ms = 1000 +enable = true +total_memory = true +free_memory = true +available_memory = true +used_memory = true +free_swap = true +used_swap = true + + +[plugins.sys.configuration.network] +send_to = ["prom"] +interval_ms = 1000 +enable = true + +[plugins.sys.configuration.network.all_networks] +enable = true +received = true +total_received = true +transmitted = true +total_transmitted = true +packets_received = true +total_packets_received = true +packets_transmitted = true +total_packets_transmitted = true +errors_on_received = true +total_errors_on_received = true + +[plugins.sys.configuration.network.by_name.wlp1s0] +received = true +total_received = true +transmitted = true +total_transmitted = true +packets_received = true +total_packets_received = true +packets_transmitted = true +total_packets_transmitted = true +errors_on_received = true +total_errors_on_received = true + + +[plugins.sys.configuration.disk_usage] +send_to = ["prom"] +interval_ms = 1000 +enable = true + + +[plugins.sys.configuration.load] +send_to = ["prom"] +interval_ms = 1000 +enable = true + + +[plugins.sys.configuration.process] +send_to = ["prom"] +interval_ms = 1000 +enable = true + +[plugins.sys.configuration.process.all_processes] +enable = true +cmd = true +cwd = true +cpu_usage = true +disk_usage = true +exe = true +memory = true +name = true +parent = true +pid = true +root = true +run_time = true +start_time = true +vmemory = true + +[plugins.sys.configuration.process.by_name.tedge] +cmd = true +cwd = true +cpu_usage = true +disk_usage = true +exe = true +memory = true +name = true +parent = true +pid = true +root = true +run_time = true +start_time = true +vmemory = true + + + +[plugins.prom] +kind = "prometheus" + +[plugins.prom.configuration] +bind = "127.0.0.1:9091" +max_size = 100 + + |