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
| service_traffic | layer | service, limit | =, (only service label support !=, =~, !~) |
279
+
| instance_traffic | layer, service | service_instance, limit | =, (only service_instance label support !=, =~, !~) |
280
+
| endpoint_traffic | layer, service | endpoint, keyword, limit | =, (only endpoint label support !=, =~, !~) |
281
+
282
+
-**=**: Label value equals the provided string.
283
+
-**!=**: Label value does not equal the provided string.
284
+
-**=~**: Label value regex-match the provided string.
285
+
-**!~**: Label value does not regex-match the provided string
286
+
287
+
**If the `limit` is not set by parameter or label, the default value is 100. If the `limit ' is also set in the query parameter, it returns the minimum of the two.**
| service_traffic | layer | service, limit | =, (only service label support !=, =~, !~) |
435
+
| instance_traffic | layer, service | service_instance, limit | =, (only service_instance label support !=, =~, !~) |
436
+
| endpoint_traffic | layer, service | endpoint, keyword, limit | =, (only endpoint label support !=, =~, !~) |
437
+
438
+
-**=**: Label value equal to the provided string.
439
+
-**!=**: Label value not equal to the provided string.
440
+
-**=~**: Label value regex-match the provided string.
441
+
-**!~**: Label value do not regex-match the provided string
442
+
443
+
**If the `limit` is not set by parameter or label, the default value is 100. And If the `limit` also set in the query parameter, will return the min number of the two.**
444
+
445
+
For example:
446
+
- If you want to query the label values of the `service` label in the `service_traffic` metric:
Copy file name to clipboardExpand all lines: oap-server/server-query-plugin/promql-plugin/src/main/antlr4/org/apache/skywalking/promql/rt/grammar/PromQLLexer.g4
Copy file name to clipboardExpand all lines: oap-server/server-query-plugin/promql-plugin/src/main/antlr4/org/apache/skywalking/promql/rt/grammar/PromQLParser.g4
Copy file name to clipboardExpand all lines: oap-server/server-query-plugin/promql-plugin/src/main/java/org/apache/skywalking/oap/query/promql/entity/response/LabelsQueryRsp.java
0 commit comments