Display Customization
Configuration File Overview
Glances uses a configuration file located at ~/.config/glances/glances.conf
for customization. This file allows users to modify display settings, enable/disable plugins, and configure monitoring preferences.
Creating Configuration File
## Generate default configuration
glances --config-path
mkdir -p ~/.config/glances
glances --export-config ~/.config/glances/glances.conf
Display Customization Options
Color Schemes
flowchart LR
A[Default] --> B[Minimal]
A --> C[Colorized]
A --> D[Monochrome]
Configuration Parameters
Parameter |
Description |
Example |
refresh_time |
Update interval |
refresh_time = 2 |
theme |
Display theme |
theme = dark |
disable_plugins |
Hide specific monitors |
disable_plugins = docker, raid |
Customizing Specific Sections
Process List Customization
[processlist]
## Customize process monitoring
refresh = 2
sort_key = cpu_percent
hide_kernel_threads = true
Network Monitoring Configuration
[network]
## Network interface settings
hide_inactive = true
interface_rate_warning = 70
Advanced Display Options
Limiting Displayed Processes
## Show top 10 CPU-consuming processes
glances -n 10
Web Interface Customization
## Start web interface with custom port
glances -w --port 8080
graph TD
A[System Resources] --> B[Monitoring Overhead]
B --> C[Reduce Refresh Rate]
B --> D[Disable Unnecessary Plugins]
B --> E[Use Minimal Theme]
LabEx Compatibility
Glances is fully compatible with LabEx Linux environments, offering seamless system monitoring across different configurations.
Best Practices
- Regularly update configuration
- Match customization to system resources
- Use minimal settings for performance-critical systems