diff --git a/heartbeat/_meta/beat.reference.yml b/heartbeat/_meta/beat.reference.yml index bd59aedd2204..e84bd9e99c40 100644 --- a/heartbeat/_meta/beat.reference.yml +++ b/heartbeat/_meta/beat.reference.yml @@ -25,8 +25,11 @@ heartbeat.monitors: - type: icmp # monitor type `icmp` (requires root) uses ICMP Echo Request to ping # configured hosts - # Monitor name used for job name and document type. - #name: icmp + # ID used to uniquely identify this monitor in elasticsearch even if the config changes + id: my-monitor + + # Human readable display name for this service in Uptime UI and elsewhere + name: my-icmp-monitor # Enable/Disable monitor #enabled: true @@ -89,9 +92,11 @@ heartbeat.monitors: - type: tcp # monitor type `tcp`. Connect via TCP and optionally verify endpoint # by sending/receiving a custom payload + # ID used to uniquely identify this monitor in elasticsearch even if the config changes + id: my-monitor - # Monitor name used for job name and document type - #name: tcp + # Human readable display name for this service in Uptime UI and elsewhere + name: my-tcp-monitor # Enable/Disable monitor #enabled: true @@ -165,9 +170,11 @@ heartbeat.monitors: #keep_null: false - type: http # monitor type `http`. Connect via HTTP an optionally verify response + # ID used to uniquely identify this monitor in elasticsearch even if the config changes + id: my-http-monitor - # Monitor name used for job name and document type - #name: http + # Human readable display name for this service in Uptime UI and elsewhere + name: My Monitor # Enable/Disable monitor #enabled: true diff --git a/heartbeat/_meta/beat.yml b/heartbeat/_meta/beat.yml index 0e30f34f2396..5459f28f9890 100644 --- a/heartbeat/_meta/beat.yml +++ b/heartbeat/_meta/beat.yml @@ -22,13 +22,14 @@ heartbeat.config.monitors: # Configure monitors inline heartbeat.monitors: - type: http - + # ID used to uniquely identify this monitor in elasticsearch even if the config changes + id: my-monitor + # Human readable display name for this service in Uptime UI and elsewhere + name: My Monitor # List or urls to query urls: ["http://localhost:9200"] - # Configure task schedule schedule: '@every 10s' - # Total test connection and data exchange timeout #timeout: 16s diff --git a/heartbeat/heartbeat.reference.yml b/heartbeat/heartbeat.reference.yml index a4ec3030dd6e..89baae615182 100644 --- a/heartbeat/heartbeat.reference.yml +++ b/heartbeat/heartbeat.reference.yml @@ -25,8 +25,11 @@ heartbeat.monitors: - type: icmp # monitor type `icmp` (requires root) uses ICMP Echo Request to ping # configured hosts - # Monitor name used for job name and document type. - #name: icmp + # ID used to uniquely identify this monitor in elasticsearch even if the config changes + id: my-monitor + + # Human readable display name for this service in Uptime UI and elsewhere + name: my-icmp-monitor # Enable/Disable monitor #enabled: true @@ -89,9 +92,11 @@ heartbeat.monitors: - type: tcp # monitor type `tcp`. Connect via TCP and optionally verify endpoint # by sending/receiving a custom payload + # ID used to uniquely identify this monitor in elasticsearch even if the config changes + id: my-monitor - # Monitor name used for job name and document type - #name: tcp + # Human readable display name for this service in Uptime UI and elsewhere + name: my-tcp-monitor # Enable/Disable monitor #enabled: true @@ -165,9 +170,11 @@ heartbeat.monitors: #keep_null: false - type: http # monitor type `http`. Connect via HTTP an optionally verify response + # ID used to uniquely identify this monitor in elasticsearch even if the config changes + id: my-http-monitor - # Monitor name used for job name and document type - #name: http + # Human readable display name for this service in Uptime UI and elsewhere + name: My Monitor # Enable/Disable monitor #enabled: true diff --git a/heartbeat/heartbeat.yml b/heartbeat/heartbeat.yml index c64fcd0bcade..aa3e1283f70f 100644 --- a/heartbeat/heartbeat.yml +++ b/heartbeat/heartbeat.yml @@ -22,13 +22,14 @@ heartbeat.config.monitors: # Configure monitors inline heartbeat.monitors: - type: http - + # ID used to uniquely identify this monitor in elasticsearch even if the config changes + id: my-monitor + # Human readable display name for this service in Uptime UI and elsewhere + name: My Monitor # List or urls to query urls: ["http://localhost:9200"] - # Configure task schedule schedule: '@every 10s' - # Total test connection and data exchange timeout #timeout: 16s @@ -121,13 +122,12 @@ output.elasticsearch: processors: - add_observer_metadata: - # Optional, but recommended geo settings for the location Heartbeat is running in - #geo: - # Token describing this location - #name: us-east-1a - - # Lat, Lon " - #location: "37.926868, -78.024902" + # Optional, but recommended geo settings for the location Heartbeat is running in + #geo: + # Token describing this location + #name: us-east-1a + # Lat, Lon " + #location: "37.926868, -78.024902" #================================ Logging ===================================== diff --git a/heartbeat/monitors.d/sample.http.yml.disabled b/heartbeat/monitors.d/sample.http.yml.disabled index e5c44c1e263b..10e4c17de7bb 100644 --- a/heartbeat/monitors.d/sample.http.yml.disabled +++ b/heartbeat/monitors.d/sample.http.yml.disabled @@ -4,9 +4,11 @@ # be loaded. - type: http # monitor type `http`. Connect via HTTP an optionally verify response + # ID used to uniquely identify this monitor in elasticsearch even if the config changes + id: my-http-monitor - # Monitor name used for job name and document type - #name: http + # Human readable display name for this service in Uptime UI and elsewhere + name: My HTTP Monitor # Enable/Disable monitor #enabled: true diff --git a/heartbeat/monitors.d/sample.icmp.yml.disabled b/heartbeat/monitors.d/sample.icmp.yml.disabled index 0cae71d9de5b..372c17beb071 100644 --- a/heartbeat/monitors.d/sample.icmp.yml.disabled +++ b/heartbeat/monitors.d/sample.icmp.yml.disabled @@ -4,16 +4,17 @@ # be loaded. - type: icmp # monitor type `icmp` (requires root) uses ICMP Echo Request to ping - # configured hosts + # ID used to uniquely identify this monitor in elasticsearch even if the config changes + id: my-icmp-monitor - # Monitor name used for job name and document type. - #name: icmp + # Human readable display name for this service in Uptime UI and elsewhere + name: My ICMP Monitor # Enable/Disable monitor #enabled: true # Configure task schedule using cron-like syntax - schedule: '*/5 * * * * * *' # exactly every 5 seconds like 10:00:00, 10:00:05, ... + schedule: '@every 5s' # every 5 seconds from start of beat # List of hosts to ping hosts: ["localhost"] diff --git a/heartbeat/monitors.d/sample.tcp.yml.disabled b/heartbeat/monitors.d/sample.tcp.yml.disabled index cf4ba84abe23..c6f98be07997 100644 --- a/heartbeat/monitors.d/sample.tcp.yml.disabled +++ b/heartbeat/monitors.d/sample.tcp.yml.disabled @@ -6,6 +6,12 @@ - type: tcp # monitor type `tcp`. Connect via TCP and optionally verify endpoint # by sending/receiving a custom payload + # ID used to uniquely identify this monitor in elasticsearch even if the config changes + id: my-tcp-monitor + + # Human readable display name for this service in Uptime UI and elsewhere + name: My TCP monitor + # Monitor name used for job name and document type #name: tcp diff --git a/libbeat/_meta/config.yml.tmpl b/libbeat/_meta/config.yml.tmpl index 6278ae44a2ba..2d5e510e33f9 100644 --- a/libbeat/_meta/config.yml.tmpl +++ b/libbeat/_meta/config.yml.tmpl @@ -106,13 +106,12 @@ processors: {{else}} processors: - add_observer_metadata: - # Optional, but recommended geo settings for the location {{ .BeatName | title }} is running in - #geo: - # Token describing this location - #name: us-east-1a - - # Lat, Lon " - #location: "37.926868, -78.024902" + # Optional, but recommended geo settings for the location {{ .BeatName | title }} is running in + #geo: + # Token describing this location + #name: us-east-1a + # Lat, Lon " + #location: "37.926868, -78.024902" {{end}} #================================ Logging =====================================