Skip to content

Commit

Permalink
[Heartbeat] Disable default monitor from heartbeat.yml for agent comp…
Browse files Browse the repository at this point in the history
…at (#25592) (#25598)

Agent will use the default config files, this is a problem as fleet
users will have an unwanted "My Monitor" monitor. To solve this we
disable this monitor by default now.

(cherry picked from commit e2bfa10)

Co-authored-by: Andrew Cholakian <andrew@andrewvc.com>
  • Loading branch information
mergify[bot] and andrewvc committed May 11, 2021
1 parent 0bf49ee commit a7449c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions heartbeat/_meta/config/beat.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ heartbeat.config.monitors:
# Configure monitors inline
heartbeat.monitors:
- type: http
# Set enabled to true (or delete the following line) to enable this example monitor
enabled: false
# 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
Expand Down
2 changes: 2 additions & 0 deletions heartbeat/heartbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ heartbeat.config.monitors:
# Configure monitors inline
heartbeat.monitors:
- type: http
# Set enabled to true (or delete the following line) to enable this example monitor
enabled: false
# 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
Expand Down
2 changes: 2 additions & 0 deletions x-pack/heartbeat/heartbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ heartbeat.config.monitors:
# Configure monitors inline
heartbeat.monitors:
- type: http
# Set enabled to true (or delete the following line) to enable this example monitor
enabled: false
# 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
Expand Down

0 comments on commit a7449c8

Please sign in to comment.