-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
romanov
committed
Sep 7, 2022
1 parent
80fcc49
commit 2ad4816
Showing
8 changed files
with
738 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Examples | ||
|
||
## Typical full config file | ||
|
||
```yaml | ||
Server: | ||
bind_address: '0.0.0.0' | ||
port: 8800 | ||
refresh_time: 2 | ||
|
||
Global: | ||
unit: 'ms' | ||
|
||
Local: | ||
src_addr: '0.0.0.0' | ||
timeout: 1 | ||
ttl: 64 | ||
size: 56 | ||
|
||
Devices: | ||
- name: 'RT_1' | ||
type: 'cisco' | ||
transport: 'telnet' | ||
address: '192.168.0.1' | ||
username: 'user' | ||
password: 'password' | ||
port: 23 | ||
- name: 'RT_2' | ||
type: 'juniper' | ||
transport: 'ssh' | ||
address: '192.168.0.9' | ||
username: 'user' | ||
password: 'password' | ||
port: 22 | ||
|
||
|
||
Policies: | ||
- name: mypolicy | ||
max_rtt: 0.9 | ||
|
||
ServicesGroups: | ||
- name: mygroup | ||
device: 'RT_1' | ||
services: | ||
- name: serv1 | ||
target: '10.26.6.3' | ||
delay: 3 | ||
policy: mypolicy | ||
- name: serv2 | ||
target: '10.26.6.9' | ||
delay: 8 | ||
|
||
Services: | ||
- name: 'service01' | ||
device: 'simplesla-local' | ||
target: '192.168.0.24' | ||
delay: 16 | ||
- name: 'service02' | ||
device: 'RT_2' | ||
target: '16.2.6.9' | ||
delay: 5 | ||
policy: mypolicy | ||
``` |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# How it works | ||
|
||
![Schema](img/simplesla.svg) | ||
|
||
SimpleSLA can handle ICMP checks and provide them to Prometheus with HTTP exporter. There are two ways to collect metrics: | ||
* Local device | ||
* Remote device | ||
|
||
## Local device | ||
SimpleSLA creates local device by default and without any need to define it through config file. Local device has default name **`simplesla-local`** and that\`s the ability to ping with ICMP packets right from the server or local PC with deployed SimpleSLA | ||
|
||
Configuration of `simplesla-local` are described [here](configuration/index.md#local) | ||
|
||
## Remote device | ||
SimpleSLA can connect to other devices and collect RTT to some destinations, that cannot be reachable right from SimpleSLA. | ||
|
||
These some steps of check algorithm: | ||
1. Connect to device | ||
2. Send `ping` command in appropriate format | ||
3. Recieve raw output | ||
4. Parse raw output to some value | ||
5. Push the value as a metric in `Metric collector` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.