Get support for tideways/bref-tideways-example

If you're new to LTH, please see our FAQ for more information on what it is we do.

Support Options

Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:

View Open Issues

Take a look to see if anyone else has experienced the same issue as you and if they managed to solve it.

Open an Issue

Make sure to read any relevant guidelines for opening issues on this repo before posting a new issue.

Sponsor directly

Check out the page and see if there are any options to sponsor this project or it's developers directly.

tideways/bref-tideways-example

Tideways example

This is an example PHP application with Tideways set up.

Read the documentation at bref.sh/docs/monitoring.html#tideways.

This example deploys:

  • a simple example PHP application (index.php)
  • a VPC (virtual private network) using the serverless-vpc-plugin
  • an EC2 instance (Tideways daemon) inside the VPC via embedded CloudFormation code

all that from serverless.yml. That makes serverless.yml a bit verbose, but everything is deployed at once, automatically configured.

You don't have to deploy the VPC and the EC2 from serverless.yml. You can also create them manually via the AWS console if you prefer (for example to reuse them between environments or projects). Check out the documentation at bref.sh/docs/monitoring.html#tideways to learn more.

Deployment

Clone this project and install Composer and NPM dependencies:

composer install
npm install

Edit serverless.yml to set your TIDEWAYS_APIKEY (or set it as an environment variable on your machine).

If you wish to deploy to a different region than the one set in serverless.yml, update the provider.region field as well as the ImageId field in the TidewaysDaemon section: you can find out the AMI ID (aka image ID) for your preferred region on this page.

Then, deploy the application:

serverless deploy

The URL of the deployed application will be displayed in the terminal. Open the URL and wait a few minutes until the metrics show up at app.tideways.io.

Our Mission

We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.

Interesting Articles

Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated

p-e622a1a2