The intent of this repo is to have a simple way to deploy Prometheus and Grafana with dashboards on Swarm. This is a BASIC implementation of Prometheus and Grafana.
- cluster.json - Grafana Cluster Dashboard
- containers.json - Grafana Containers Dashboard
- prometheus.yml - compose file
- deploy_prometheus.sh - Simple script to deploy.
- Prometheus node-exporter, global, provides OS metrics.
- Cadvisor, global, provides container metrics.
- Prometheus, single, collects all the metrics, gets configured with the
docker config
. - Grafana, single, dashboarding for prometheus.
To deploy you will need a swarm cluster and a docker engine. Ideally you would use a client bundle pointed at a UCP.
git clone https://github.com/clemenko/prometheus.git
Source the client bundle, . ./env.sh
.
And run the deploy script...
Example :
cd swarm; ./deploy_prometheus.sh
Right now the script does not allow for updating.
You can ignore the deploy labels in the prometheus.yml. They are for interlock 2.0.
com.docker.lb.hosts: grafana.dockr.life
com.docker.lb.port: 3000
This is fairly simply as well.
cd k8s; kubectl apply -f .
Looking to streamline this more.