...
Resource Attribute Name | Comments | Set By | |
---|---|---|---|
1 | service.name | User configurable using the |
|
2 | service.version | Not configurable. Automatically set according to the UAG and OMS version. For Universal Extensions, value is set to the Extension version defined in |
|
3 | service.namespace | Not configurable. Always |
|
4 | service.port | Only set for OMS – the service port used by UAG and Controller to connect to OMS. |
|
5 | service.instance.id | Value will be: For instance, if the hostname is |
|
6 | host.name | Not configurable. |
|
7 | os.name | Not configurable. |
|
8 | os.version | Not configurable. |
|
9 | process.owner | Not configurable. |
|
10 | process.pid | Not configurable. |
|
11 | process.executable.path | Not configurable. |
|
12 | process.runtime.version | Not configurable. |
|
13 | agent.id | Set to the Agent netname. |
|
14 | task.name | The name of the launched task. |
|
15 | security.business.services | Comma-separated string specifying the business services the task is part of. |
|
By default, the attributes listed above will not be added to the final, exported metrics (to avoid high-cardinality issues). The Opentelemetry Collector must be configured to copy the resource attributes as normal labels. The snippet below shows how to use the Opentelemetry Collector Transform Processor to do this:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
processors:
transform:
metric_statements:
- context: datapoint
statements:
# Only business_services is added in this example
- set(attributes["security.business.services"], resource.attributes["security.business.services"])
service:
pipelines:
metrics:
receivers: [otlp, opencensus]
processors: [transform, batch]
exporters: [prometheus] |