Skip to content
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

Cherry-pick #21436 to 7.x: Initial work toward synthetic monitors #23224

Merged
merged 6 commits into from
Jan 29, 2021

Conversation

andrewvc
Copy link
Contributor

@andrewvc andrewvc commented Dec 21, 2020

Cherry-pick of PR #21436 to 7.x branch. Original message:

Initial, experimental version of synthetic monitor support for Heartbeat. This works in concert with https://github.com/elastic/synthetics , and is intended to only be run within the docker container built in the synthetics repo. This is guarded by the new ELASTIC_SYNTHETICS_CAPABLE env variable which must be set to true. As a note, this is easy to bypass because the main purpose is to make it clear that we do not support synthetics outside of the docker container for now.

This includes a new directory, sample-synthetics-config in the x-pack directory that demonstrates using heartbeat with synthetics. In the future

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

How to test this PR locally

You can check that this PR works by running (in the x-pack/heartbeat directory):
mage build && env ELASTIC_SYNTHETICS_CAPABLE=true ./heartbeat --path.config sample-synthetics-config/ -e

Initial, experimental version of synthetic monitor support for Heartbeat. This works in concert with https://github.com/elastic/synthetics , and is intended to only be run within the docker container built in the synthetics repo. This is guarded by the new ELASTIC_SYNTHETICS_CAPABLE env variable which must be set to true. As a note, this is easy to bypass because the main purpose is to make it clear that we do not support synthetics outside of the docker container for now.

This includes a new directory, sample-synthetics-config in the x-pack directory that demonstrates using heartbeat with synthetics.

Since we still only want people to run this in the docker image, we guard against accidental use outside of that by checking for the env var ELASTIC_SYNTHETICS_CAPABLE, which we only set in that image (yes, this is easy to circumvent, but we want users to realize they are circumventing something before they do so)

(cherry picked from commit e50f673)
@andrewvc andrewvc requested a review from a team as a code owner December 21, 2020 14:32
@andrewvc andrewvc added [zube]: In Review backport Team:Automation Label for the Observability productivity team Team:obs-ds-hosted-services Label for the Observability Hosted Services team labels Dec 21, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/uptime (Team:Uptime)

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Dec 21, 2020
@andrewvc andrewvc requested a review from blakerouse December 21, 2020 14:33
@elasticmachine
Copy link
Collaborator

elasticmachine commented Dec 21, 2020

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: andrewvc commented: /test

    • Start Time: 2021-01-29T13:19:34.435+0000
  • Duration: 95 min 43 sec

  • Commit: ac36356

Test stats 🧪

Test Results
Failed 0
Passed 44376
Skipped 4769
Total 49145

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 44376
Skipped 4769
Total 49145

@botelastic
Copy link

botelastic bot commented Jan 21, 2021

Hi!
We just realized that we haven't looked into this PR in a while. We're sorry!

We're labeling this issue as Stale to make it hit our filters and make sure we get back to it in as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1.
Thank you for your contribution!

@botelastic botelastic bot added the Stalled label Jan 21, 2021
@botelastic botelastic bot removed the Stalled label Jan 28, 2021
@andrewvc andrewvc self-assigned this Jan 29, 2021
@andrewvc
Copy link
Contributor Author

/test

@andrewvc andrewvc merged commit e32f6ca into elastic:7.x Jan 29, 2021
@andrewvc andrewvc deleted the backport_21436_7.x branch January 29, 2021 16:30
@zube zube bot removed the [zube]: Done label Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:Automation Label for the Observability productivity team Team:obs-ds-hosted-services Label for the Observability Hosted Services team v7.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants