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
{{ message }}
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
This is optional and disabled by default but is necessary on platforms
like EKS and PKS that have duplicated machine-ids across nodes.
Eventually it would be better to migrate away from machine-id altogether
since it is so unreliable, but this would break backwards compatibility
so it will have to be a major release
|`alwaysClusterReporter`| no |`bool`| If `true`, leader election is skipped and metrics are always reported. (**default:**`false`) |
40
+
|`useNodeName`| no |`bool`| If set to true, the Kubernetes node name will be used as the dimension to which to sync properties about each respective node. This is necessary if your cluster's machines do not have unique machine-id values, as can happen when machine images are improperly cloned. (**default:**`false`) |
40
41
|`kubernetesAPI`| no |`object (see below)`| Config for the K8s API client |
41
42
42
43
@@ -85,8 +86,9 @@ dimensions may be specific to certain metrics.
85
86
| --- | --- |
86
87
|`kubernetes_name`| The name of the resource that the metric describes |
87
88
|`kubernetes_namespace`| The namespace of the resource that the metric describes |
89
+
|`kubernetes_node`| The name of the node, as defined by the `name` field of the node resource. |
88
90
|`kubernetes_pod_uid`| The UID of the pod that the metric describes |
89
-
|`machine_id`| The machine ID from /etc/machine-id. This should be unique across all nodes in your cluster, but some cluster deployment tools don't guarantee this. |
91
+
|`machine_id`| The machine ID from /etc/machine-id. This should be unique across all nodes in your cluster, but some cluster deployment tools don't guarantee this. This will not be sent if the `useNodeName` config option is set to true. |
90
92
|`metric_source`| This is always set to `kubernetes`|
91
93
92
94
## Properties
@@ -97,7 +99,7 @@ are set on the dimension values of the dimension specified.
97
99
98
100
| Name | Dimension | Description |
99
101
| --- | --- | --- |
100
-
|`<node label>`|`machine_id`| All non-blank labels on a given node will be synced as properties to the `machine_id` dimension value for that node. Any blank values will be synced as tags on that same dimension. |
102
+
|`<node label>`|`machine_id/kubernetes_node`| All non-blank labels on a given node will be synced as properties to the `machine_id`or `kubernetes_node`dimension value for that node. Which dimension gets the properties is determined by the `useNodeName` config option. Any blank values will be synced as tags on that same dimension. |
101
103
|`<pod label>`|`kubernetes_pod_uid`| Any labels with non-blank values on the pod will be synced as properties to the `kubernetes_pod_uid` dimension. Any blank labels will be synced as tags on that same dimension. |
0 commit comments