Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Output Tags wherever ServiceID is shown #7

@memelet

Description

@memelet

We have many services of the same name where the tags uniquely identify the service (service instance per tenant, machine data collectors). These are run via docker+mesos. The ServiceID is just a jumble of uuid, and since the service name is always the same there is now way to distinguish a particular service.

For example, I have to failing services here but would need to perform another query to get the tags so I can know the full context:

barry@s-mesos-slave-1]~❯ consul-cli  health-state critical
[
  {
    "Node": "s-mesos-slave-1",
    "CheckID": "service:10.0.136.176:mesos-20150914-061000-847970314-5050-23466-S3371.307580d3-4b2b-4a49-ad41-a9baa0441a6a:5000",
    "Name": "Service 'mono-server-api-5000' check",
    "Status": "critical",
    "Notes": "",
    "Output": "Get http://10.0.136.176:31078/health: dial tcp 10.0.136.176:31078: connection refused",
    "ServiceID": "10.0.136.176:mesos-20150914-061000-847970314-5050-23466-S3371.307580d3-4b2b-4a49-ad41-a9baa0441a6a:5000",
    "ServiceName": "mono-server-api-5000"
  },
  {
    "Node": "s-mesos-slave-3",
    "CheckID": "service:10.0.139.192:mesos-20150914-061000-847970314-5050-23466-S3370.c1e70e81-ea39-4d15-97f6-48a3a35a141c:5000",
    "Name": "Service 'mono-server-api-5000' check",
    "Status": "critical",
    "Notes": "",
    "Output": "Get http://10.0.139.192:31789/health: dial tcp 10.0.139.192:31789: connection refused",
    "ServiceID": "10.0.139.192:mesos-20150914-061000-847970314-5050-23466-S3370.c1e70e81-ea39-4d15-97f6-48a3a35a141c:5000",
    "ServiceName": "mono-server-api-5000"
  }
]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions