Skip to content

Commit

Permalink
Still trying to figure this out
Browse files Browse the repository at this point in the history
  • Loading branch information
wordshaker committed Jun 14, 2018
1 parent bad7fb4 commit 14c2184
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 4 deletions.
Empty file added hello-world/config.yml
Empty file.
44 changes: 44 additions & 0 deletions hello-world/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
version: "1.0"
services:

graphite:
image: graphiteapp/graphite-statsd:1.1.3
volumes:
- graphite-config:/opt/graphite/conf
- graphite-data:/opt/graphite/storage
- graphite-logs:/var/log
- nginx-config:/etc/nginx
- logrotate-config:/etc/logrotate.d
- ./statsd/config_udp.js:/opt/statsd/config_udp.js
ports:
- "3001:80"
- "2003-2004"
- "2023-2024"
- "8125:8125/udp"
- "8126:8126"
restart: unless-stopped

grafana:
image: grafana/grafana:5.0.4
depends_on:
- graphite
- postgres
volumes:
- grafana-config:/etc/grafana
- grafana-data:/var/lib/grafana
- grafana-logs:/var/log/grafana
ports:
- "3000:3000"
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_NAME=UNiDAYS@Tech
- GF_DATABASE_URL=postgres://grafana:grafana@postgres:5432/grafana
restart: unless-stopped

volumes:
grafana-config:
grafana-data:
grafana-logs:
graphite-config:
graphite-data:
graphite-logs:
24 changes: 20 additions & 4 deletions hello-world/index.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Hello World Scenario",
"description": "Your First Scenario",
"title": "Demo - Grafana/Graphite Monitoring",
"description": "Setting up Graphite, Carbon, Whisper and Grafana in Docker",
"difficulty": "beginner",
"time": "2 minutes",
"details": {
Expand All @@ -14,13 +14,29 @@
},
"finish": {
"text": "finish.md"
},
"assets": {
"client": [
{
"file": "docker-compose.yml",
"target": "~/"
}
],
"host01": [
{
"file": "config.yml",
"target": "~/"
}
]
}
},
"environment": {
"uilayout": "terminal",
"uimessage1": "\u001b[32mYour Interactive Bash Terminal.\r\nStart Kubernetes using `launch.sh`\u001b[m\r\n"
"uimessage1": "\u001b[32mYour Interactive Bash Terminal.\r\nStart Kubernetes using `launch.sh`\u001b[m\r\n",
"showdashboard": true,
"dashboards": [{"name": "Display 80", "port": 80}, {"name": "Display 8080", "port": 8080}]
},
"backend": {
"imageid": "bash"
"imageid": "docker"
}
}

0 comments on commit 14c2184

Please sign in to comment.