a6205206z opened a new issue #5441:
URL: https://github.com/apache/skywalking/issues/5441
- Why do you submit this issue?
- [ x] Question or discussion
- [ ] Bug
- [ ] Requirement
- [] Feature or performance improvement
___
### Question
- When enable envoy ALS to collect logs,I found the
K8sALSServiceMeshHTTPAnalysis.java loaded ownerReferences's name ,Because the
pod is create by RS,so it's name of RS?
But, I want use deployment's name as name of report, What shall I do?
>
skywalking/oap-server/server-receiver-plugin/envoy-metrics-receiver-plugin/src/main/java/org/apache/skywalking/oap/server/receiver/envoy/als/K8sALSServiceMeshHTTPAnalysis.java
```java
if (meta.getMetadata().getOwnerReferences() != null &&
meta.getMetadata().getOwnerReferences().size() > 0) {
V1OwnerReference owner =
meta.getMetadata().getOwnerReferences().get(0);
//owner is RS,owner.getName is RS's name
result.setServiceName(String.format("%s.%s", owner.getName(),
meta.getMetadata().getNamespace()));
} else {
result.setServiceName(String.format("%s.%s",
meta.getMetadata().getName(), meta.getMetadata()
.getNamespace()));
}
```
----------------------------------------------------------------
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]