|
| 1 | +## kmeshctl monitoring |
| 2 | + |
| 3 | +Control Kmesh's monitoring to be turned on as needed |
| 4 | + |
| 5 | +```bash |
| 6 | +kmeshctl monitoring [flags] |
| 7 | +``` |
| 8 | + |
| 9 | +### Examples |
| 10 | + |
| 11 | +```bash |
| 12 | +# Enable/Disable Kmesh's accesslog: |
| 13 | +kmeshctl monitoring <kmesh-daemon-pod> --accesslog enable/disable |
| 14 | + |
| 15 | +# Enable/Disable services' metrics and accesslog generated from bpf: |
| 16 | +kmeshctl monitoring <kmesh-daemon-pod> --all enable/disable |
| 17 | + |
| 18 | +# Enable/Disable workload granularity metrics: |
| 19 | +kmeshctl monitoring <kmesh-daemon-pod> --workloadMetrics enable/disable |
| 20 | + |
| 21 | +# Enable/Disable connection granularity metrics: |
| 22 | +kmeshctl monitoring <kmesh-daemon-pod> --connectionMetrics enable/disable |
| 23 | + |
| 24 | +# If you want to change the monitoring functionality of all kmesh daemons in the cluster |
| 25 | +# Enable/Disable Kmesh's accesslog in each node: |
| 26 | +kmeshctl monitoring --accesslog enable/disable |
| 27 | + |
| 28 | +# Enable/Disable workload granularity metrics in each node: |
| 29 | +kmeshctl monitoring --workloadMetrics enable/disable |
| 30 | + |
| 31 | +# Enable/Disable connection granularity metrics in each node: |
| 32 | +kmeshctl monitoring --connectionMetrics enable/disable |
| 33 | + |
| 34 | +#Enable/Disable services', workloads' and 'connections' metrics and accesslog generated from bpf in each node: |
| 35 | +kmeshctl monitoring --all enable/disable |
| 36 | +``` |
| 37 | + |
| 38 | +### Options |
| 39 | + |
| 40 | +```bash |
| 41 | + --accesslog string Control accesslog enable or disable |
| 42 | + --all string Control accesslog and services' and workloads' metrics enable or disable together |
| 43 | + --connectionMetrics string Control connection granularity metrics enable or disable |
| 44 | + -h, --help help for monitoring |
| 45 | + --workloadMetrics string Control workload granularity metrics enable or disable |
| 46 | +``` |
| 47 | + |
| 48 | +### SEE ALSO |
| 49 | + |
| 50 | +* [kmeshctl](kmeshctl.md) - Kmesh command line tools to operate and debug Kmesh |
0 commit comments