Skip to content

Commit

Permalink
New parameter name rules
Browse files Browse the repository at this point in the history
  • Loading branch information
bjartwolf committed Nov 10, 2024
1 parent 953f1f4 commit da7604f
Show file tree
Hide file tree
Showing 12 changed files with 53 additions and 53 deletions.
8 changes: 4 additions & 4 deletions k6-tests/challenge11test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ import http from "k6/http";
import { Trend, Rate, Counter } from "k6/metrics";

export let TrendRTT = new Trend("RTT");
const myOkRate = new Rate("200 OK rate");
const myOkCounter = new Counter("200 OK count");
const myOkRate = new Rate("_200_OK_rate");
const myOkCounter = new Counter("_200_OK_count");

export let options = {
vus : 10,
duration : "10s",
rps : 200, //max requests per second, increase to go faster
insecureSkipTLSVerify : true, //ignore that localhost cert doesn't match host.docker.internal
thresholds: {
'200 OK rate': ['rate>0.8'],
'200 OK count': ['count>200'],
'_200_OK_rate': ['rate>0.8'],
'_200_OK_count': ['count>200'],
'http_req_duration': ['p(95)<100']
}
}
Expand Down
8 changes: 4 additions & 4 deletions k6-tests/challenge1test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ export let options = {
rps : 250, //max requests per second, increase to go faster
insecureSkipTLSVerify : true, //ignore that localhost cert doesn't match host.docker.internal
thresholds: {
'200 OK rate': ['rate>0.99'],
'200 OK count': ['count>1000'],
'_200_OK_rate': ['rate>0.99'],
'_200_OK_count': ['count>1000'],
'http_req_duration': ['p(95)<200']
}
}

export let TrendRTT = new Trend("RTT");
const myOkRate = new Rate("200 OK rate");
const myOkCounter = new Counter("200 OK count");
const myOkRate = new Rate("_200_OK_rate");
const myOkCounter = new Counter("_200_OK_count");

export default function() {
let response = http.get("http://localhost:5555/weatherforecast_challenge1");
Expand Down
8 changes: 4 additions & 4 deletions k6-tests/challenge2test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ export let options = {
rps : 500, //max requests per second, increase to go faster
insecureSkipTLSVerify : true, //ignore that localhost cert doesn't match host.docker.internal
thresholds: {
'200 OK rate': ['rate>0.85'],
'200 OK count': ['count>200'],
'_200_OK_rate': ['rate>0.85'],
'_200_OK_count': ['count>200'],
'http_req_duration': ['p(95)<200']
}
}

export let TrendRTT = new Trend("RTT");
const myOkRate = new Rate("200 OK rate");
const myOkCounter = new Counter("200 OK count");
const myOkRate = new Rate("_200_OK_rate");
const myOkCounter = new Counter("_200_OK_count");

export default function() {
let response = http.get("http://localhost:5555/weatherforecast_challenge2");
Expand Down
8 changes: 4 additions & 4 deletions k6-tests/challenge30test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ import http from "k6/http";
import { Trend, Rate, Counter } from "k6/metrics";

export let TrendRTT = new Trend("RTT");
const myOkRate = new Rate("200 OK rate");
const myOkCounter = new Counter("200 OK count");
const myOkRate = new Rate("_200_OK_rate");
const myOkCounter = new Counter("_200_OK_count");

export let options = {
vus : 10,
duration : "10s",
rps : 100000, //max requests per second, increase to go faster
insecureSkipTLSVerify : true, //ignore that localhost cert doesn't match host.docker.internal
thresholds: {
'200 OK rate': ['rate>0.99'],
'200 OK count': ['count>2000'],
'_200_OK_rate': ['rate>0.99'],
'_200_OK_count': ['count>2000'],
'http_req_duration': ['p(99)<1']
}
}
Expand Down
8 changes: 4 additions & 4 deletions k6-tests/challenge3test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ export let options = {
rps : 200, //max requests per second, increase to go faster
insecureSkipTLSVerify : true, //ignore that localhost cert doesn't match host.docker.internal
thresholds: {
'200 OK rate': ['rate>0.99'],
'200 OK count': ['count>200'],
'_200_OK_rate': ['rate>0.99'],
'_200_OK_count': ['count>200'],
'http_req_duration': ['p(95)<100']
}
}

export let TrendRTT = new Trend("RTT");
const myOkRate = new Rate("200 OK rate");
const myOkCounter = new Counter("200 OK count");
const myOkRate = new Rate("_200_OK_rate");
const myOkCounter = new Counter("_200_OK_count");

export default function() {
let response = http.get("http://localhost:5555/weatherforecast_challenge3");
Expand Down
8 changes: 4 additions & 4 deletions k6-tests/challenge4test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ export let options = {
rps : 200, //max requests per second, increase to go faster
insecureSkipTLSVerify : true, //ignore that localhost cert doesn't match host.docker.internal
thresholds: {
'200 OK rate': ['rate>0.999'],
'200 OK count': ['count>200'],
'_200_OK_rate': ['rate>0.999'],
'_200_OK_count': ['count>200'],
'http_req_duration': ['p(95)<200']
}
}

export let TrendRTT = new Trend("RTT");
const myOkRate = new Rate("200 OK rate");
const myOkCounter = new Counter("200 OK count");
const myOkRate = new Rate("_200_OK_rate");
const myOkCounter = new Counter("_200_OK_count");

export default function() {
let response = http.get("http://localhost:5555/weatherforecast_challenge4");
Expand Down
8 changes: 4 additions & 4 deletions k6-tests/challenge5test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ export let options = {
rps : 200, //max requests per second, increase to go faster
insecureSkipTLSVerify : true, //ignore that localhost cert doesn't match host.docker.internal
thresholds: {
'200 OK rate': ['rate>0.5'],
'200 OK count': ['count>200'],
'_200_OK_rate': ['rate>0.5'],
'_200_OK_count': ['count>200'],
'http_req_duration': ['p(95)<100']
}
}

const myOkRate = new Rate("200 OK rate");
const myOkCounter = new Counter("200 OK count");
const myOkRate = new Rate("_200_OK_rate");
const myOkCounter = new Counter("_200_OK_count");

export default function() {
let response = http.get("http://localhost:5000/weatherforecast_challenge5");
Expand Down
8 changes: 4 additions & 4 deletions k6-tests/challenge6test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ export let options = {
rps : 200, //max requests per second, increase to go faster
insecureSkipTLSVerify : true, //ignore that localhost cert doesn't match host.docker.internal
thresholds: {
'200 OK rate': ['rate>0.5'],
'200 OK count': ['count>200'],
'_200_OK_rate': ['rate>0.5'],
'_200_OK_count': ['count>200'],
'http_req_duration': ['p(95)<100']
}
}

const myOkRate = new Rate("200 OK rate");
const myOkCounter = new Counter("200 OK count");
const myOkRate = new Rate("_200_OK_rate");
const myOkCounter = new Counter("_200_OK_count");

export default function() {
let response = http.get("http://localhost:5000/weatherforecast_challenge6");
Expand Down
8 changes: 4 additions & 4 deletions k6-tests/challenge7test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ export let options = {
rps : 200, //max requests per second, increase to go faster
insecureSkipTLSVerify : true, //ignore that localhost cert doesn't match host.docker.internal
thresholds: {
'200 OK rate': ['rate>0.99'],
'200 OK count': ['count>200'],
'_200_OK_rate': ['rate>0.99'],
'_200_OK_count': ['count>200'],
'http_req_duration': ['p(95)<100']
}
}

const myOkRate = new Rate("200 OK rate");
const myOkCounter = new Counter("200 OK count");
const myOkRate = new Rate("_200_OK_rate");
const myOkCounter = new Counter("_200_OK_count");

export default function() {
let response = http.get("http://localhost:5000/weatherforecast_challenge7");
Expand Down
8 changes: 4 additions & 4 deletions k6-tests/challenge8test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ export let options = {
rps : 200, //max requests per second, increase to go faster
insecureSkipTLSVerify : true, //ignore that localhost cert doesn't match host.docker.internal
thresholds: {
'200 OK rate': ['rate>0.99'],
'200 OK count': ['count>200'],
'_200_OK_rate': ['rate>0.99'],
'_200_OK_count': ['count>200'],
'http_req_duration': ['p(95)<2000'],
'http_req_duration': ['p(70)<200']
}
}

export let TrendRTT = new Trend("RTT");
const myOkRate = new Rate("200 OK rate");
const myOkCounter = new Counter("200 OK count");
const myOkRate = new Rate("_200_OK_rate");
const myOkCounter = new Counter("_200_OK_count");

export default function() {
let url = "http://localhost:5000/weatherforecast_challenge8";
Expand Down
8 changes: 4 additions & 4 deletions k6-tests/challengeintrotest.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ export let options = {
discardResponseBodies: true,
insecureSkipTLSVerify : true, //ignore that localhost cert doesn't match host.docker.internal
thresholds: {
'200 OK rate': ['rate>0.99'],
'_200_OK_rate': ['rate>0.99'],
'http_req_duration': ['p(95)<1000'],
"200 OK count": ["count>200"]
"_200_OK_count": ["count>200"]
}
}

const myOkRate = new Rate("200 OK rate");
const myOkCounter = new Counter("200 OK count");
const myOkRate = new Rate("_200_OK_rate");
const myOkCounter = new Counter("_200_OK_count");

export default function() {
let response = http.get("http://localhost:5555/weatherforecast_intro");
Expand Down
18 changes: 9 additions & 9 deletions scripts/create-dashboard.sh

Large diffs are not rendered by default.

0 comments on commit da7604f

Please sign in to comment.