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

Grafane docker problems #13

Open
martukas opened this issue Dec 3, 2018 · 0 comments
Open

Grafane docker problems #13

martukas opened this issue Dec 3, 2018 · 0 comments

Comments

@martukas
Copy link
Collaborator

martukas commented Dec 3, 2018

mg@multigrid-p-rm1:~/essdaq/grafana$ sudo docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
mg@multigrid-p-rm1:~/essdaq/grafana$ ll
total 48
drwxrwxr-x 4 mg mg  4096 aug  5 12:21 ./
drwxrwxr-x 9 mg mg  4096 sep  4 14:45 ../
drwxrwxr-x 6 mg mg  4096 dec  3 04:24 dashboards/
drwxrwxr-x 3 mg mg  4096 aug  5 12:21 docker/
-rwxrwxr-x 1 mg mg    80 aug  5 12:21 Grafana.desktop*
-rw-rw-r-- 1 mg mg 14101 aug  5 12:21 icon2.png
-rw-rw-r-- 1 mg mg  3809 aug  5 12:21 icon.png
-rwxrwxr-x 1 mg mg   610 aug  5 12:21 install.sh*
-rw-rw-r-- 1 mg mg   622 aug  5 12:21 README.md
mg@multigrid-p-rm1:~/essdaq/grafana$ cat install.sh 
#!/bin/bash

THISDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"

#ensure that we are in the script directory
pushd $THISDIR

sudo apt install -y curl
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update && sudo apt-get install -y docker-ce
sudo docker swarm init
sudo docker stack deploy -c docker/docker-compose.yml metrics

yes | cp -rf ./Grafana.desktop $HOME/Desktop/
echo "Icon=$THISDIR/icon.png" >> $HOME/Desktop/Grafana.desktop

mg@multigrid-p-rm1:~/essdaq/grafana$ sudo docker swarm init
Error response from daemon: This node is already part of a swarm. Use "docker swarm leave" to leave this swarm and join another one.
mg@multigrid-p-rm1:~/essdaq/grafana$ sudo docker swarm leave
Node left the swarm.
mg@multigrid-p-rm1:~/essdaq/grafana$ sudo docker swarm init
Swarm initialized: current node (lmgt3em5s19tytd6tql2aezz5) is now a manager.

To add a worker to this swarm, run the following command:

    docker swarm join --token SWMTKN-1-3qigk5th8f2hszzyg0mneybjf7ap72utvr0jkdqixrk2o5437a-ck4ogq07xp00si5y0q0lqiib8 10.0.19.240:2377

To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.

mg@multigrid-p-rm1:~/essdaq/grafana$ sudo docker stack deploy -c docker/docker-compose.yml metrics
Creating network metrics_default
Creating service metrics_grafana
Creating service metrics_graphite
mg@multigrid-p-rm1:~/essdaq/grafana$ sudo docker ps
CONTAINER ID        IMAGE                                 COMMAND             CREATED             STATUS              PORTS                                                      NAMES
21d10e730e12        graphiteapp/graphite-statsd:1.0.2-1   "/sbin/my_init"     9 seconds ago       Up 2 seconds        80/tcp, 2003-2004/tcp, 2023-2024/tcp, 8126/tcp, 8125/udp   metrics_graphite.1.1pev9ftk18obmpemx8v9d1p4z
6e254f7e1d63        grafana/grafana:4.4.2                 "/run.sh"           12 seconds ago      Up 7 seconds        3000/tcp                                                   metrics_grafana.1.l1zp55f046xcbtctjmo2g0xje

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

1 participant