added ssh example
This commit is contained in:
parent
c09165f12d
commit
f4191882f6
25
README.md
25
README.md
|
@ -156,11 +156,12 @@ asciiboxes:
|
||||||
Triggers allow to perform conditional actions, like visual/sound alerts or an arbitrary shell command.
|
Triggers allow to perform conditional actions, like visual/sound alerts or an arbitrary shell command.
|
||||||
The following examples illustrate the concept.
|
The following examples illustrate the concept.
|
||||||
|
|
||||||
#### Clock gauge, which shows minute progress and announce current time at the beginning of each minute
|
#### Clock gauge, which shows minute progress and announces current time at the beginning of each minute
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
gauges:
|
gauges:
|
||||||
- title: MINUTE PROGRESS
|
- title: MINUTE PROGRESS
|
||||||
|
position: [[0, 18], [80, 0]]
|
||||||
cur:
|
cur:
|
||||||
sample: date +%S
|
sample: date +%S
|
||||||
max:
|
max:
|
||||||
|
@ -182,12 +183,15 @@ gauges:
|
||||||
```yml
|
```yml
|
||||||
runcharts:
|
runcharts:
|
||||||
- title: SEARCH ENGINE RESPONSE TIME (sec)
|
- title: SEARCH ENGINE RESPONSE TIME (sec)
|
||||||
|
rate-ms: 200
|
||||||
items:
|
items:
|
||||||
- label: GOOGLE
|
- label: GOOGLE
|
||||||
sample: curl -o /dev/null -s -w '%{time_total}' https://www.google.com
|
sample: curl -o /dev/null -s -w '%{time_total}' https://www.google.com
|
||||||
|
- label: YAHOO
|
||||||
|
sample: curl -o /dev/null -s -w '%{time_total}' https://search.yahoo.com
|
||||||
triggers:
|
triggers:
|
||||||
- title: Latency threshold exceeded
|
- title: Latency threshold exceeded
|
||||||
condition: echo "$prev < 0.8 && $cur > 0.8" |bc -l # expects "1" as TRUE indicator
|
condition: echo "$prev < 0.3 && $cur > 0.3" |bc -l # expects "1" as TRUE indicator
|
||||||
actions:
|
actions:
|
||||||
terminal-bell: true # standard terminal bell, default = false
|
terminal-bell: true # standard terminal bell, default = false
|
||||||
sound: true # NASA quindar tone, default = false
|
sound: true # NASA quindar tone, default = false
|
||||||
|
@ -344,7 +348,22 @@ runcharts:
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
### SSH
|
### SSH
|
||||||
...
|
|
||||||
|
<details><summary>TOP command on a remote server</summary>
|
||||||
|
|
||||||
|
```yml
|
||||||
|
|
||||||
|
variables:
|
||||||
|
sshconnection: ssh -i ~/my-key-pair.pem ec2-user@1.2.3.4
|
||||||
|
textboxes:
|
||||||
|
- title: SSH
|
||||||
|
pty: true
|
||||||
|
init: $sshconnection
|
||||||
|
sample: top
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
### JMX
|
### JMX
|
||||||
...
|
...
|
||||||
### Spring Boot
|
### Spring Boot
|
||||||
|
|
Loading…
Reference in New Issue