From bec8e0d24519079d628d31cc903e2386dd30bc86 Mon Sep 17 00:00:00 2001 From: Rachid Zarouali Date: Tue, 26 Jul 2016 18:51:00 +0200 Subject: [PATCH] experimental release of grafana (#150) --- templates/grafana/0/docker-compose.yml | 8 ++++ templates/grafana/0/rancher-compose.yml | 32 +++++++++++++ templates/grafana/catalogIcon-grafana.svg | 58 +++++++++++++++++++++++ templates/grafana/config.yml | 4 ++ 4 files changed, 102 insertions(+) create mode 100644 templates/grafana/0/docker-compose.yml create mode 100644 templates/grafana/0/rancher-compose.yml create mode 100644 templates/grafana/catalogIcon-grafana.svg create mode 100644 templates/grafana/config.yml diff --git a/templates/grafana/0/docker-compose.yml b/templates/grafana/0/docker-compose.yml new file mode 100644 index 0000000..895866b --- /dev/null +++ b/templates/grafana/0/docker-compose.yml @@ -0,0 +1,8 @@ +grafana: + image: grafana/grafana:latest + ports: + - ${http_port}:3000 + environment: + GF_SECURITY_ADMIN_USER: ${admin_username} + GF_SECURITY_ADMIN_PASSWORD: ${admin_password} + GF_SECURITY_SECRET_KEY: ${secret_key} diff --git a/templates/grafana/0/rancher-compose.yml b/templates/grafana/0/rancher-compose.yml new file mode 100644 index 0000000..648b5d3 --- /dev/null +++ b/templates/grafana/0/rancher-compose.yml @@ -0,0 +1,32 @@ +.catalog: + name: "Grafana" + version: "3.0.2-rancher1" + description: | + (Experimental) Grafana: Beautiful metric & analytic dashboards + questions: + - variable: http_port + description: "http port to access Grafana" + label: "Http Port" + required: true + default: "3000" + type: "int" + - variable: admin_username + description: "Grafana admin username" + label: "Admin Username" + required: true + default: "admin" + type: "string" + - variable: admin_password + description: "Grafana admin password" + label: "Admin Password" + required: true + default: "password" + type: "string" + - variable: secret_key + description: "Signing secret key" + label: "Secret Key" + required: true + default: "su2Tong2zoocie" + type: "string" + +grafana: diff --git a/templates/grafana/catalogIcon-grafana.svg b/templates/grafana/catalogIcon-grafana.svg new file mode 100644 index 0000000..8616d36 --- /dev/null +++ b/templates/grafana/catalogIcon-grafana.svg @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + diff --git a/templates/grafana/config.yml b/templates/grafana/config.yml new file mode 100644 index 0000000..3b6394e --- /dev/null +++ b/templates/grafana/config.yml @@ -0,0 +1,4 @@ +name: "Grafana" +description: "Visualization dashboard" +version: "3.0.2-rancher1" +category: Monitoring