https://github.com/grokify/broken-website
Test website to generate various errors for testing purposes.
https://github.com/grokify/broken-website
Last synced: 3 months ago
JSON representation
Test website to generate various errors for testing purposes.
- Host: GitHub
- URL: https://github.com/grokify/broken-website
- Owner: grokify
- License: mit
- Created: 2016-11-19T23:11:39.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-22T04:22:34.000Z (over 8 years ago)
- Last Synced: 2024-10-12T00:48:47.033Z (9 months ago)
- Language: HTML
- Homepage:
- Size: 206 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Broken Website
==============This is an example broken website to use for testing purposes.
It currently generates the following conditions:
* High latency / low Apdex web pages
* Error web pagesIt currently includes built-in New Relic Browser monitoring support.
## Prerequisites
## New Relic
### App Id and License Key
To use this app with New Relic, you need to configure it with your New Relic Browser app `licenseKey` and `applicationId`. These two values can be retrieved from the JavaScript in `Application settings` > `Settings`. You should not use the license key in the `Account Settings` page as it is different than the one provided in the embeddable JavaScript.
### App Tier
Choose the New Relic Browser app tier you wish to use. This is under `Applications settings` > `Settings` where you select the JavaScript you wish to use. Setting the `NEWRELIC_BROWSER_TIER` environment variable to either `pro` or `tier` will select the right JavaScript to load. The `lite` tier is used by default.
### Apdex T-value
To test New Relic alerts, you can use the latency generator with the Apdex T value setting in New Relic. You can set this to a low value for testing, e.g. 1 second, and then generate requests >= 5 seconds to trigger test alerts. This is set in `Settings` > `Application Settings`.
## Installation
### Heroku Installation
[](https://heroku.com/deploy)
### Local Installation
```bash
$ git clone https://github.com/grokify/broken-website
$ cd broken-website
$ bundle
$ NEWRELIC_LICENSE_KEY= NEWRELIC_APP_ID= ruby app.rb
```To use the `pro` tier, add the `NEWRELIC_BROWSER_TIER` environment variable.
## Latency Testing
### Apdex levels
Apdex tracks three response counts:
* Satisfied: The response time is less than or equal to T.
* Tolerating: The response time is greater than T and less than or equal to 4T. In this example, 4 x 1.2 = 4.8 seconds as the maximum tolerable response time.
* Frustrated: The response time is greater than 4T.
The Time calculation will change based on your own app's T setting. In the following example, T = 1.2 seconds.| Level | Multiplier | Time (T Example = 1.2) |
|-------|------------|------------------------|
| Satisfied | T or less | <= 1.2 seconds |
| Tolerated | >T, <= 4T | Between 1.2 and 4.8 seconds |
| Frustrated | > 4T | Greater than 4.8 seconds |## Links
Apdex
* https://en.wikipedia.org/wiki/Apdex
New Relic Alert Policy API docs
* https://docs.newrelic.com/docs/alerts/alert-policies/rest-api-alert-policies/maintain-apps-servers-alert-policies-v2