stevenfollis / prometheus

prometheus for swarm/k8s with grafana and dashboards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prometheus Grafana Swarm deploy-orama

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.

Included files :

  • cluster.json - Grafana Cluster Dashboard
  • containers.json - Grafana Containers Dashboard
  • prometheus.yml - compose file
  • deploy_prometheus.sh - Simple script to deploy.

Moving parts :

  • 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.

Deployment/Usage

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.

Deploying to Swarm :

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

Deploying to Kubernetes

This is fairly simply as well. cd k8s; kubectl apply -f .

Future

Looking to streamline this more.

Please Contribute!

About

prometheus for swarm/k8s with grafana and dashboards


Languages

Language:Shell 100.0%