UNPKG

@elastic/synthetics

Version:

Elastic synthetic monitoring agent

22 lines (14 loc) 1.32 kB
## Get started with Elastic Synthetics! Browse the directory structure here to see an example skeleton of an [Elastic Synthetics](https://www.elastic.co/observability/synthetic-monitoring) project. Make sure to [read the docs](https://www.elastic.co/guide/en/observability/current/monitor-uptime-synthetics.html) as well if you're unfamiliar with Elastic Synthetics. This directory was created with the command `npx @elastic/synthetics <target-directory>`, with `<target-directory>` being the name of the directory you'd like it to make. You can always use this command to scafold new Synthetics projects. Key places to look: - The `synthetics.config.ts` file contains configuration for your project. - The `journeys` directory contains both basic and more advanced examples of using synthetics. It tests a publicly hosted [Todos List](https://elastic.github.io/synthetics-demo/). - The `.github` directory contains an example github action, demonstrating the use of a CI service for automatically running tests on merges and PR creation. To run the tests locally, use the following command: ```bash npm run test ``` Curious to learn more? [Read the docs](https://www.elastic.co/guide/en/observability/current/monitor-uptime-synthetics.html) to learn about pushing configurations to an Elastic cloud stack and more.