Currently, using the autodiscover feature, in kibana heartbeat dashboard all services have name "Unnamed-auto-tcp...".
How to provide a name using some docker label?
Tried using the following configuration with no results:
heartbeat.autodiscover:
providers:
- type: docker
templates:
- condition:
not:
equals:
docker.container.labels.app: web
config:
- type: tcp
hosts: ["${data.host}:${data.port}"]
schedule: "@every 1m"
timeout: 1s
name: "${docker.container.labels.app}"
The event has empty "monitor.name" field.
Also tried name: "%{[docker][container][labels][app]}"
, but "montior.name" becomes " %{[docker][container][labels][app]}".
Using a static name works (name: some_name), but all docker services will have the same name.