Skip to content
Permalink
Browse files

Merge pull request #2775 from telstra/test/performance-locale-monitoring

add monitoring section in readme file for performance test
  • Loading branch information...
timofei-durakov committed Sep 11, 2019
2 parents a41fad7 + 8519b46 commit 6efa1c528f9d40cac842e04da344036bd8498bb6
@@ -0,0 +1,8 @@
**Monitoring**

[Sampler](https://github.com/sqshq/sampler) is a tool for shell commands execution, visualization and alerting.
Configured with a simple YAML file.

If there is a way to get a metric using shell command - then it can be visualized with Sampler momentarily.

[Sampler example config](config-monitoring.yml.example)
@@ -0,0 +1,39 @@
runcharts:
- title: CPU usage per container
position: [[0, 0], [80, 17]]
rate-ms: 3000
legend:
enabled: true
details: true
items:
- label: floodlight_one
color: 178
sample: docker stats floodlight_one --format {{.CPUPerc}} --no-stream | awk
'{print substr($1, 1, length($1)-1)}'
- label: floodlight_second
sample: docker stats floodlight_second --format {{.CPUPerc}} --no-stream |
awk '{print substr($1, 1, length($1)-1)}'
- label: openkilda-northbound
sample: docker stats openkilda-northbound --format {{.CPUPerc}} --no-stream
| awk '{print substr($1, 1, length($1)-1)}'
- title: Memory usage per container
position: [[0, 17], [51, 23]]
rate-ms: 3000
legend:
enabled: true
details: true
items:
- label: floodlight_one
color: 178
sample: docker stats floodlight_one --format {{.MemUsage}} --no-stream | awk
'{print substr($1, 1, length($1)-3)}'
- label: floodlight_second
sample: docker stats floodlight_second --format {{.MemUsage}} --no-stream
| awk '{print substr($1, 1, length($1)-3)}'
- label: openkilda-northbound
sample: docker stats openkilda-northbound --format {{.MemUsage}} --no-stream
| awk '{print substr($1, 1, length($1)-3)}'
textboxes:
- title: Docker containers stats
position: [[51, 17], [29, 23]]
sample: docker stats --no-stream --format "table {{.Name}}\t{{.NetIO}}\t{{.BlockIO}}\t{{.PIDs}}"

0 comments on commit 6efa1c5

Please sign in to comment.
You can’t perform that action at this time.