sergicastro opened a new issue #6901: URL: https://github.com/apache/skywalking/issues/6901
Please answer these questions before submitting your issue. - Why do you submit this issue? - [ ] Question or discussion - [ ] Bug - [ ] Requirement - [x] Feature or performance improvement ### Requirement or improvement Regarding the [metadata-service-mapping.yaml](https://github.com/apache/skywalking/blob/master/oap-server/server-bootstrap/src/main/resources/metadata-service-mapping.yaml) file used to configure which fields/labels are used to extract required data, would be nice to provide a way to configure multiple values treated as a fallback mechanism to extract the required data. For example, let's say I want to extract the service name from the label `service.istio.io/canonical-name` but I want to fall back into `app.kubernetes.io/name` or `app` labels if the first one is not defined. Allowing a comma-separated value in the config file would be enough to what needs to be processed to find the service name in this case. The config file would look like this: ```yaml serviceName: ${LABELS."service.istio.io/canonical-name"},${LABELS."app.kubernetes.io/name"},${LABELS."app"} serviceInstanceName: ${NAME} ``` This is just a suggestion, any other implementation covering the requirement is welcome. -- 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]
