mirror of
https://github.com/mtan93/cachet-url-monitor.git
synced 2026-03-08 05:31:58 +00:00
Fixed metric latency unit and logging (#49)
* move latency_unit into cachet dictionary * log actual metric latency_unit * also update config in readme * also update config description in readme
This commit is contained in:
@@ -37,8 +37,8 @@ cachet:
|
||||
- CREATE_INCIDENT
|
||||
- UPDATE_STATUS
|
||||
public_incidents: true
|
||||
latency_unit: ms
|
||||
frequency: 30
|
||||
latency_unit: ms
|
||||
```
|
||||
|
||||
- **endpoint**, the configuration about the URL that will be monitored.
|
||||
@@ -59,8 +59,8 @@ latency_unit: ms
|
||||
- **CREATE_INCIDENT**, we will create an incident when the expectation fails.
|
||||
- **UPDATE_STATUS**, updates the component status
|
||||
- **public_incidents**, boolean to decide if created incidents should be visible to everyone or only to logged in users. Important only if `CREATE_INCIDENT` or `UPDATE_STATUS` are set.
|
||||
- **latency_unit**, the latency unit used when reporting the metrics. It will automatically convert to the specified unit. It's not mandatory and it will default to **seconds**. Available units: `ms`, `s`, `m`, `h`.
|
||||
- **frequency**, how often we'll send a request to the given URL. The unit is in seconds.
|
||||
- **latency_unit**, the latency unit used when reporting the metrics. It will automatically convert to the specified unit. It's not mandatory and it will default to **seconds**. Available units: `ms`, `s`, `m`, `h`.
|
||||
|
||||
## Setting up
|
||||
|
||||
|
||||
Reference in New Issue
Block a user