You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/registry/attributes/service.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@ A service instance.
12
12
| <aid="service-instance-id"href="#service-instance-id">`service.instance.id`</a> | string | The string ID of the service instance. [1]|`627cc493-f310-47de-96bd-71410b7dec09`||
13
13
| <aid="service-name"href="#service-name">`service.name`</a> | string | Logical name of the service. [2]|`shoppingcart`||
14
14
| <aid="service-namespace"href="#service-namespace">`service.namespace`</a> | string | A namespace for `service.name`. [3]|`Shop`||
15
+
| <aid="service-roles"href="#service-roles">`service.roles`</a> | string[]| Roles of a service node. [4]|`["ui", "background_tasks"]`; `["background_tasks"]`||
16
+
| <aid="service-state"href="#service-state">`service.state`</a> | string | Current state of the service. [5]|`starting`; `running`; `stopping`; `stopped`||
15
17
| <aid="service-version"href="#service-version">`service.version`</a> | string | The version string of the service API or implementation. The format is not defined by these conventions. |`2.0.0`; `a01dbef8a`||
16
18
17
19
**[1]`service.instance.id`:** MUST be unique for each instance of the same `service.namespace,service.name` pair (in other words
@@ -44,3 +46,13 @@ port.
44
46
**[2]`service.name`:** MUST be the same for all instances of horizontally scaled services. If the value was not specified, SDKs MUST fallback to `unknown_service:` concatenated with [`process.executable.name`](process.md), e.g. `unknown_service:bash`. If `process.executable.name` is not available, the value MUST be set to `unknown_service`.
45
47
46
48
**[3]`service.namespace`:** A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services. `service.name` is expected to be unique within the same namespace. If `service.namespace` is not specified in the Resource then `service.name` is expected to be unique for all services that have no explicit namespace defined (so the empty/unspecified namespace is simply one more valid namespace). Zero-length namespace string is assumed equal to unspecified namespace.
49
+
50
+
**[4]`service.roles`:** This allows for distinction between different running roles of the same service.
51
+
52
+
In the case of Kibana, the service.node.role could be ui or background_tasks or both.
53
+
54
+
In the case of Elasticsearch, the service.node.role could be master or data or both.
55
+
56
+
Other services could use this to distinguish between a web and worker role running as part of the service.
57
+
58
+
**[5]`service.state`:** This state could be reported an agent which monitors the services
0 commit comments