Installing and configuring grafana with docker using salt-states
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
srv/salt
LICENSE
README.md
runthis.sh

README.md

grafanadocker

Installing and configuring grafana with docker using salt-states


H6 from Terokarvinen.com

IF YOU USE IT, REMEMBER TO CLOSE THE CONTAINERS AFTER YOU ARE DONE. ALSO NOT RECOMMENDED TO USE OUTSIDE LAB NETWORKS

Installs docker and docker-compose on a ubuntu host then launches influxdb container with connected grafana container

How to use

$ git clone https://github.com/Julmajamal/grafanadocker.git


$ cd grafanadocker/


$ sudo bash runthis.sh


Open firefox if all states are completed


Write localhost:3000 in the address field


Login details are: admin / salainen


Rest is just using grafana normally aka manually. There is a example_data, which has value of 1. You can show it from graphs

To shutdown you need to use command sudo docker-compose down in the folder /srv/managed_docker/

Some Info

Docker is virtualization program, containers are part images of for example ubuntu in this case


Grafana is visualization program


Influxdb is a time-series database

To run this you will need:

$ sudo apt-get install -y salt-master


$ sudo apt-get install -y git

There are some not used files, like old bash scripts in the module. Don't use them unless you want some funky things

Just run runthis.sh which calls top.sls which then calls other salt states which call bash scripts

References

[https://docs.saltstack.com/en/latest/ref/states/all/salt.states.grafana.html]


[http://docs.grafana.org/installation/debian/]


[http://docs.grafana.org/installation/docker/]


[http://docs.grafana.org/administration/provisioning/]


[https://docs.docker.com/install/linux/docker-ce/ubuntu/]


[https://docs.saltstack.com/en/latest/ref/states/all/salt.states.docker.html]


[https://github.com/grafana/grafana-docker]


[https://docs.docker.com/compose/install/]