mirage-monitoring/README.md
2022-01-27 14:54:40 +01:00

22 lines
1.2 KiB
Markdown

# Grafana Unikernel monitoring experiments
Using Influx, Telegraf, etc.
![Monitoring](https://raw.githubusercontent.com/roburio/monitoring-experiments/master/one.png)
# Dynamic adjustments of Log level and Metrics reporting
The create function has a *listener_port* argument. If this is provided, then
on the given port TCP connections to the unikernel are possible. Each connection
can transmit a command (as text) to adjust log level and enable or disable
metrics sources:
The log level (prefix `L`) is specified, the same as the command-line argument `-l`:
- `L*:debug` all log sources are enabled on the *debug* level
- `Lmonitoring-experiments:error` the log source monitoring-experiments is set to the *error* level
- `L*:info,monitoring-experiments:debug` all log sources are enabled on the *info* level, and the log source monitoring-experiments is set to the *debug* level
The metrics (prefix `M`) sources can be enabled and disabled based on source name.
First, if present, the all command is executed, then specific sources:
- `M*:disable,memory:enable,net-solo5:enable` disables all metrics sources, and then enables *memory* and *net-solo5*
- `Mnet-solo5:disable` disables the *net-solo5* metrics source.