diff options
author | Valerij Fredriksen <valerij92@gmail.com> | 2021-05-28 12:26:32 +0200 |
---|---|---|
committer | Valerij Fredriksen <valerij92@gmail.com> | 2021-05-28 12:26:32 +0200 |
commit | 168992c8caa6827aad237cecc38cf3b3780b5a0f (patch) | |
tree | f60c139a9f796deacdd581d5bef2e9069e68f865 /node-admin | |
parent | af1b4805882f4a381573e88665c436f51e64f76c (diff) |
Include cluster_id and cluster_type for core dump reports
Diffstat (limited to 'node-admin')
-rw-r--r-- | node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/StorageMaintainer.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/StorageMaintainer.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/StorageMaintainer.java index 10e0dd50761..9ced178cff9 100644 --- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/StorageMaintainer.java +++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/StorageMaintainer.java @@ -188,6 +188,10 @@ public class StorageMaintainer { attributes.put("application", owner.application().value()); attributes.put("instance", owner.instance().value()); }); + context.node().membership().ifPresent(membership -> { + attributes.put("cluster_id", membership.clusterId()); + attributes.put("cluster_type", membership.type().value()); + }); return Collections.unmodifiableMap(attributes); } |