winlin

refine full conf

@@ -43,6 +43,9 @@ max_connections 1000; @@ -43,6 +43,9 @@ max_connections 1000;
43 # default: on 43 # default: on
44 daemon on; 44 daemon on;
45 45
  46 +#############################################################################################
  47 +# heartbeat/stats sections
  48 +#############################################################################################
46 # heartbeat to api server 49 # heartbeat to api server
47 # @remark, the ip report to server, is retrieve from system stat, 50 # @remark, the ip report to server, is retrieve from system stat,
48 # which need the config item stats.network_device_index. 51 # which need the config item stats.network_device_index.
@@ -74,6 +77,19 @@ heartbeat { @@ -74,6 +77,19 @@ heartbeat {
74 summaries off; 77 summaries off;
75 } 78 }
76 79
  80 +# system statistics section.
  81 +# the main cycle will retrieve the system stat,
  82 +# for example, the cpu/mem/network/disk-io data,
  83 +# the http api, for instance, /api/v1/summaries will show these data.
  84 +# @remark the heartbeat depends on the network_device_index,
  85 +# for example, the eth0 maybe the device which index is 0.
  86 +stats {
  87 + # the index of device ip.
  88 + # we may retrieve more than one network device.
  89 + # default: 0
  90 + network_device_index 0;
  91 +}
  92 +
77 ############################################################################################# 93 #############################################################################################
78 # HTTP sections 94 # HTTP sections
79 ############################################################################################# 95 #############################################################################################
@@ -114,19 +130,6 @@ http_stream { @@ -114,19 +130,6 @@ http_stream {
114 dir ./objs/nginx/html; 130 dir ./objs/nginx/html;
115 } 131 }
116 132
117 -# system statistics section.  
118 -# the main cycle will retrieve the system stat,  
119 -# for example, the cpu/mem/network/disk-io data,  
120 -# the http api, for instance, /api/v1/summaries will show these data.  
121 -# @remark the heartbeat depends on the network_device_index,  
122 -# for example, the eth0 maybe the device which index is 0.  
123 -stats {  
124 - # the index of device ip.  
125 - # we may retrieve more than one network device.  
126 - # default: 0  
127 - network_device_index 0;  
128 -}  
129 -  
130 ############################################################################################# 133 #############################################################################################
131 # RTMP/HTTP VHOST sections 134 # RTMP/HTTP VHOST sections
132 ############################################################################################# 135 #############################################################################################