-
Notifications
You must be signed in to change notification settings - Fork 94
/
cube_cwarden.pmx
64 lines (49 loc) · 1.86 KB
/
cube_cwarden.pmx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
name: cube
description: 'The cube event logging server.'
keywords: 'logging, cube, events'
type: Default
documentation: |-
# Cube Event Logging Server
Starts a MongoDB server, [cube collector](https://github.com/square/cube/wiki/Collector), and [cube evaluator](https://github.com/square/cube/wiki/Evaluator).
### System Requirements
Give panamax-vm at least 2GB of RAM (`export PMX_VM_MEMORY=2048` in `~/.panamax/.env`)
### Port Forwarding
Expose Collector and Evaluator
$ VBoxManage controlvm panamax-vm natpf1 collector,tcp,,1080,,1080
$ VBoxManage controlvm panamax-vm natpf1 evaluator,tcp,,1081,,1081
### Use Cube
Send some test events to the collector, e.g.
$ for i in {1..5000}; do curl --silent -H "Content-Type: application/json" -X POST -d '[{"type":"test"}]' http://localhost:1080/1.0/event/put; done
Visit the evaluator at `http://localhost:1081`.
Log events from your app using a [library](https://github.com/square/cube/wiki/Tools) or [curl](https://github.com/square/cube/wiki/Collector#event_put).
### Resources
* Customize your time series visualizations using [Cubism](https://github.com/square/cubism)
* Create a simple dashboard using [cube-dashboard](https://github.com/jgallen23/cube-dashboard)
images:
- name: robinvdvleuten_mongo_latest
source: robinvdvleuten/mongo:latest
category: Database
type: Default
- name: cwarden_cube-collector
source: cwarden/cube-collector:latest
category: Apps
type: Default
ports:
- host_port: '1080'
container_port: '1080'
proto: TCP
links:
- service: robinvdvleuten_mongo_latest
alias: mongodb
- name: cwarden_cube-evaluator
source: cwarden/cube-evaluator:latest
category: Apps
type: Default
ports:
- host_port: '1081'
container_port: '1080'
proto: TCP
links:
- service: robinvdvleuten_mongo_latest
alias: mongodb