Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add grafana to docker-compose #296

Closed
2 tasks done
oscgonfer opened this issue Jan 16, 2024 · 1 comment
Closed
2 tasks done

Add grafana to docker-compose #296

oscgonfer opened this issue Jan 16, 2024 · 1 comment
Assignees
Milestone

Comments

@oscgonfer
Copy link
Contributor

oscgonfer commented Jan 16, 2024

Previously we have been running grafana-agent via systemd, but it would be good if we can add it to the compose.yml file.

As it runs on the mqtt server:

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:

  • Add grafana to docker-compose.yml with no dependency. Evaluating if most of the agent-config can be moved over to the docker-compose file
  • Add credentials to .env and fake ones to env.example
@oscgonfer oscgonfer added this to the 0723 milestone Jan 16, 2024
@oscgonfer
Copy link
Contributor Author

Done by #299

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants