Skip to content
This repository was archived by the owner on Mar 24, 2023. It is now read-only.

Commit 8ad6348

Browse files
committed
Update defaults and add comments to config
1 parent 60d8f46 commit 8ad6348

File tree

7 files changed

+141
-100
lines changed

7 files changed

+141
-100
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
.jekyll-metadata
33
_site/
44
node_modules/*
5+
npm-debug.log
56
results/*/*

Gemfile

-24
This file was deleted.

Gemfile.lock

-42
This file was deleted.

_profiles/css-tricks-cable.html

-21
This file was deleted.

_profiles/default.html

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
#
3+
# The human-friendly name of the profile. Whenever you're asked for the profile
4+
# ID, it refers to the name of the profile file — in this case, "default".
5+
#
6+
name: 'My website'
7+
8+
#
9+
# The default profile will be the one shown when accessing the root URL of your
10+
# SpeedTracker site.
11+
#
12+
default: true
13+
14+
#
15+
# If you want tests to be repeated automatically, you can an interval (in hours)
16+
# with a minimum value of 12, as only two scheduled tests per day are allowed.
17+
# To disabled repeated tests, simply remove this property from the profile.
18+
#
19+
interval: 12
20+
21+
#
22+
# WebPageTest test parameters
23+
#
24+
parameters:
25+
connectivity: 'Cable'
26+
location: 'Dulles:Chrome'
27+
firstViewOnly: true
28+
runs: 1
29+
url: "https://my-website.com"
30+
video: true
31+
32+
#
33+
# Performance budgets are defined with a metric id, a max/min allowed value
34+
# (in milliseconds), and one or multiple alerts — referenced by the ids defined
35+
# in the main config — to be triggered when a budget is overrun.
36+
#
37+
# For a list of metrics, check:
38+
#
39+
# https://github.com/speedtracker/speedtracker-api/blob/master/lib/SpeedTracker.js#L18-L37
40+
#
41+
budgets:
42+
-
43+
metric: TTFB
44+
max: 600
45+
alerts: ['emailAlert', 'slackAlert']
46+
-
47+
metric: firstPaint
48+
max: 2000
49+
alerts: ['slackAlert']
50+
---

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"webpack-dev-server": "^1.14.1"
2020
},
2121
"dependencies": {
22-
"@dadi/parts": "github:dadi/parts",
2322
"chart.js": "^2.2.2",
2423
"es6-promise": "^3.3.1",
2524
"object-path": "^0.11.2",

speedtracker.yml

+90-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,94 @@
1-
url: "YOUR_URL"
1+
#
2+
# ____ ________ __
3+
# / __/__ ___ ___ ___/ /_ __/______ _____/ /_____ ____
4+
# _\ \/ _ \/ -_) -_) _ / / / / __/ _ `/ __/ '_/ -_) __/
5+
# ___/ .__/\__/\__/\_,_/ /_/ /_/ \_,_/\__/_/\_\\__/_/
6+
# /_/
7+
# https://speedtracker.org
8+
#
29

3-
encryptionKey: "YOUR_ENCRYPTION_KEY
10+
11+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
12+
# #
13+
# > url #
14+
# #
15+
# The full URL to your SpeedTracker website. For most people, this will be #
16+
# something like "https://yourusername.github.io/speedtracker", unless you #
17+
# want to use a custom domain. #
18+
# #
19+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
20+
21+
url: "https://yourusername.github.io/speedtracker"
22+
23+
24+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
25+
# #
26+
# (!) PLEASE NOTE: #
27+
# #
28+
# This config file will be visible to the public eye, unless you're running #
29+
# a private repository. For this reason, we need to obfuscate any sensitive #
30+
# information. #
31+
# #
32+
# Think of a key/password to encrypt your data. You'll need to supply this #
33+
# key with every request you make to SpeedTracker. #
34+
# #
35+
# The encrypt tool (https://speedtracker.org) allows you to encrypt any #
36+
# given text with a key of your choice. Read on. #
37+
# #
38+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
39+
40+
41+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
42+
# #
43+
# > encryptionKey #
44+
# #
45+
# Open the encrypt tool (https://speedtracker.org) and insert your key on #
46+
# the first input field. Leave the "What do you want to encrypt?" field #
47+
# blank and use the result on the encryptionKey field. #
48+
# #
49+
# e.g. The key "foobar123" will generate "0a5f0c0670219dc049" #
50+
# #
51+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
52+
53+
encryptionKey: "0a5f0c0670219dc049"
54+
55+
56+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
57+
# #
58+
# > wptKey #
59+
# #
60+
# Open the encrypt tool (https://speedtracker.org), insert your key on the #
61+
# first input field (e.g. foobar123) and your WebPageTest API key as the #
62+
# text to encrypt. Use the result on the wptKey field. #
63+
# #
64+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
465

566
wptKey: "YOUR_WEBPAGETEST_KEY"
667

7-
alerts:
8-
mainAlert:
9-
type: "email"
10-
recipients: ["ENCRYPTED_EMAIL_ADDRESS"]
11-
slackAlert:
12-
type: "slack"
13-
hookUrl: "ENCRYPTED_SLACK_HOOK_URL"
14-
channel: "#speedtracker"
15-
username: "SpeedTracker"
16-
iconEmoji: ":grimacing:"
68+
69+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
70+
# #
71+
# > alerts #
72+
# #
73+
# You can define alerts to be triggered when certain events occur (like a #
74+
# metric going over its specified budget). An alert is defined by an id #
75+
# (e.g. emailAlert) and depending on the type (email or slack) it accepts #
76+
# different parameters. #
77+
# #
78+
# Check https://speedtracker.org/docs#alerts for more information. #
79+
# #
80+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
81+
82+
#alerts:
83+
# emailAlert:
84+
# type: "email"
85+
# recipients: ["ENCRYPTED_EMAIL_ADDRESS"]
86+
# otherEmailAlert:
87+
# type: "email"
88+
# recipients: ["ENCRYPTED_EMAIL_ADDRESS2", "ENCRYPTED_EMAIL_ADDRESS3"]
89+
# slackAlert:
90+
# type: "slack"
91+
# hookUrl: "ENCRYPTED_SLACK_HOOK_URL"
92+
# channel: "#speedtracker"
93+
# username: "SpeedTracker"
94+
# iconEmoji: ":grimacing:"

0 commit comments

Comments
 (0)