mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine config heartbeat, add new stats. 0.9.175
This commit is contained in:
parent
02f7c85710
commit
e76036f40b
9 changed files with 102 additions and 42 deletions
|
@ -42,7 +42,10 @@ max_connections 1000;
|
|||
# @remark: donot support reload.
|
||||
# default: on
|
||||
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.
|
||||
heartbeat {
|
||||
# whether heartbeat is enalbed.
|
||||
# default: off
|
||||
|
@ -61,10 +64,6 @@ heartbeat {
|
|||
url http://127.0.0.1:8085/api/v1/servers;
|
||||
# the id of devide.
|
||||
device_id "my-srs-device";
|
||||
# the index of device ip.
|
||||
# we may retrieve more than one network device.
|
||||
# default: 0
|
||||
device_index 0;
|
||||
# whether report with summaries
|
||||
# if true, put /api/v1/summaries to the request data:
|
||||
# {
|
||||
|
@ -115,6 +114,19 @@ http_stream {
|
|||
dir ./objs/nginx/html;
|
||||
}
|
||||
|
||||
# system statistics section.
|
||||
# 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,
|
||||
# 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;
|
||||
}
|
||||
|
||||
#############################################################################################
|
||||
# RTMP/HTTP VHOST sections
|
||||
#############################################################################################
|
||||
|
|
|
@ -8,6 +8,10 @@ heartbeat {
|
|||
interval 9.3;
|
||||
url http://127.0.0.1:8085/api/v1/servers;
|
||||
device_id "my-srs-device";
|
||||
summaries on;
|
||||
}
|
||||
stats {
|
||||
network_device_index 0;
|
||||
}
|
||||
vhost __defaultVhost__ {
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue