Skip to content

[libbeat] add_nomad_metadata - nomad.datacenter should only contain the allocation's datacenter #29745

Open

Description

In my opinion the nomad.datacenter field should only contain the datacenter associated with the given allocation ID. What I'm seeing is a list of all datacenters that the job is deployed in. That's not helpful for filtering logs based on the running datacenter.

Curious what others think?

{
  "nomad": {
    "allocation": {
      "name": "phone-notifier.server[1]",
      "id": "487925d1-df83-88f7-d0e4-2644818ce71e",
      "status": "running"
    },
    "task": {
      "name": "server"
    },
    "namespace": "default",
    "datacenter": [
      "east",
      "west"
    ],
    "region": "global",
    "job": {
      "name": "phone-notifier",
      "type": "service"
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions