Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions constructs/traceroute-monitor.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ new TracerouteMonitor('traceroute-db', {
activated: true,
frequency: Frequency.EVERY_10M,
locations: ['us-east-1', 'eu-central-1'],
degradedResponseTime: 10000,
maxResponseTime: 20000,
degradedResponseTime: 200,
maxResponseTime: 400,
request: {
url: 'db.example.com',
protocol: 'TCP',
Expand Down Expand Up @@ -82,8 +82,8 @@ Traceroute monitors have their own probe-specific settings, plus the standard mo
| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `request` | `object` | ✅ | - | Traceroute request configuration object |
| `degradedResponseTime` | `number` | ❌ | `10000` | Final-hop avg RTT in milliseconds at which the monitor is marked as degraded |
| `maxResponseTime` | `number` | ❌ | `20000` | Final-hop avg RTT in milliseconds at which the monitor is marked as failed |
| `degradedResponseTime` | `number` | ❌ | `500` | Final-hop avg RTT in milliseconds at which the monitor is marked as degraded |
| `maxResponseTime` | `number` | ❌ | `1000` | Final-hop avg RTT in milliseconds at which the monitor is marked as failed |

</Tab>
<Tab title="General Monitor Settings">
Expand All @@ -93,6 +93,10 @@ Traceroute monitors have their own probe-specific settings, plus the standard mo
</Tab>
</Tabs>

<Note>
Traceroute monitors that don't set `degradedResponseTime` or `maxResponseTime` move to the 500 and 1,000 ms defaults on their next `checkly deploy`. Monitors managed in the web app or through the API keep their current limits. If you set only one limit, it is checked against the default of the other: `degradedResponseTime` above 1,000 alone, or `maxResponseTime` between 1 and 499 alone, is rejected. Set both limits to use values outside these ranges.
</Note>

### `TracerouteMonitor` Options

<ResponseField name="request" type="object" required>
Expand Down Expand Up @@ -132,33 +136,33 @@ new TracerouteMonitor('traceroute-monitor', {

</ResponseField>

<ResponseField name="degradedResponseTime" type="number" default="10000">
Final-hop average RTT in milliseconds at which the monitor is marked as degraded (warning state). Maximum: 30,000.
<ResponseField name="degradedResponseTime" type="number" default="500">
Final-hop average RTT in milliseconds at which the monitor is marked as degraded (warning state). Set to `0` to turn off the degraded state. Maximum: 30,000. Without `maxResponseTime`, values above 1,000 are rejected. A monitor can't show as degraded when the two limits are equal.

**Usage:**

{/* typecheck-wrap: TracerouteMonitor */}
```ts highlight={3}
new TracerouteMonitor("traceroute-latency-tiers", {
name: "API Network Path",
degradedResponseTime: 5000, // Warn when final-hop avg RTT exceeds 5 seconds
degradedResponseTime: 300, // Warn when final-hop avg RTT reaches 300 ms
request: {
url: 'api.example.com',
},
})
```
</ResponseField>

<ResponseField name="maxResponseTime" type="number" default="20000">
Final-hop average RTT in milliseconds at which the monitor is marked as failed. Maximum: 30,000.
<ResponseField name="maxResponseTime" type="number" default="1000">
Final-hop average RTT in milliseconds at which the monitor is marked as failed. Set to `0` to turn off latency-based failing. Maximum: 30,000. Without `degradedResponseTime`, values below 500 other than `0` are rejected.

**Usage:**

{/* typecheck-wrap: TracerouteMonitor */}
```ts highlight={3}
new TracerouteMonitor("traceroute-latency-tiers", {
name: "API Network Path",
maxResponseTime: 15000, // Fail when final-hop avg RTT exceeds 15 seconds
maxResponseTime: 800, // Fail when final-hop avg RTT reaches 800 ms
request: {
url: 'api.example.com',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ For more details, see [Assertions](/detect/assertions).

Set performance thresholds based on final-hop latency:

* **Degraded After:** Final-hop avg RTT threshold (in milliseconds) after which the check is marked as degraded but not failed. Default: 3,000 ms. Maximum: 30,000 ms
* **Failed After:** Final-hop avg RTT threshold after which the check fails completely. Default: 5,000 ms. Maximum: 30,000 ms
* **Degraded After:** Final-hop avg RTT threshold (in milliseconds) at or above which the check is marked as degraded but not failed. Default: 500 ms. Maximum: 30,000 ms
* **Failed After:** Final-hop avg RTT threshold at or above which the check fails completely. Default: 1,000 ms. Maximum: 30,000 ms

Set a limit to 0 to turn it off. The failed limit can't be lower than the degraded limit, unless the failed limit is 0.

<Note>
Response-time thresholds apply to the **final-hop average RTT**, not the total check execution time. If the destination is not reached, the monitor is marked as failed regardless of these thresholds.
Expand Down
Loading