# Read metrics about cpu usage[[inputs.cpu]]## Whether to report per-cpu stats or notpercpu=true## Whether to report total system cpu stats or nottotalcpu=true## Comment this line if you want the raw CPU time metricsfielddrop= ["time_*"]# Read metrics about disk usage by mount point[[inputs.disk]]## By default, telegraf gather stats for all mountpoints.## Setting mountpoints will restrict the stats to the specified mountpoints.# mount_points = ["/"]## Ignore some mountpoints by filesystem type. For example (dev)tmpfs (usually## present on /run, /var/run, /dev/shm or /dev).ignore_fs= ["tmpfs", "devtmpfs"]# Read metrics about disk IO by device[[inputs.diskio]]## By default, telegraf will gather stats for all devices including## disk partitions.## Setting devices will restrict the stats to the specified devices.# devices = ["sda", "sdb"]## Uncomment the following line if you need disk serial numbers.# skip_serial_number = false# Get kernel statistics from /proc/stat[[inputs.kernel]]# no configuration# Read metrics about memory usage[[inputs.mem]]# no configuration# Get the number of processes and group them by status[[inputs.processes]]# no configuration# Read metrics about swap memory usage[[inputs.swap]]# no configuration# Read metrics about system load & uptime[[inputs.system]]# no configuration# Read metrics about network interface usage[[inputs.net]]# collect data only about specific interfaces# interfaces = ["eth0"][[inputs.netstat]]# no configuration[[inputs.interrupts]]# no configuration
启动服务
# service telegraf start
Grafana
安装
查找 Grafana
pkgsearchgrafana
或者
# cd /usr/ports/www/grafana9/
# make install clean