You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a| *Required*. The type of monitor to run. One of:
11
+
12
+
* `http`: Connects via HTTP and optionally verifies that the host returns the expected response.
13
+
* `icmp`: Uses an ICMP (v4 and v6) Echo Request to ping the configured hosts. Requires special permissions or root access.
14
+
* `tcp`: Connects via TCP and optionally verifies the endpoint by sending and/or receiving a custom payload.
15
+
16
+
////////////////////////
17
+
id
18
+
////////////////////////
19
+
| [[monitor-id]] *`id`*
20
+
(<<synthetics-lightweight-data-string,string>>)
21
+
a| *Required*. A unique identifier for this configuration. This should not change with edits to the monitor configuration regardless of changes to any config fields.
22
+
23
+
*Examples*:
24
+
25
+
[source,yaml]
26
+
----
27
+
id: uploader-service
28
+
----
29
+
30
+
[source,yaml]
31
+
----
32
+
id: http://example.net
33
+
----
34
+
35
+
[NOTE]
36
+
====
37
+
When querying against indexed monitor data this is the field you will be aggregating with. It appears in the exported fields as `monitor.id`.
38
+
39
+
If you do not set an `id` explicitly, the monitor's config will be hashed and a generated value will be used. This value will change with any options change to this monitor making aggregations over time between changes impossible. For this reason, it's recommended that you set this manually.
40
+
====
41
+
42
+
////////////////////////
43
+
name
44
+
////////////////////////
45
+
| [[monitor-name]] *`name`*
46
+
(<<synthetics-lightweight-data-string,string>>)
47
+
a| Human readable name for this monitor.
48
+
49
+
*Examples*:
50
+
51
+
[source,yaml]
52
+
----
53
+
name: Uploader service
54
+
----
55
+
56
+
[source,yaml]
57
+
----
58
+
name: Example website
59
+
----
60
+
61
+
////////////////////////
62
+
service.name
63
+
////////////////////////
64
+
| [[monitor-service_name]] *`service.name`*
65
+
(<<synthetics-lightweight-data-string,string>>)
66
+
a| APM service name for this monitor. Corresponds to the `service.name` ECS field. Set this when monitoring an app that is also using APM to enable integrations between Synthetics and APM data in Kibana.
NOTE: Schedules with less than 1 minute resolution will be saved to the nearest minute. For example, `@every 5s` will be changed to `@every 60s` when the monitor is pushed using the CLI.
92
+
93
+
*Example*:
94
+
Run the task every 5 minutes from the time the monitor was started.
0 commit comments