wu-sheng commented on code in PR #12730:
URL: https://github.com/apache/skywalking/pull/12730#discussion_r1822084600
##########
docs/en/api/metrics-query-expression.md:
##########
@@ -237,7 +237,12 @@ top_n(<metric_name>, <top_number>, <order>, <attrs>)
- `attrs` optional, attrs is the attributes of the metrics, could be used to
filter the topN results.
SkyWalking supports 6 attrs: `attr0`, `attr1`, `attr2`, `attr3`, `attr4`,
`attr5`.
The format is `attr0='value', attr1='value'...attr5='value5'`, could use
one or multiple attrs to filter the topN results.
- **Notice**: The `attrs` only support Service metrics for now and should be
added in the metrics first, see [Metrics Additional
Attributes](../concepts-and-designs/metrics-additional-attributes.md).
+ The attrs filter also supports not equal filter `!=`, the format is
`attr0='value'`.
+
+**Notice**:
+- The `attrs` only support Service metrics for now and should be added in the
metrics first, see [Metrics Additional
Attributes](../concepts-and-designs/metrics-additional-attributes.md).
+- When use not equal filter, for example `attr1!='value'`, if the storage is
using `MySQL` or other JDBC storage and `attr1 value not exists` in the
metrics,
Review Comment:
```suggestion
- When use not equal filter, for example `attr1 != 'value'`, if the storage
is using `MySQL` or other JDBC storage and `attr1 value is NULL` in the
metrics,
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]