wu-sheng commented on a change in pull request #6608:
URL: https://github.com/apache/skywalking/pull/6608#discussion_r601201779
##########
File path: docs/en/concepts-and-designs/mal.md
##########
@@ -57,6 +57,28 @@ For example, this filters all instance_trace_count samples
for values >= 33:
```
instance_trace_count.valueGreaterEqual(33)
```
+### K8s
+MAL support add specific Labels to the samples that collect from K8s metrics
collectors.
+This feature need OAP Server has the authority to access the K8s's `API
Server`.
+#### retagByK8sMeta
+`retagByK8sMeta(newLabelName, K8sRetagType, existingLabelName)`. Add a new
label to the sample family based on an existing label's value. Provide several
internal converting types, including
+- K8sRetagType.Pod2Service
+
+Add a sevice Label to the sample that already has a pod name.
Review comment:
```suggestion
Add a tag to the sample by using `service` as the key,
`serviceName.namespace` as the value, by the given value of the tag key, which
represents the name of a pod.
```
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]