Closed oscgonfer closed 4 months ago
Previously we have been running grafana-agent via systemd, but it would be good if we can add it to the compose.yml file.
grafana-agent
systemd
compose.yml
As it runs on the mqtt server:
mqtt
docker run -d --name grafana \ --restart="unless-stopped" \ --memory="1g" \ --memory-swap="1g" \ -v /tmp/agent:/etc/agent/data \ -v /root/grafana-agent-config.yaml:/etc/agent/agent.yaml \ grafana/agent:v0.11.0
However, would be good to make it all run with docker, moving user/passwords over to the .env file (and include them in env.example): https://grafana.com/docs/grafana/latest/setup-grafana/installation/docker/
So:
docker-compose.yml
agent-config
docker-compose
.env
env.example
Done by https://github.com/fablabbcn/smartcitizen-api/pull/299
Previously we have been running
grafana-agent
viasystemd
, but it would be good if we can add it to thecompose.yml
file.As it runs on the
mqtt
server:However, would be good to make it all run with docker, moving user/passwords over to the .env file (and include them in env.example): https://grafana.com/docs/grafana/latest/setup-grafana/installation/docker/
So:
docker-compose.yml
with no dependency. Evaluating if most of theagent-config
can be moved over to thedocker-compose
file.env
and fake ones toenv.example