This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
graphite_cpu() { | |
local date=$(date -v$1S +%s) | |
echo "apps.prod.application1.requests.count $2 ${date}" | nc localhost 2103 | |
echo "apps.prod.application2.requests.count $3 ${date}" | nc localhost 2103 | |
echo "apps.prod.application3.requests.count $4 ${date}" | nc localhost 2103 | |
echo "apps.test.application1.requests.count $5 ${date}" | nc localhost 2103 | |
echo "apps.test.application2.requests.count $6 ${date}" | nc localhost 2103 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
baseline=30 | |
graphite_cpu() { | |
local date=$(date -v$1S +%s) | |
echo "apps.prod.application1.requests.count $2 ${date}" | nc localhost 2103 | |
echo "apps.prod.application2.requests.count $3 ${date}" | nc localhost 2103 | |
echo "apps.prod.application3.requests.count $4 ${date}" | nc localhost 2103 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Prerequisites: | |
- use `make devenv sources=graphite` | |
- each tests starts with plain Explore or Dashboard state | |
- select "gdev-graphite" datasouce | |
Metrics: adding and editing | |
- click on "select metric" | |
- select "stats" -> "stats" should be selected and a new segment with "select metric" label should appear | |
- select "response" from the second segment | |
- select "500" from the last dropdown |