For Cloud Observability to correlate metric data with trace data, it needs to know the service and operation that emitted each metric. By default, to determine the service, Cloud Observability looks for the attribute (tag/label)
service.name and the attribute
span.name to determine the operation in your metrics. If you use different or additional attributes, you need to register those with Cloud Observability. For example, if some of your metrics use the
kube_app attribute to record the service’s name, you need to add that attribute.
Service and operation name attributes are project-specific. You need to register the attributes with all projects that should use them.
This image shows how to register a service name attribute. The steps below describe the procedure in more detail.
In Cloud Observability, click Project settings.
In Project settings, click Mapping metrics to services.
Under Service and Operation, click the field to add and delete attributes.
Updated Jul 27, 2023