forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add monitors.d directory + config to default configuration (elastic#9004
) (elastic#9757) This makes heartbeat much easier to use by default, and less confusing in terms of where/how to create this directory. (cherry picked from commit 2e92a04)
- Loading branch information
Showing
13 changed files
with
360 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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,91 @@ | ||
# These files contain a list of monitor configurations identical | ||
# to the heartbeat.monitors section in heartbeat.yml | ||
# The .example extension on this file must be removed for it to | ||
# be loaded. | ||
|
||
- type: http # monitor type `http`. Connect via HTTP an optionally verify response | ||
|
||
# Monitor name used for job name and document type | ||
#name: http | ||
|
||
# Enable/Disable monitor | ||
#enabled: true | ||
|
||
# Configure task schedule | ||
schedule: '@every 5s' # every 5 seconds from start of beat | ||
|
||
# Configure URLs to ping | ||
urls: ["http://localhost:9200"] | ||
|
||
# Configure IP protocol types to ping on if hostnames are configured. | ||
# Ping all resolvable IPs if `mode` is `all`, or only one IP if `mode` is `any`. | ||
ipv4: true | ||
ipv6: true | ||
mode: any | ||
|
||
# Configure file json file to be watched for changes to the monitor: | ||
#watch.poll_file: | ||
# Path to check for updates. | ||
#path: | ||
|
||
# Interval between file file changed checks. | ||
#interval: 5s | ||
|
||
# Optional HTTP proxy url. | ||
#proxy_url: '' | ||
|
||
# Total test connection and data exchange timeout | ||
#timeout: 16s | ||
|
||
# Optional Authentication Credentials | ||
#username: '' | ||
#password: '' | ||
|
||
# TLS/SSL connection settings for use with HTTPS endpoint. If not configured | ||
# system defaults will be used. | ||
#ssl: | ||
# Certificate Authorities | ||
#certificate_authorities: [''] | ||
|
||
# Required TLS protocols | ||
#supported_protocols: ["TLSv1.0", "TLSv1.1", "TLSv1.2"] | ||
|
||
# Request settings: | ||
#check.request: | ||
# Configure HTTP method to use. Only 'HEAD', 'GET' and 'POST' methods are allowed. | ||
#method: "GET" | ||
|
||
# Dictionary of additional HTTP headers to send: | ||
#headers: | ||
|
||
# Optional request body content | ||
#body: | ||
|
||
# Expected response settings | ||
#check.response: | ||
# Expected status code. If not configured or set to 0 any status code not | ||
# being 404 is accepted. | ||
#status: 0 | ||
|
||
# Required response headers. | ||
#headers: | ||
|
||
# Required response contents. | ||
#body: | ||
|
||
# Parses the body as JSON, then checks against the given condition expression | ||
#json: | ||
#- description: Explanation of what the check does | ||
# condition: | ||
# equals: | ||
# myField: expectedValue | ||
|
||
|
||
# NOTE: THIS FEATURE IS DEPRECATED AND WILL BE REMOVED IN A FUTURE RELEASE | ||
# Configure file json file to be watched for changes to the monitor: | ||
#watch.poll_file: | ||
# Path to check for updates. | ||
#path: | ||
|
||
# Interval between file file changed checks. | ||
#interval: 5s |
Oops, something went wrong.