You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/setup/quick-start.md
+21-2Lines changed: 21 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ gem build skywalking.gemspec
33
33
34
34
If successful, the following will be displayed:
35
35
36
-
```ruby
36
+
```shell
37
37
Successfully built RubyGem
38
38
Name: skywalking
39
39
Version: <version>
@@ -84,27 +84,39 @@ The following is an example of configuration at start:
84
84
Skywalking.start(
85
85
service_name:'sw-srv',
86
86
instance_name:'sw-inst',
87
-
collector_backend_services:'oap:11800'
87
+
collector_backend_services:'oap:11800',
88
+
meter_reporter_active:true,
89
+
log_reporter_active:true,
90
+
meter_report_period:30,
91
+
log_report_period:10
88
92
)
89
93
~~~
90
94
91
95
The following is an example of a configuration file:
96
+
92
97
~~~yaml
93
98
common: &defaults
94
99
service_name: Ruby-Agent-Common
95
100
log_level: debug
101
+
meter_reporter_active: true
102
+
log_reporter_active: true
103
+
meter_report_period: 20
104
+
log_report_period: 5
96
105
97
106
development:
98
107
<<: *defaults
99
108
service_name: Ruby-Agent-Development
109
+
log_reporter_level: 0# DEBUG
100
110
101
111
test:
102
112
<<: *defaults
103
113
service_name: Ruby-Agent-Test
114
+
log_reporter_level: 1# INFO
104
115
105
116
production:
106
117
<<: *defaults
107
118
service_name: Ruby-Agent-Production
119
+
log_reporter_level: 2# WARN
108
120
~~~
109
121
110
122
The following lists all the configuration options:
@@ -127,3 +139,10 @@ The following lists all the configuration options:
127
139
| collector_heartbeat_period | SW_AGENT_COLLECTOR_HEARTBEAT_PERIOD | 30 | he agent will send heartbeat to OAP every `collector_heartbeat_period` seconds. |
128
140
| properties_report_period_factor | SW_AGENT_PROPERTIES_REPORT_PERIOD_FACTOR | 10 | The agent will report service instance properties every `collector_heartbeat_period * properties_report_period_factor` seconds. |
129
141
| max_queue_size | SW_AGENT_MAX_QUEUE_SIZE | 10000 | The maximum queue size for reporting data. |
142
+
| meter_reporter_active | SW_AGENT_METER_REPORTER_ACTIVE | true | Enable/disable meter reporter for runtime metrics collection. |
143
+
| meter_report_period | SW_AGENT_METER_REPORT_PERIOD | 60 | Meter report period in seconds. |
144
+
| max_meter_queue_size | SW_AGENT_MAX_METER_QUEUE_SIZE | 1000 | Maximum meter queue size for buffering metrics data. |
0 commit comments