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
import * as config from "../shared/configuration.js"; | |
import * as prometheus from "../shared/prometheus.js"; | |
import * as kubernetes from "../shared/kubernetes.js"; | |
import * as utils from "../shared/utils.js"; | |
import * as mock from "../shared/mock.js"; | |
import * as workload from "../shared/scaledobject-workload.js"; | |
import { sleep } from "k6"; | |
import { describe } from "https://jslib.k6.io/k6chaijs/4.3.4.3/index.js"; | |
import { Gauge } from "k6/metrics"; |
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
{ | |
"vus": 1, | |
"setupTimeout": "10m", | |
"teardownTimeout": "10m", | |
"duration": "5m", | |
"ext": { | |
"loadimpact": { | |
"projectID": 3645343, | |
"name": "1-ScaleObjects-100-Metrics" | |
} |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: metrics-api-test-service | |
namespace: mock | |
uid: d2dd8b66-26aa-4c4f-8cac-abb80a74e620 | |
resourceVersion: '14226767' | |
creationTimestamp: '2023-07-24T20:26:15Z' | |
annotations: | |
kubectl.kubernetes.io/last-applied-configuration: > |
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
osboxes@osboxes:~$ kubectl get pod -o yaml metrics-api-test-metrics-server-d475d9dcb-4pqvc -n mock | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
creationTimestamp: "2023-07-24T20:26:02Z" | |
generateName: metrics-api-test-metrics-server-d475d9dcb- | |
labels: | |
app: metrics-api-test-metrics-server | |
pod-template-hash: d475d9dcb | |
name: metrics-api-test-metrics-server-d475d9dcb-4pqvc |
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
import deploynamespace from "./shared/namespace-operations.js" | |
import deployment from "./shared/create-deployment.js" | |
import updatedeployment from "./shared/update-deployment.js" | |
import updatesscaleobject from "./shared/update-scaleobject.js" | |
import deletenamespace from "./shared/delete-namespace.js" | |
import { group, sleep } from "k6"; | |
import exec from 'k6/execution'; | |
import { PodDisruptor } from 'k6/x/disruptor'; | |
import { ServiceDisruptor } from 'k6/x/disruptor'; |