monitoringartist / zabbix-docker-monitoring

:whale: Docker/Kubernetes/Mesos/Marathon/Chronos/LXC/LXD/Swarm container monitoring - Docker image, Zabbix template and C module
https://hub.docker.com/r/monitoringartist/zabbix-agent-xxl-limited/
GNU General Public License v2.0
1.19k stars 268 forks source link

Cannot display container name in zabbix #141

Closed ScorpioJipson closed 4 years ago

ScorpioJipson commented 4 years ago

In zabbix, it can only be displayed by the container id, such as {#HCONTAINERID}, variable without container name I hope to display the container name in the dashboard and the container name in the alarm thanks

jangaraj commented 4 years ago

You need to modify your discovery rule and use proper macro:

{#FCONTAINERID} - full container ID (64 character string)
{#SCONTAINERID} - short container ID (12 character string)
{#HCONTAINERID} - human name of the container