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: README.md
+36-11Lines changed: 36 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -160,12 +160,15 @@ Ascii Graph, like coloring in terminal, so please use `json` or `yaml` instead.
160
160
161
161
<details>
162
162
163
-
<summary>metrics linear [--start=start-time] [--end=end-time] --name=metrics-name --service=service-name</summary>
163
+
<summary>metrics linear [--start=start-time] [--end=end-time] --name=metrics-name --service=service-name [--instance=instance-name] [--endpoint=endpoint-name] [--isNormal=true/false]</summary>
164
164
165
165
| option | description | default |
166
166
| :--- | :--- | :--- |
167
167
|`--name`| Metrics name, defined in [OAL](https://github.com/apache/skywalking/blob/master/oap-server/server-bootstrap/src/main/resources/oal/core.oal). |
168
168
|`--service`| The name of the service. | "" |
169
+
|`--instance`| The name of the service instance. | "" |
170
+
|`--endpoint`| The name of the endpoint. | "" |
171
+
|`--isNormal`| Set the service to normal or unnormal. |`true`|
169
172
|`--start`| See [Common options](#common-options)| See [Common options](#common-options)|
170
173
|`--end`| See [Common options](#common-options)| See [Common options](#common-options)|
171
174
@@ -175,13 +178,16 @@ Ascii Graph, like coloring in terminal, so please use `json` or `yaml` instead.
|`--name`| Metrics name that ends with `_percentile`, defined in [OAL](https://github.com/apache/skywalking/blob/master/oap-server/server-bootstrap/src/main/resources/oal/core.oal), such as `all_percentile`, etc. |
183
186
|`--service`| The name of the service, when scope is `All`, no name is required. | "" |
184
-
|`--num`| Number of the linear metrics to fetch |`5`|
187
+
|`--labels`| The labels you need to query |`0,1,2,3,4`|
188
+
|`--instance`| The name of the service instance. | "" |
189
+
|`--endpoint`| The name of the endpoint. | "" |
190
+
|`--isNormal`| Set the service to normal or unnormal. |`true`|
185
191
|`--start`| See [Common options](#common-options)| See [Common options](#common-options)|
186
192
|`--end`| See [Common options](#common-options)| See [Common options](#common-options)|
187
193
@@ -191,12 +197,15 @@ Ascii Graph, like coloring in terminal, so please use `json` or `yaml` instead.
191
197
192
198
<details>
193
199
194
-
<summary>metrics single [--start=start-time] [--end=end-time] --name=metrics-name --service=service-name</summary>
200
+
<summary>metrics single [--start=start-time] [--end=end-time] --name=metrics-name --service=service-name [--instance=instance-name] [--endpoint=endpoint-name] [--isNormal=true/false]</summary>
195
201
196
202
| option | description | default |
197
203
| :--- | :--- | :--- |
198
204
|`--name`| Metrics name, defined in [OAL](https://github.com/apache/skywalking/blob/master/oap-server/server-bootstrap/src/main/resources/oal/core.oal), such as `service_sla`, etc. |
199
205
|`--service`| The name of the service. | "" |
206
+
|`--instance`| The name of the service instance. | "" |
207
+
|`--endpoint`| The name of the endpoint. | "" |
208
+
|`--isNormal`| Set the service to normal or unnormal. |`true`|
200
209
|`--start`| See [Common options](#common-options)| See [Common options](#common-options)|
201
210
|`--end`| See [Common options](#common-options)| See [Common options](#common-options)|
202
211
@@ -206,14 +215,15 @@ Ascii Graph, like coloring in terminal, so please use `json` or `yaml` instead.
206
215
207
216
<details>
208
217
209
-
<summary>metrics top 5 [--start=start-time] [--end=end-time] --name=metrics-name [--service=parent-service] [--order=DES]</summary>
218
+
<summary>metrics top 5 [--start=start-time] [--end=end-time] --name=metrics-name [--service=parent-service] [--order=DES] [--isNormal=true/false]</summary>
210
219
211
220
| option | description | default |
212
221
| :--- | :--- | :--- |
213
222
| arguments | The first argument is the number of top entities |`5`|
214
223
|`--name`| Metrics name, defined in [OAL](https://github.com/apache/skywalking/blob/master/oap-server/server-bootstrap/src/main/resources/oal/core.oal), such as `service_sla`, etc. |
215
224
|`--service`| The name of the parent service, could be null if query the global top N. | "" |
216
225
|`--order`| The order of metrics, `DES` or `ASC`. |`DES`|
226
+
|`--isNormal`| Set the service to normal or unnormal. |`true`|
217
227
|`--start`| See [Common options](#common-options)| See [Common options](#common-options)|
218
228
|`--end`| See [Common options](#common-options)| See [Common options](#common-options)|
219
229
@@ -389,7 +399,7 @@ otherwise,
389
399
<summary>Query a linear metrics graph for an instance</summary>
390
400
391
401
```shell
392
-
$ ./bin/swctl --display=graph metrics linear --name=service_instance_resp_time --service "load balancer1.system"
402
+
$ ./bin/swctl --display=graph metrics linear --name=service_instance_resp_time --service "projectC.business-zone" --instance "5ca1e1be91064db6880abac4648667ff@192.168.252.13"
0 commit comments