grafana-ansible-collection icon indicating copy to clipboard operation
grafana-ansible-collection copied to clipboard

Topic/refactor grafana agent

Open ohdearaugustin opened this issue 1 year ago • 7 comments

Complete rewrite of grafana_agent role. Fix #148

ohdearaugustin avatar Feb 14 '24 01:02 ohdearaugustin

I have already molecule scenarios, but didn't pushed them because the setup is with systemd in docker and kind of unstable. aka can crash your host system^^

ohdearaugustin avatar Feb 15 '24 12:02 ohdearaugustin

Using docker/podman images with systemd in molecule is quite common actually so that shouldn't be an issue. But actually you don't even need to define your own platform as they are already defined for the collection here: https://github.com/grafana/grafana-ansible-collection/blob/main/.config/molecule/config.yml

gardar avatar Feb 20 '24 15:02 gardar

@gardar yeah I realized that after I implemented my own. I will try to use the one already in place.

ohdearaugustin avatar Feb 20 '24 17:02 ohdearaugustin

@gardar I just tried the already includes molecule. Somehow it always get's stuck at the Gathering Facts for over 10 mins. Did you also ever had those problems? Or maybe any idea what that could be.

Edit: Maybe a bit more context is useful I use docker on Arch and molecule with sudo.

ohdearaugustin avatar Feb 27 '24 21:02 ohdearaugustin

There are different reasons I've seen that happen, do you have the molecule docker driver installed? and are the containers running?

gardar avatar Feb 27 '24 23:02 gardar

@ohdearaugustin can you please rebase?

gardar avatar Apr 10 '24 11:04 gardar

Should be rebased now. Didn't yet implement the manual install, just didn't had time unfortunately.

ohdearaugustin avatar Apr 11 '24 20:04 ohdearaugustin