mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
rename network_device_index to network
This commit is contained in:
parent
b8ae5c63fc
commit
f4ea48adcb
6 changed files with 19 additions and 19 deletions
|
@ -48,7 +48,7 @@ daemon on;
|
|||
#############################################################################################
|
||||
# heartbeat to api server
|
||||
# @remark, the ip report to server, is retrieve from system stat,
|
||||
# which need the config item stats.network_device_index.
|
||||
# which need the config item stats.network.
|
||||
heartbeat {
|
||||
# whether heartbeat is enalbed.
|
||||
# default: off
|
||||
|
@ -81,13 +81,13 @@ heartbeat {
|
|||
# the main cycle will retrieve the system stat,
|
||||
# for example, the cpu/mem/network/disk-io data,
|
||||
# the http api, for instance, /api/v1/summaries will show these data.
|
||||
# @remark the heartbeat depends on the network_device_index,
|
||||
# @remark the heartbeat depends on the network,
|
||||
# for example, the eth0 maybe the device which index is 0.
|
||||
stats {
|
||||
# the index of device ip.
|
||||
# we may retrieve more than one network device.
|
||||
# default: 0
|
||||
network_device_index 0;
|
||||
network 0;
|
||||
# the device name to stat the disk iops.
|
||||
# ignore the device of /proc/diskstats if not configed.
|
||||
disk_device_name sda sdb xvda xvdb;
|
||||
|
|
|
@ -11,7 +11,7 @@ heartbeat {
|
|||
summaries on;
|
||||
}
|
||||
stats {
|
||||
network_device_index 0;
|
||||
network 0;
|
||||
}
|
||||
vhost __defaultVhost__ {
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue