-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add use cases for quantile type. Add vegteta endpoint for parsing * add properties for success and test execution count * Remove logging * add changesets for next release * wip
- Loading branch information
1 parent
f7a946e
commit b5cc872
Showing
12 changed files
with
125 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@deadcow-enterprises/junit-prometheus-exporter": minor | ||
--- | ||
|
||
add quantile type and vegeta endpoints |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"mode": "pre", | ||
"tag": "next", | ||
"initialVersions": { | ||
"@deadcow-enterprises/junit-prometheus-exporter": "0.2.0" | ||
}, | ||
"changesets": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"vegeta_load_test_latency_ms": { | ||
"type": "quantile", | ||
"description": "Load test latency in milliseconds", | ||
"value": "{latencies.[quantile]} / 1000000", | ||
"quantiles": ["mean", "max", "50th", "95th", "99th"], | ||
"validLabels": ["project", "team", "version"], | ||
"labelEquality": "{currentLabels.project} == {newLabels.project} && {newLabels.team} == {currentLabels.team}", | ||
"labelEqualityResolution": "replace" | ||
}, | ||
"vegeta_load_test_success_percent_ms": { | ||
"type": "variable", | ||
"description": "Total number of tests passing", | ||
"value": "{success}", | ||
"defaultValue": 0, | ||
"validLabels": ["project", "team", "version"], | ||
"labelEquality": "{currentLabels.project} == {newLabels.project} && {newLabels.team} == {currentLabels.team}", | ||
"labelEqualityResolution": "replace" | ||
}, | ||
"vegeta_load_test_executions": { | ||
"type": "counter", | ||
"description": "Total tests runs", | ||
"validLabels": ["project", "team", "version"], | ||
"labelEquality": "{currentLabels.project} == {newLabels.project} && {newLabels.team} == {currentLabels.team}", | ||
"labelEqualityResolution": "replace" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './junit.slurper'; | ||
export { type Property } from './slurper'; | ||
export * from "./junit.slurper"; | ||
export { type Property } from "./slurper"; | ||
export * from "./vegeta.slurper"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import * as fs from "fs"; | ||
import * as path from "path"; | ||
import { ParsingSchema } from "../../models/schema"; | ||
import { Slurper } from "./slurper"; | ||
|
||
export class VegetaSlurper extends Slurper { | ||
constructor(filePath?: string) { | ||
const fileLocation = | ||
filePath || path.join(__dirname, "../../schemas/vegeta-schema.json"); | ||
const fileStr = fs.readFileSync(fileLocation); | ||
|
||
const schema = JSON.parse(fileStr.toString()); | ||
super(schema as ParsingSchema); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters