sampler-fork/config.yml

29 lines
730 B
YAML

theme: dark
run-charts:
- title: curl-latency
data:
- label: google.com
script: curl -o /dev/null -s -w '%{time_total}' http://google.com
- label: yahoo.com
script: curl -o /dev/null -s -w '%{time_total}' http://yahoo.com
- label: example.com
script: curl -o /dev/null -s -w '%{time_total}' http://example.com
refresh-rate-ms: 300
time-scale-sec: 1
position:
x: 0
y: 0
size:
x: 15
y: 15
- title: mongo-count
data:
- label: posts
script: mongo --quiet --host=localhost blog --eval "db.getCollection('post').find({}).size()" | grep 2
color: 3
position:
x: 15
y: 0
size:
x: 15
y: 15