This containerlab was forked from this example in order to play with gnmic and Telegraf collectors.
- install containerlab
- stand up the lab instance
sudo containerlab deploy --topo prometheus.clab.yml
On the first run the telegraf container will always fail as it won't be able to mount the certificates since they're created on the first run. So a reboot of the lab and an edit of the topology file is needed:
-
sudo containerlab destroy --topo prometheus.clab.yml
-
remove the
#
from the Telegraf binding insideprometheus.clab.yml
#- ./clab-collectors/.tls/ca/:/etc/telegraf/ssl-ca
#- ./clab-collectors/.tls/telegraf/:/etc/telegraf/ssl-cert
-
save the file
-
sudo containerlab deploy --topo prometheus.clab.yml