Skip to content

Commit

Permalink
[synthetics] Document Synthetics availability SLI (#4346)
Browse files Browse the repository at this point in the history
* add info on synthetics availability sli

* add note about grouping

* update serverless docs
  • Loading branch information
colleenmcginnis authored Oct 16, 2024
1 parent 9fca657 commit c33dd95
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 4 deletions.
23 changes: 23 additions & 0 deletions docs/en/observability/slo-create.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ The type of SLI to use depends on the location of your data:
* <<timeslice-metric-sli, Timeslice metric>> — create an SLI based on a custom equation that uses multiple aggregations.
* <<histogram-metric-sli, Histogram metric>> — create an SLI based on histogram metrics.
* <<apm-latency-and-availability-sli, APM latency and APM availability>> — create an SLI based on services using application performance monitoring (APM).
* <<synthetics-availability-sli>> — create an SLI based on the availability of your synthetic monitors.

[discrete]
[[custom-kql-sli]]
Expand Down Expand Up @@ -161,6 +162,28 @@ When defining an APM latency or APM availability SLI, set the following fields:
* *Threshold (APM latency only)* — The latency threshold in milliseconds (ms) to consider the request as good.
* *Query filter* — An optional query filter on the APM data.

[discrete]
[[synthetics-availability-sli]]
== Synthetics availability

Create an indicator based on the availability of your synthetic monitors.
Availability is determined by calculating the percentage of checks that are successful (`monitor.status : "up"`)
out of the total number of checks.

*Example*: You can define an indicator based on a HTTP monitor being "up" for at least 99% of the time.

When defining a Synthetics availability SLI, set the following fields:

* *Monitor name* — The name of one or more <<synthetics-configuration-monitor-name,synthetic monitors>>.
* *Project* — The ID of one or more <<synthetics-configuration-project,projects>> containing synthetic monitors.
* *Tags* — One or more <<synthetics-configuration-monitor-tags,tags>> assigned to synthetic monitors.
* *Query filter* — An optional KQL query used to filter the Synthetics checks on some relevant criteria.

[NOTE]
====
Synthetics availability SLIs are automatically grouped by monitor and location.
====

[discrete]
[[set-slo]]
= Set your objectives
Expand Down
4 changes: 2 additions & 2 deletions docs/en/observability/synthetics-configuration.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ Default values to be applied to _all_ monitors when using the <<elastic-syntheti
// tag::monitor-config-options[]
`id` (`string`)::
A unique identifier for this monitor.
`name` (`string`)::
[[synthetics-configuration-monitor-name]] `name` (`string`)::
A human readable name for the monitor.
`tags` (`Array<string>`)::
[[synthetics-configuration-monitor-tags]] `tags` (`Array<string>`)::
A list of tags that will be sent with the monitor event. Tags are displayed in the {synthetics-app} and allow you to search monitors by tag.
`schedule` (`number`)::
The interval (in minutes) at which the monitor should run.
Expand Down
21 changes: 21 additions & 0 deletions docs/en/serverless/slos/create-an-slo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,27 @@ When defining either an APM latency or APM availability SLI, set the following f
* **Threshold (APM latency only):** The latency threshold in milliseconds (ms) to consider the request as good.
* **Query filter:** An optional query filter on the APM data.

<div id="synthetics-availability-sli"></div>

### Synthetics availability

Create an indicator based on the availability of your synthetic monitors.
Availability is determined by calculating the percentage of checks that are successful (`monitor.status : "up"`)
out of the total number of checks.

**Example**: You can define an indicator based on a HTTP monitor being "up" for at least 99% of the time.

When defining a Synthetics availability SLI, set the following fields:

* **Monitor name** — The name of one or more <DocLink slug="/serverless/observability/synthetics-configuration" section="monitor-name">synthetic monitors</DocLink>.
* **Project** — The ID of one or more <DocLink slug="/serverless/observability/synthetics-configuration" section="project">projects</DocLink> containing synthetic monitors.
* **Tags** — One or more <DocLink slug="/serverless/observability/synthetics-configuration" section="monitor-tags">tags</DocLink> assigned to synthetic monitors.
* **Query filter** — An optional KQL query used to filter the Synthetics checks on some relevant criteria.

<DocCallOut title="Note">
Synthetics availability SLIs are automatically grouped by monitor and location.
</DocCallOut>

<div id="set-slo"></div>

## Set your objectives
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,20 @@
A unique identifier for this monitor.
</DocDefDescription>

<DocDefTerm>`name` (`string`)</DocDefTerm>
<DocDefTerm>
<span id="monitor-name">
`name` (`string`)
</span>
</DocDefTerm>
<DocDefDescription>
A human readable name for the monitor.
</DocDefDescription>

<DocDefTerm>`tags` (`Array<string>`)</DocDefTerm>
<DocDefTerm>
<span id="monitor-tags">
`tags` (`Array<string>`)
</span>
</DocDefTerm>
<DocDefDescription>
A list of tags that will be sent with the monitor event. Tags are displayed in the Synthetics UI and allow you to search monitors by tag.
</DocDefDescription>
Expand Down

0 comments on commit c33dd95

Please sign in to comment.