-
Notifications
You must be signed in to change notification settings - Fork 175
[synthetics] Add lightweight monitor configuration options #2729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 10 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
b7176e8
copy-paste from beats
colleenmcginnis 690f4f5
add data types
colleenmcginnis abfda7b
format and edit common options
colleenmcginnis 7aeb621
fix links
colleenmcginnis 9d55cc5
update structure
colleenmcginnis 67faf06
clean up
colleenmcginnis 7542e6b
add links
colleenmcginnis 24f8f28
catch up to main
colleenmcginnis aa7d91c
address feedback from @andrewvc
colleenmcginnis cfaf9de
address remaining feedback, clean up
colleenmcginnis 8c378eb
fix tiny typo
colleenmcginnis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
140 changes: 140 additions & 0 deletions
140
docs/en/observability/synthetics-reference/lightweight-config/common.asciidoc
This file contains hidden or 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,140 @@ | ||
:hardbreaks-option: | ||
|
||
[%header] | ||
|=== | ||
| Option (type) | Description | ||
|
||
// type | ||
| [[monitor-type]] *`type`* | ||
(`"http"` \| `"icmp"` \| `"tcp"`) | ||
a| *Required*. The type of monitor to run. One of: | ||
|
||
* `http`: Connects via HTTP and optionally verifies that the host returns the expected response. | ||
* `icmp`: Uses an ICMP (v4 and v6) Echo Request to ping the configured hosts. Requires special permissions or root access. | ||
* `tcp`: Connects via TCP and optionally verifies the endpoint by sending and/or receiving a custom payload. | ||
|
||
//////////////////////// | ||
id | ||
//////////////////////// | ||
| [[monitor-id]] *`id`* | ||
(<<synthetics-lightweight-data-string,string>>) | ||
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. | ||
|
||
*Examples*: | ||
|
||
[source,yaml] | ||
---- | ||
id: uploader-service | ||
---- | ||
|
||
[source,yaml] | ||
---- | ||
id: http://example.net | ||
---- | ||
|
||
[NOTE] | ||
==== | ||
When querying against indexed monitor data this is the field you will be aggregating with. It appears in the exported fields as `monitor.id`. | ||
|
||
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. | ||
==== | ||
|
||
//////////////////////// | ||
name | ||
//////////////////////// | ||
| [[monitor-name]] *`name`* | ||
(<<synthetics-lightweight-data-string,string>>) | ||
a| Human readable name for this monitor. | ||
|
||
*Examples*: | ||
|
||
[source,yaml] | ||
---- | ||
name: Uploader service | ||
---- | ||
|
||
[source,yaml] | ||
---- | ||
name: Example website | ||
---- | ||
|
||
//////////////////////// | ||
service.name | ||
//////////////////////// | ||
| [[monitor-service_name]] *`service.name`* | ||
(<<synthetics-lightweight-data-string,string>>) | ||
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. | ||
|
||
//////////////////////// | ||
enabled | ||
//////////////////////// | ||
| [[monitor-enabled]] *`enabled`* | ||
(<<synthetics-lightweight-data-bool,boolean>>) | ||
a| Whether the module is enabled. | ||
|
||
*Default*: `true` | ||
|
||
*Example*: | ||
|
||
[source,yaml] | ||
---- | ||
enabled: false | ||
---- | ||
|
||
//////////////////////// | ||
schedule | ||
//////////////////////// | ||
| [[monitor-schedule]] *`schedule`* | ||
(<<synthetics-lightweight-data-duration,duration>>) | ||
a| *Required*. The task schedule. | ||
|
||
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. | ||
|
||
*Example*: | ||
Run the task every 5 minutes from the time the monitor was started. | ||
|
||
[source,yaml] | ||
---- | ||
schedule: @every 5m | ||
---- | ||
|
||
//////////////////////// | ||
timeout | ||
//////////////////////// | ||
| [[monitor-timeout]] *`timeout`* | ||
(<<synthetics-lightweight-data-duration,duration>>) | ||
a| The total running time for each ping test. This is the total time allowed for testing the connection and exchanging data. | ||
|
||
*Default*: `16s` | ||
|
||
*Example*: | ||
|
||
[source,yaml] | ||
---- | ||
timeout: 2m | ||
---- | ||
|
||
//////////////////////// | ||
tags | ||
//////////////////////// | ||
| [[monitor-tags]] *`tags`* | ||
(list of <<synthetics-lightweight-data-string,string>>s) | ||
a| A list of tags that will be sent with the monitor event. | ||
|
||
*Examples*: | ||
|
||
[source,yaml] | ||
---- | ||
tags: | ||
- tag one | ||
- tag two | ||
---- | ||
|
||
[source,yaml] | ||
---- | ||
tags: ["tag one", "tag two"] | ||
---- | ||
|
||
|=== | ||
|
||
:!hardbreaks-option: |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: module -> monitor