Showing preview only (539K chars total). Download the full file or copy to clipboard to get everything.
Repository: kinvolk/service-mesh-benchmark
Branch: master
Commit: 61377cad23e6
Files: 85
Total size: 509.9 KB
Directory structure:
gitextract_f17hh3bb/
├── .gitignore
├── LICENSE
├── README.md
├── configs/
│ ├── benchmark/
│ │ ├── .helmignore
│ │ ├── Chart.yaml
│ │ ├── README.md
│ │ ├── templates/
│ │ │ ├── _helpers.tpl
│ │ │ ├── psp.yaml
│ │ │ ├── servicemonitor.yaml
│ │ │ └── wrk2.yaml
│ │ └── values.yaml
│ ├── bookinfo/
│ │ ├── .helmignore
│ │ ├── Chart.yaml
│ │ ├── README.md
│ │ ├── templates/
│ │ │ ├── deployment.yaml
│ │ │ ├── psp.yml
│ │ │ ├── service-account.yaml
│ │ │ ├── service.yaml
│ │ │ └── servicemonitor.yaml
│ │ └── values.yaml
│ ├── dockerfiles/
│ │ └── jobrunner/
│ │ ├── Dockerfile
│ │ └── Makefile
│ ├── emojivoto/
│ │ ├── .helmignore
│ │ ├── Chart.yaml
│ │ ├── README.md
│ │ ├── templates/
│ │ │ ├── deployment.yaml
│ │ │ ├── psp.yaml
│ │ │ ├── service.yml
│ │ │ ├── serviceaccount.yml
│ │ │ └── servicemonitor.yaml
│ │ └── values.yaml
│ ├── equinix-metal-cluster.lokocfg
│ ├── lokocfg.vars.example
│ ├── metrics-merger/
│ │ ├── .helmignore
│ │ ├── Chart.yaml
│ │ ├── README.md
│ │ ├── templates/
│ │ │ └── metrics-merger.yaml
│ │ └── values.yaml
│ ├── orchestrator/
│ │ ├── .gitignore
│ │ ├── .helmignore
│ │ ├── Chart.yaml
│ │ ├── README.md
│ │ ├── cluster-install-configs/
│ │ │ ├── aws/
│ │ │ │ ├── aws.lokocfg
│ │ │ │ └── aws.vars.envsubst
│ │ │ ├── cleanup-setup.sh
│ │ │ ├── cleanup.sh
│ │ │ ├── equinix-metal/
│ │ │ │ ├── equinix-metal.lokocfg
│ │ │ │ └── equinix-metal.vars.envsubst
│ │ │ ├── run-smi-benchmark.sh
│ │ │ └── run.sh
│ │ ├── templates/
│ │ │ ├── bc-assets-pvc.yaml
│ │ │ ├── binaries-pvc.yaml
│ │ │ ├── cloud-secrets.yaml
│ │ │ ├── cluster-install-configs.yaml
│ │ │ ├── debug-jobs.yaml
│ │ │ ├── deployment.yaml
│ │ │ ├── download-benchmark-containers.yaml
│ │ │ ├── download-charts.yaml
│ │ │ ├── download-helm.yaml
│ │ │ ├── download-kubectl.yaml
│ │ │ ├── download-lokoctl.yaml
│ │ │ ├── download-terraform.yaml
│ │ │ ├── general-config.yaml
│ │ │ ├── rbac.yaml
│ │ │ ├── serviceaccount.yaml
│ │ │ └── ssh-keys.yaml
│ │ └── values.yaml
│ └── pushgateway/
│ ├── .helmignore
│ ├── Chart.yaml
│ ├── README.md
│ ├── templates/
│ │ ├── contour-configs.yaml
│ │ ├── deployment.yaml
│ │ ├── service.yaml
│ │ └── servicemonitor.yaml
│ └── values.yaml
├── dashboards/
│ ├── download_dashboard.sh
│ ├── grafana-wrk2-cockpit-orchestrator.json
│ ├── grafana-wrk2-cockpit.json
│ ├── grafana-wrk2-summary-orchestrator.json
│ ├── grafana-wrk2-summary.json
│ └── upload_dashboard.sh
├── metrics-merger/
│ ├── Dockerfile
│ ├── README.md
│ └── merger.py
└── scripts/
└── run_benchmarks.sh
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitignore
================================================
configs/lokocfg.vars
dashboards/.*
================================================
FILE: LICENSE
================================================
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License.
Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License.
Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution.
You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
You must give any other recipients of the Work or Derivative Works a copy of this License; and
You must cause any modified files to carry prominent notices stating that You changed the files; and
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions.
Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks.
This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty.
Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability.
In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability.
While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
================================================
FILE: README.md
================================================
# Kinvolk service mesh benchmark suite
This is v2.0 release of our benchmark automation suite.
Please refer to the [1.0 release](tree/release-1.0) for automation discussed in our [2019 blog post](https://kinvolk.io/blog/2019/05/kubernetes-service-mesh-benchmarking/).
# Content
The suite includes:
- orchestrator [tooling](orchestrator) and [Helm charts](configs/orchestrator)
for deploying benchmark clusters from an orchestrator cluster
- metrics of all benchmark clusters will be scraped and made available in
the orchestrator cluster
- a stand-alone benchmark cluster [configuration](configs/equinix-metal-cluster.lokocfg)
for use with [Lokomotive](https://github.com/kinvolk/lokomotive/releases/)
- helm charts for deploying [Emojivoto](configs/emojivoto)
to provide application endpoints to run benchmarks against
- helm charts for deploying a [wrk2 benchmark job](configs/benchmark) as well
as a job to create
[summary metrics of multiple benchmark runs](configs/metrics-merger)
- Grafana [dashboards](dashboards/) to view benchmark metrics
## Run a benchmark
Prerequisites:
- cluster is set up
- push gateway is installed
- grafana dashboards are uploaded to Grafana
- applications are installed
1. Start the benchmark:
```shell
$ helm install --create-namespace benchmark --namespace benchmark configs/benchmark
```
This will start a 120s, 3000RPS benchmark against 10 emojivoto app
instances, with 96 threads / simultaneous connections.
See the helm chart [values](configs/benchmark/values.yaml) for all
parameters, and use helm command line parameters for different values (eg.
`--set wrk2.RPS="500"` to change target RPS).
2. Refer to the "wrk2 cockpit" grafana dashboard for live metrics
3. After the run concluded, run the "metrics-merger" job to update summary
metrics:
```shell
$ helm install --create-namespace --namespace metrics-merger \
metrics-merger configs/metrics-merger/
```
This will update the "wrk2 summary" dashboard.
## Run a benchmark suite
The benchmark suite script will install applications and service meshes, and
run several benchmarks in a loop.
Use the supplied `scripts/run_benchmarks.sh` to run a full benchmark suite:
5 runs of 10 minutes each for 500-5000 RPS, in 500 RPS increases, with 128 threads,
for "bare metal", linkerd, and istio service meshes, against 60 emojivoto
instances.
# Creating prerequisites
## Set up a cluster
We use [Equinix Metal](https:/metal.equinix.com/) infrastructure to run the benchmark
on, AWS S3 for sharing cluster state, and AWS Route53 for the clusters' public
DNS entries. You'll need a Equinix Metal account and respective API token as well as
an AWS account and accompanying secret key before you can provision a cluster.
You'll also need a recent version of [Lokomotive](https://github.com/kinvolk/lokomotive/releases/).
1. Make the authentication tokens available to the `lokoctl` command. You can do this in a couple of ways. For example, exporting your authentication tokens:
```
export PACKET_AUTH_TOKEN="Your Equinix Metal Auth Token"
export AWS_ACCESS_KEY_ID="your access key for AWS"
export AWS_SECRET_ACCESS_KEY="your secret for the above access key"
```
2. Create the Route53 hosted zone that will be used by the cluster. And an S3 bucket and Dynamo tables for storing Lokomotive's state. Check out Lokomotive's documentation for [Using S3 as backend](https://kinvolk.io/docs/lokomotive/latest/configuration-reference/backend/s3/) for how to do this.
3. Create `configs/lokocfg.vars` by copying the example file `configs/lokocfg.vars.example`, and editing its contents.
```
metal_project_id = "[ID of the equinix metal project to deploy to]"
route53_zone = "[cluster's route53 zone]"
state_s3_bucket = "[PRIVATE AWS S3 bucket to share cluster state in]"
state_s3_key = "[key in S3 bucket, e.g. cluster name]"
state_s3_region = "[AWS S3 region to use]"
lock_dynamodb_table = "[DynamoDB table name to use as state lock, e.g. cluster name]"
region_private_cidr = "[Your Equinix Metal region's private CIDR]"
ssh_pub_keys = [ "[Your SSH pub keys]" ]
```
4. Review the benchmark cluster config in `configs/equinix-metal-cluster.lokocfg`
5. Provision the cluster by running
```
$ cd configs
configs $ lokoctl cluster apply
```
After provisioning concluded, make sure to run
```
$ export KUBECONFIG=assets/cluster-assets/auth/kubeconfig
```
to get `kubectl` access to the cluster.
## Deploy prometheus push gateway
The benchmark load generator will push intermediate run-time metrics as well
as final latency metrics to a prometheus push gateway.
A push gateway is currently not bundled with Lokomotive's prometheus
component. Deploy by issuing
```
$ helm install pushgateway --namespace monitoring configs/pushgateway
```
## Deploy demo apps
Demo apps will be used to run the benchmarks against. We'll use [Linkerd's
emojivoto](https://github.com/BuoyantIO/emojivoto).
We will deploy multiple instances of each app to emulate many applications in a
cluster. For the default set-up, which includes 4 application nodes, we
recommend deploying 30 "bookinfo" instances, and 40 "emojivoto" instances:
```shell
$ cd configs
$ for i in $(seq 10) ; do \
helm install --create-namespace emojivoto-$i \ --namespace emojivoto-$i \
configs/emojivoto \
done
```
### Upload Grafana dashboard
1. Get the Grafana Admin password from the cluster
```
$ kubectl -n monitoring get secret prometheus-operator-grafana -o jsonpath='{.data.admin-password}' | base64 -d && echo
```
2. Forward the Grafana service port from the cluster
```
$ kubectl -n monitoring port-forward svc/prometheus-operator-grafana 3000:80 &
```
3. Log in to [Grafana](http://localhost:3000/) and create an API key we'll use
to upload the dashboard
4. Upload the dashboard:
```
$ cd dashboard
dashboard $ ./upload_dashboard.sh "[API KEY]" grafana-wrk2-cockpit.json localhost:3000
```
================================================
FILE: configs/benchmark/.helmignore
================================================
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
================================================
FILE: configs/benchmark/Chart.yaml
================================================
apiVersion: v2
name: benchmark
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
appVersion: 0.1.0
================================================
FILE: configs/benchmark/README.md
================================================
# benchmark
## Install
```bash
helm install --create-namespace benchmark --namespace benchmark .
```
## Upgrade
```bash
helm upgrade benchmark --namespace benchmark .
```
## Run a scenario
### Deploy Istio
```bash
lokoctl component apply istio-operator
```
### Deploy target application first
```bash
cd configs/emojivoto/
for ((i=0;i<10;i++))
do
kubectl create namespace emojivoto-$i
kubectl label namespace emojivoto-$i istio-injection=enabled
helm install emojivoto-$i --namespace emojivoto-$i .
done
```
### Deploy benchmark application
```bash
cd configs/benchmark/
kubectl create ns benchmark
kubectl label namespace benchmark istio-injection=enabled
helm install benchmark --namespace benchmark . --set wrk2.serviceMesh=istio --set wrk2.app.count=10
```
================================================
FILE: configs/benchmark/templates/_helpers.tpl
================================================
{{- define "emojivotoURLs" }}
{{- $count := .Values.wrk2.app.count | int }}
{{- range $i, $e := until $count }}
- "http://web-svc.emojivoto-{{$i}}/leaderboard"
- "http://web-svc.emojivoto-{{$i}}/api/vote?choice=:nerd_face:"
- "http://web-svc.emojivoto-{{$i}}/leaderboard"
- "http://web-svc.emojivoto-{{$i}}/api/vote?choice=:see_no_evil:"
- "http://web-svc.emojivoto-{{$i}}/leaderboard"
- "http://web-svc.emojivoto-{{$i}}/api/vote?choice=:nerd_face:"
- "http://web-svc.emojivoto-{{$i}}/leaderboard"
- "http://web-svc.emojivoto-{{$i}}/api/vote?choice=:see_no_evil:"
- "http://web-svc.emojivoto-{{$i}}/leaderboard"
- "http://web-svc.emojivoto-{{$i}}/api/vote?choice=:nerd_face:"
- "http://web-svc.emojivoto-{{$i}}/leaderboard"
- "http://web-svc.emojivoto-{{$i}}/api/vote?choice=:see_no_evil:"
- "http://web-svc.emojivoto-{{$i}}/leaderboard"
- "http://web-svc.emojivoto-{{$i}}/api/vote?choice=:nerd_face:"
- "http://web-svc.emojivoto-{{$i}}/leaderboard"
- "http://web-svc.emojivoto-{{$i}}/api/vote?choice=:see_no_evil:"
- "http://web-svc.emojivoto-{{$i}}/leaderboard"
- "http://web-svc.emojivoto-{{$i}}/api/vote?choice=:nerd_face:"
- "http://web-svc.emojivoto-{{$i}}/leaderboard"
- "http://web-svc.emojivoto-{{$i}}/api/vote?choice=:see_no_evil:"
{{- end -}}
{{ end }}
{{- define "bookinfoURLs" }}
{{- $count := .Values.wrk2.app.count | int }}
{{- range $i, $e := until $count }}
- "http://productpage.bookinfo-{{$i}}:9080/"
- "http://productpage.bookinfo-{{$i}}:9080/"
- "http://productpage.bookinfo-{{$i}}:9080/productpage?u=test"
- "http://productpage.bookinfo-{{$i}}:9080/"
- "http://productpage.bookinfo-{{$i}}:9080/"
- "http://productpage.bookinfo-{{$i}}:9080/productpage?u=normal"
- "http://productpage.bookinfo-{{$i}}:9080/"
- "http://productpage.bookinfo-{{$i}}:9080/"
- "http://productpage.bookinfo-{{$i}}:9080/"
- "http://productpage.bookinfo-{{$i}}:9080/productpage?u=test"
- "http://productpage.bookinfo-{{$i}}:9080/"
- "http://productpage.bookinfo-{{$i}}:9080/productpage?u=normal"
- "http://productpage.bookinfo-{{$i}}:9080/"
- "http://productpage.bookinfo-{{$i}}:9080/"
- "http://productpage.bookinfo-{{$i}}:9080/"
- "http://productpage.bookinfo-{{$i}}:9080/"
- "http://productpage.bookinfo-{{$i}}:9080/productpage?u=test"
- "http://productpage.bookinfo-{{$i}}:9080/"
- "http://productpage.bookinfo-{{$i}}:9080/productpage?u=normal"
- "http://productpage.bookinfo-{{$i}}:9080/"
{{- end -}}
{{ end }}
================================================
FILE: configs/benchmark/templates/psp.yaml
================================================
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: benchmark-data-plane-{{.Release.Name}}
spec:
allowPrivilegeEscalation: false
fsGroup:
ranges:
- max: 65535
min: 1337
rule: MustRunAs
readOnlyRootFilesystem: false
allowedCapabilities:
- NET_ADMIN
- NET_RAW
- NET_BIND_SERVICE
- KILL
runAsUser:
rule: RunAsAny
seLinux:
rule: RunAsAny
supplementalGroups:
ranges:
- max: 65535
min: 10001
rule: MustRunAs
volumes:
- configMap
- emptyDir
- projected
- secret
- downwardAPI
- persistentVolumeClaim
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: benchmark-psp
namespace: {{.Release.Namespace}}
rules:
- apiGroups: ['policy','extensions']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames: ['benchmark-data-plane-{{.Release.Name}}']
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: benchmark-psp
namespace: {{.Release.Namespace}}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: benchmark-psp
subjects:
- kind: ServiceAccount
name: benchmark
namespace: {{.Release.Namespace}}
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: benchmark
namespace: {{.Release.Namespace}}
================================================
FILE: configs/benchmark/templates/servicemonitor.yaml
================================================
apiVersion: v1
kind: Service
metadata:
name: wrk2-prometheus
namespace: {{.Release.Namespace}}
labels:
app: wrk2-prometheus
spec:
ports:
- name: istio
port: 4191
targetPort: 4191
- name: linkerd
port: 15090
targetPort: 15090
selector:
app: wrk2-prometheus
type: ClusterIP
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
servicemesh: linkerd
app: wrk2-prometheus
release: prometheus-operator
name: linkerd-proxies
namespace: {{.Release.Namespace}}
spec:
selector:
matchLabels:
app: wrk2-prometheus
endpoints:
- targetPort: 4191
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
servicemesh: istio
app: wrk2-prometheus
release: prometheus-operator
name: istio-proxies
namespace: {{.Release.Namespace}}
spec:
selector:
matchLabels:
app: wrk2-prometheus
endpoints:
- targetPort: 15090
path: /stats/prometheus
================================================
FILE: configs/benchmark/templates/wrk2.yaml
================================================
apiVersion: batch/v1
kind: Job
metadata:
name: wrk2-prometheus
namespace: {{.Release.Namespace}}
labels:
jobgroup: wrk2-prometheus
spec:
template:
metadata:
name: wrk2-prometheus
annotations:
linkerd.io/inject: enabled
labels:
jobgroup: wrk2-prometheus
app: wrk2-prometheus
custom-affinity: load-generator-node
spec:
nodeSelector:
role: benchmark
restartPolicy: Never
volumes:
- name: tempfs
emptyDir:
medium: Memory
shareProcessNamespace: true
serviceAccountName: benchmark
containers:
- name: wrk2-prometheus
image: {{ .Values.wrk2.appImage }}
imagePullPolicy: Always
volumeMounts:
- name: tempfs
mountPath: "/tmpfs"
args:
- -p
{{- if empty .Values.wrk2.serviceMesh }}
- "http://pushgateway.monitoring:9091/metrics/job/bare-metal/instance/{{.Values.wrk2.app.name}}/run/{{ now | date "2006-01-02_15:04:05" }}"
{{- else if eq .Values.wrk2.serviceMesh "linkerd" }}
- "http://pushgateway.monitoring:9091/metrics/job/svcmesh-linkerd/instance/{{.Values.wrk2.app.name}}/run/{{ now | date "2006-01-02_15:04:05" }}"
{{- else if eq .Values.wrk2.serviceMesh "istio" }}
- "http://pushgateway.monitoring:9091/metrics/job/svcmesh-istio/instance/{{.Values.wrk2.app.name}}/run/{{ now | date "2006-01-02_15:04:05" }}"
{{- else }}
{{ fail "Please provide a valid 'wrk2.serviceMesh' name, supported names are: 'linkerd', 'istio'. For no service mesh skip the variable." }}
{{- end }}
- -c
- "{{.Values.wrk2.connections}}"
- -d
- "{{.Values.wrk2.duration}}"
- -r
- "{{.Values.wrk2.RPS}}"
- -i
- "{{.Values.wrk2.initDelay}}"
{{- if eq .Values.wrk2.app.name "emojivoto" }}
{{- template "emojivotoURLs" . }}
{{- else if eq .Values.wrk2.app.name "bookinfo" }}
{{- template "bookinfoURLs" . }}
{{- end }}
================================================
FILE: configs/benchmark/values.yaml
================================================
wrk2:
duration: 120
connections: 96
RPS: 3000
initDelay: 0
serviceMesh: ""
app:
name: emojivoto
count: "10"
appImage: quay.io/kinvolk/wrk2-prometheus
================================================
FILE: configs/bookinfo/.helmignore
================================================
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
================================================
FILE: configs/bookinfo/Chart.yaml
================================================
apiVersion: v2
name: bookinfo
description: A Helm chart for Kubernetes
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 0.1.0
================================================
FILE: configs/bookinfo/README.md
================================================
# bookinfo app
## Install
```bash
helm install --create-namespace bookinfo-1 --namespace bookinfo-1 .
```
## Upgrade
```bash
helm upgrade bookinfo-1 --namespace bookinfo-1 .
```
================================================
FILE: configs/bookinfo/templates/deployment.yaml
================================================
apiVersion: apps/v1
kind: Deployment
metadata:
name: details-v1
namespace: {{.Release.Namespace}}
labels:
app: details
version: v1
spec:
replicas: 1
selector:
matchLabels:
app: details
version: v1
template:
metadata:
annotations:
linkerd.io/inject: enabled
labels:
app: details
version: v1
spec:
nodeSelector:
role: workload
securityContext:
runAsNonRoot: true
runAsUser: 65534
runAsGroup: 65534
serviceAccountName: bookinfo-details
containers:
- name: details
image: docker.io/istio/examples-bookinfo-details-v1:1.15.1
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9080
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ratings-v1
namespace: {{.Release.Namespace}}
labels:
app: ratings
version: v1
spec:
replicas: 1
selector:
matchLabels:
app: ratings
version: v1
template:
metadata:
annotations:
linkerd.io/inject: enabled
labels:
app: ratings
version: v1
spec:
nodeSelector:
role: workload
securityContext:
runAsNonRoot: true
runAsUser: 65534
runAsGroup: 65534
serviceAccountName: bookinfo-ratings
containers:
- name: ratings
image: docker.io/istio/examples-bookinfo-ratings-v1:1.15.1
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9080
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: reviews-v1
namespace: {{.Release.Namespace}}
labels:
app: reviews
version: v1
spec:
replicas: 1
selector:
matchLabels:
app: reviews
version: v1
template:
metadata:
annotations:
linkerd.io/inject: enabled
labels:
app: reviews
version: v1
spec:
nodeSelector:
role: workload
serviceAccountName: bookinfo-reviews
containers:
- name: reviews
image: docker.io/istio/examples-bookinfo-reviews-v1:1.15.1
imagePullPolicy: IfNotPresent
env:
- name: LOG_DIR
value: "/tmp/logs"
ports:
- containerPort: 9080
volumeMounts:
- name: tmp
mountPath: /tmp
- name: wlp-output
mountPath: /opt/ibm/wlp/output
volumes:
- name: wlp-output
emptyDir: {}
- name: tmp
emptyDir: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: reviews-v2
namespace: {{.Release.Namespace}}
labels:
app: reviews
version: v2
spec:
replicas: 1
selector:
matchLabels:
app: reviews
version: v2
template:
metadata:
annotations:
linkerd.io/inject: enabled
labels:
app: reviews
version: v2
spec:
nodeSelector:
role: workload
serviceAccountName: bookinfo-reviews
containers:
- name: reviews
image: docker.io/istio/examples-bookinfo-reviews-v2:1.15.1
imagePullPolicy: IfNotPresent
env:
- name: LOG_DIR
value: "/tmp/logs"
ports:
- containerPort: 9080
volumeMounts:
- name: tmp
mountPath: /tmp
- name: wlp-output
mountPath: /opt/ibm/wlp/output
volumes:
- name: wlp-output
emptyDir: {}
- name: tmp
emptyDir: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: reviews-v3
namespace: {{.Release.Namespace}}
labels:
app: reviews
version: v3
spec:
replicas: 1
selector:
matchLabels:
app: reviews
version: v3
template:
metadata:
annotations:
linkerd.io/inject: enabled
labels:
app: reviews
version: v3
spec:
nodeSelector:
role: workload
serviceAccountName: bookinfo-reviews
containers:
- name: reviews
image: docker.io/istio/examples-bookinfo-reviews-v3:1.15.1
imagePullPolicy: IfNotPresent
env:
- name: LOG_DIR
value: "/tmp/logs"
ports:
- containerPort: 9080
volumeMounts:
- name: tmp
mountPath: /tmp
- name: wlp-output
mountPath: /opt/ibm/wlp/output
volumes:
- name: wlp-output
emptyDir: {}
- name: tmp
emptyDir: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: productpage-v1
namespace: {{.Release.Namespace}}
labels:
app: productpage
version: v1
spec:
replicas: 1
selector:
matchLabels:
app: productpage
version: v1
template:
metadata:
annotations:
linkerd.io/inject: enabled
labels:
app: productpage
version: v1
spec:
nodeSelector:
role: workload
serviceAccountName: bookinfo-productpage
containers:
- name: productpage
image: docker.io/istio/examples-bookinfo-productpage-v1:1.15.1
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9080
volumeMounts:
- name: tmp
mountPath: /tmp
volumes:
- name: tmp
emptyDir: {}
================================================
FILE: configs/bookinfo/templates/psp.yml
================================================
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: bookinfo-data-plane-{{.Release.Name}}
spec:
allowPrivilegeEscalation: false
fsGroup:
ranges:
- max: 65535
min: 1337
rule: MustRunAs
readOnlyRootFilesystem: false
allowedCapabilities:
- NET_ADMIN
- NET_RAW
- NET_BIND_SERVICE
requiredDropCapabilities:
- ALL
runAsUser:
rule: RunAsAny
seLinux:
rule: RunAsAny
supplementalGroups:
ranges:
- max: 65535
min: 10001
rule: MustRunAs
volumes:
- configMap
- emptyDir
- projected
- secret
- downwardAPI
- persistentVolumeClaim
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: bookinfo-psp
namespace: {{.Release.Namespace}}
rules:
- apiGroups: ['policy','extensions']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames: ['bookinfo-data-plane-{{.Release.Name}}']
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: bookinfo-psp
namespace: {{.Release.Namespace}}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: bookinfo-psp
subjects:
- kind: ServiceAccount
name: default
namespace: {{.Release.Namespace}}
- kind: ServiceAccount
name: bookinfo-details
namespace: {{.Release.Namespace}}
- kind: ServiceAccount
name: bookinfo-productpage
namespace: {{.Release.Namespace}}
- kind: ServiceAccount
name: bookinfo-ratings
namespace: {{.Release.Namespace}}
- kind: ServiceAccount
name: bookinfo-reviews
namespace: {{.Release.Namespace}}
================================================
FILE: configs/bookinfo/templates/service-account.yaml
================================================
apiVersion: v1
kind: ServiceAccount
metadata:
name: bookinfo-details
namespace: {{.Release.Namespace}}
labels:
account: details
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: bookinfo-ratings
namespace: {{.Release.Namespace}}
labels:
account: ratings
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: bookinfo-reviews
labels:
account: reviews
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: bookinfo-productpage
namespace: {{.Release.Namespace}}
labels:
account: productpage
================================================
FILE: configs/bookinfo/templates/service.yaml
================================================
apiVersion: v1
kind: Service
metadata:
name: details
namespace: {{.Release.Namespace}}
labels:
app: details
service: details
app: bookinfo
spec:
ports:
- port: 9080
name: http
selector:
app: details
---
apiVersion: v1
kind: Service
metadata:
name: ratings
namespace: {{.Release.Namespace}}
labels:
app: ratings
service: ratings
app: bookinfo
spec:
ports:
- port: 9080
name: http
selector:
app: ratings
---
apiVersion: v1
kind: Service
metadata:
name: reviews
namespace: {{.Release.Namespace}}
labels:
app: reviews
service: reviews
app: bookinfo
spec:
ports:
- port: 9080
name: http
selector:
app: reviews
---
apiVersion: v1
kind: Service
metadata:
name: productpage
namespace: {{.Release.Namespace}}
labels:
app: productpage
service: productpage
app: bookinfo
spec:
ports:
- port: 9080
name: http
selector:
app: productpage
================================================
FILE: configs/bookinfo/templates/servicemonitor.yaml
================================================
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
servicemesh: linkerd
app: bookinfo
release: prometheus-operator
name: linkerd-proxies
namespace: {{.Release.Namespace}}
spec:
selector:
matchLabels:
app: bookinfo
endpoints:
- targetPort: 4191
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
servicemesh: istio
app: bookinfo
release: prometheus-operator
name: istio-proxies
namespace: {{.Release.Namespace}}
spec:
selector:
matchLabels:
app: bookinfo
endpoints:
- targetPort: 15090
path: /stats/prometheus
================================================
FILE: configs/bookinfo/values.yaml
================================================
================================================
FILE: configs/dockerfiles/jobrunner/Dockerfile
================================================
FROM fedora:32
RUN dnf install -y gettext openssh-clients \
&& dnf clean all
================================================
FILE: configs/dockerfiles/jobrunner/Makefile
================================================
build-image:
docker build -t quay.io/kinvolk/smb-jobrunner .
push-image: build-image
docker push quay.io/kinvolk/smb-jobrunner
================================================
FILE: configs/emojivoto/.helmignore
================================================
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
================================================
FILE: configs/emojivoto/Chart.yaml
================================================
apiVersion: v2
name: emojivoto
description: A Helm chart for Kubernetes
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 0.1.0
================================================
FILE: configs/emojivoto/README.md
================================================
# Emojivoto app
## Install
```
helm install --create-namespace emojivoto-1 --namespace emojivoto-1 .
```
## Upgrade
```
helm upgrade emojivoto-1 --namespace emojivoto-1 .
```
================================================
FILE: configs/emojivoto/templates/deployment.yaml
================================================
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/name: emoji
app.kubernetes.io/part-of: emojivoto
app.kubernetes.io/version: v10
name: emoji
namespace: {{.Release.Namespace}}
spec:
replicas: 1
selector:
matchLabels:
app: emoji-svc
template:
metadata:
annotations:
linkerd.io/inject: enabled
labels:
app: emoji-svc
spec:
nodeSelector:
role: workload
securityContext:
runAsNonRoot: true
runAsUser: 65534
runAsGroup: 65534
containers:
- env:
- name: GRPC_PORT
value: "8080"
- name: PROM_PORT
value: "8801"
image: buoyantio/emojivoto-emoji-svc:v10
name: emoji-svc
ports:
- containerPort: 8080
name: grpc
- containerPort: 8801
name: prom
resources:
requests:
cpu: 100m
serviceAccountName: emoji
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/name: voting
app.kubernetes.io/part-of: emojivoto
app.kubernetes.io/version: v10
name: voting
namespace: {{.Release.Namespace}}
spec:
replicas: 1
selector:
matchLabels:
app: voting-svc
template:
metadata:
annotations:
linkerd.io/inject: enabled
labels:
app: voting-svc
spec:
nodeSelector:
role: workload
securityContext:
runAsNonRoot: true
runAsUser: 65534
runAsGroup: 65534
containers:
- env:
- name: GRPC_PORT
value: "8080"
- name: PROM_PORT
value: "8801"
image: buoyantio/emojivoto-voting-svc:v10
name: voting-svc
ports:
- containerPort: 8080
name: grpc
- containerPort: 8801
name: prom
resources:
requests:
cpu: 100m
serviceAccountName: voting
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/name: web
app.kubernetes.io/part-of: emojivoto
app.kubernetes.io/version: v10
name: web
namespace: {{.Release.Namespace}}
spec:
replicas: 1
selector:
matchLabels:
app: web-svc
template:
metadata:
annotations:
linkerd.io/inject: enabled
labels:
app: web-svc
spec:
nodeSelector:
role: workload
securityContext:
runAsNonRoot: true
runAsUser: 65534
runAsGroup: 65534
containers:
- env:
- name: WEB_PORT
value: "8080"
- name: EMOJISVC_HOST
value: emoji-svc.{{.Release.Namespace}}:8080
- name: VOTINGSVC_HOST
value: voting-svc.{{.Release.Namespace}}:8080
- name: INDEX_BUNDLE
value: dist/index_bundle.js
image: buoyantio/emojivoto-web:v10
name: web-svc
ports:
- containerPort: 8080
name: http
resources:
requests:
cpu: 100m
serviceAccountName: web
================================================
FILE: configs/emojivoto/templates/psp.yaml
================================================
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: emojivoto-data-plane-{{.Release.Name}}
spec:
allowPrivilegeEscalation: false
fsGroup:
ranges:
- max: 65535
min: 1337
rule: MustRunAs
readOnlyRootFilesystem: false
allowedCapabilities:
- NET_ADMIN
- NET_RAW
- NET_BIND_SERVICE
requiredDropCapabilities:
- ALL
runAsUser:
rule: RunAsAny
seLinux:
rule: RunAsAny
supplementalGroups:
ranges:
- max: 65535
min: 10001
rule: MustRunAs
volumes:
- configMap
- emptyDir
- projected
- secret
- downwardAPI
- persistentVolumeClaim
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: emojivoto-psp
namespace: {{.Release.Namespace}}
rules:
- apiGroups: ['policy','extensions']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames: ['emojivoto-data-plane-{{.Release.Name}}']
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: emojivoto-psp
namespace: {{.Release.Namespace}}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: emojivoto-psp
subjects:
- kind: ServiceAccount
name: default
namespace: {{.Release.Namespace}}
- kind: ServiceAccount
name: emoji
namespace: {{.Release.Namespace}}
- kind: ServiceAccount
name: voting
namespace: {{.Release.Namespace}}
- kind: ServiceAccount
name: web
namespace: {{.Release.Namespace}}
================================================
FILE: configs/emojivoto/templates/service.yml
================================================
apiVersion: v1
kind: Service
metadata:
name: emoji-svc
namespace: {{.Release.Namespace}}
labels:
app: emojivoto
spec:
ports:
- name: grpc
port: 8080
targetPort: 8080
- name: prom
port: 8801
targetPort: 8801
selector:
app: emoji-svc
---
apiVersion: v1
kind: Service
metadata:
name: voting-svc
namespace: {{.Release.Namespace}}
labels:
app: emojivoto
spec:
ports:
- name: grpc
port: 8080
targetPort: 8080
- name: prom
port: 8801
targetPort: 8801
selector:
app: voting-svc
---
apiVersion: v1
kind: Service
metadata:
name: web-svc
namespace: {{.Release.Namespace}}
labels:
app: emojivoto
spec:
ports:
- name: http
port: 80
targetPort: 8080
selector:
app: web-svc
type: ClusterIP
================================================
FILE: configs/emojivoto/templates/serviceaccount.yml
================================================
apiVersion: v1
kind: ServiceAccount
metadata:
name: emoji
namespace: {{.Release.Namespace}}
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: voting
namespace: {{.Release.Namespace}}
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: web
namespace: {{.Release.Namespace}}
================================================
FILE: configs/emojivoto/templates/servicemonitor.yaml
================================================
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
servicemesh: linkerd
app: emojivoto
release: prometheus-operator
name: linkerd-proxies
namespace: {{.Release.Namespace}}
spec:
selector:
matchLabels:
app: emojivoto
endpoints:
- targetPort: 4191
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
servicemesh: istio
app: emojivoto
release: prometheus-operator
name: istio-proxies
namespace: {{.Release.Namespace}}
spec:
selector:
matchLabels:
app: emojivoto
endpoints:
- targetPort: 15090
path: /stats/prometheus
================================================
FILE: configs/emojivoto/values.yaml
================================================
================================================
FILE: configs/equinix-metal-cluster.lokocfg
================================================
# Variables
variable "metal_project_id" {}
variable "route53_zone" {}
variable "state_s3_bucket" {}
variable "state_s3_key" {}
variable "state_s3_region" {}
variable "lock_dynamodb_table" {}
variable "ssh_pub_keys" {}
variable "region_private_cidr" {}
# Cluster config
backend "s3" {
bucket = var.state_s3_bucket
key = var.state_s3_key
region = var.state_s3_region
dynamodb_table = var.lock_dynamodb_table
}
cluster "packet" {
project_id = var.metal_project_id
cluster_name = "test-wrk2"
facility = "dfw2"
# no t1.small in DFW2
controller_type = "x1.small.x86"
asset_dir = "./assets"
controller_count = 1
ssh_pubkeys = var.ssh_pub_keys
management_cidrs = ["0.0.0.0/0"]
node_private_cidr = var.region_private_cidr
dns {
zone = var.route53_zone
provider = "route53"
}
worker_pool "workload" {
count = 6
node_type = "m2.xlarge.x86"
labels = {
"role" = "workload"
}
}
# Reserved for the load generator
worker_pool "loadgenerator" {
count = 1
node_type = "m2.xlarge.x86"
labels = {
"role" = "benchmark"
}
}
}
# Component config
component "openebs-operator" {}
component "openebs-storage-class" {
storage-class "openebs-test-sc" {
replica_count = 1
default = true
}
}
component "prometheus-operator" {
prometheus {
watch_labeled_service_monitors = "false"
watch_labeled_prometheus_rules = "false"
}
namespace = "monitoring"
}
# uncomment, then `lokoctl component apply <component>` to install
#
#component "experimental-istio-operator" {
# enable_monitoring = true
#}
#
#component "experimental-linkerd" {
# enable_monitoring = true
#}
================================================
FILE: configs/lokocfg.vars.example
================================================
metal_project_id = "[ID of the equinix metal project to deploy to]"
route53_zone = "[cluster's route53 zone. Needs to already exist]"
state_s3_bucket = "[PRIVATE AWS S3 bucket to share cluster state in. Needs to already exist]"
state_s3_key = "[key in S3 bucket, e.g. cluster name]"
state_s3_region = "[AWS S3 region to use]"
lock_dynamodb_table = "[DynamoDB table name to use as state lock, e.g. cluster name. Needs to already exist]"
region_private_cidr = "[Your Equinix Metal region's private CIDR]"
ssh_pub_keys = [ "[Your SSH pub keys]" ]
================================================
FILE: configs/metrics-merger/.helmignore
================================================
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
================================================
FILE: configs/metrics-merger/Chart.yaml
================================================
apiVersion: v2
name: metrics-merger
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
appVersion: 0.1.0
================================================
FILE: configs/metrics-merger/README.md
================================================
# metrics merger
## Install
```
helm install metrics-merger --create-namespace --namespace metrics-merger .
```
## Updgrade
```
helm upgrade metrics-merger --namespace metrics-merger .
```
## Uninstall
```
helm uninstall metrics-merger --namespace metrics-merger
```
================================================
FILE: configs/metrics-merger/templates/metrics-merger.yaml
================================================
apiVersion: batch/v1
kind: Job
metadata:
name: wrk2-metrics-merger
labels:
jobgroup: wrk2-metrics-merger
namespace: {{.Release.Namespace}}
spec:
template:
metadata:
name: wrk2-metrics-merger
labels:
jobgroup: wrk2-metrics-merger
app: wrk2-metrics-merger
custom-affinity: load-generator-node
spec:
restartPolicy: Never
securityContext:
runAsUser: 10001
nodeSelector:
role: benchmark
containers:
- name: metrics-merger
image: quay.io/kinvolk/svcmesh-bench-results-merger
imagePullPolicy: Always
env:
- name: PROMETHEUS_URL
value: {{ .Values.prometheusServiceUrl }}
args:
- {{ .Values.prometheusServiceUrl }}
- {{ .Values.pushgatewayURL }}
================================================
FILE: configs/metrics-merger/values.yaml
================================================
prometheusServiceUrl: "http://prometheus-operator-kube-p-prometheus.monitoring:9090"
pushgatewayURL: "pushgateway.monitoring:9091"
================================================
FILE: configs/orchestrator/.gitignore
================================================
values-real.yaml
================================================
FILE: configs/orchestrator/.helmignore
================================================
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
================================================
FILE: configs/orchestrator/Chart.yaml
================================================
apiVersion: v2
name: orchestrator
description: A Helm chart for Kubernetes
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 0.1.0
================================================
FILE: configs/orchestrator/README.md
================================================
# Orchestrator
This chart is used to deploy the orchestrator application which can be used to deploy benchmarking clusters, run benchmarks on them, etc. This chart can be deployed on any Lokomotive cluster regardless or the region, the underlying architecture or cloud provider.
## General Usage
### Generate Ephemeral SSH Key Pair
Generate SSH key pair, which will be used to install the benchmarking clusters:
```bash
export KEY_PATH="${HOME}/.ssh/id_rsa.bc-${RANDOM}"
ssh-keygen -t rsa -b 8192 -f "${KEY_PATH}" -N "" -C "<please provide email id>"
```
### Install
Run the following command to install the helm chart:
```bash
helm install \
--values=values-real.yaml \
--set-file runScript=run.sh \
--set-file sshKey.public="${KEY_PATH}".pub \
--set-file sshKey.private="${KEY_PATH}" \
--create-namespace \
--namespace orchestrator \
orchestrator .
```
Copy the the [values.yaml](values.yaml) file and make changes as necessary and rename it to `values-real.yaml`.
Update the path of the SSH keys as required.
### Upgrade
```bash
helm upgrade \
--values=values-real.yaml \
--set-file runScript=run.sh \
--set-file sshKey.public="${KEY_PATH}".pub \
--set-file sshKey.private="${KEY_PATH}" \
--namespace orchestrator \
orchestrator .
```
### Delete
```
helm uninstall orchestrator
kubectl delete ns orchestrator
```
## Writing a script
- Write a script that deploys the cluster and installs the components on Lokomotive cluster.
- Followed by cluster and component installation design your script to deploy target benchmarking applications.
- Start off using the scaffold provided in [run.sh](cluster-install-configs/run.sh).
- Take inspiration from the existing [run-smi-benchmark.sh](cluster-install-configs/run-smi-benchmark.sh)
## Clean up benchmarking clusters
Exec into the debug pod:
```bash
kubectl -n orchestrator exec -it $(kubectl -n orchestrator get pod -l app=debug-jobs -o name) bash
```
Run the clean up script:
```bash
bash /scripts/cleanup.sh
```
## Debug failed cluster
Exec into the debug pod:
```bash
kubectl -n orchestrator exec -it $(kubectl -n orchestrator get pod -l app=debug-jobs -o name) bash
```
You can find all the cluster assets and related config in the `/clusters` directory. You can use these assets to interact with the cluster.
================================================
FILE: configs/orchestrator/cluster-install-configs/aws/aws.lokocfg
================================================
variable "cluster_name" {}
variable "ssh_pubkey" {}
variable "route53_zone" {}
variable "route53_zone_id" {}
variable "aws_access_key_id" {}
variable "aws_secret_access_key" {}
variable "region" {}
variable "benchmark_worker_count" {}
variable "benchmark_instance_type" {}
variable "benchmark_os_arch" {}
variable "benchmark_os_channel" {}
cluster "aws" {
asset_dir = "./assets"
cluster_name = var.cluster_name
controller_count = 1
controller_type = "t3.xlarge"
dns_zone = var.route53_zone
dns_zone_id = var.route53_zone_id
region = var.region
enable_csi = true
ssh_pubkeys = [var.ssh_pubkey]
# ignore_x509_cn_check = true
worker_pool "general" {
count = 2
instance_type = "t3.xlarge"
ssh_pubkeys = [var.ssh_pubkey]
}
worker_pool "benchmark" {
count = var.benchmark_worker_count
instance_type = var.benchmark_instance_type
os_arch = var.benchmark_os_arch
os_channel = var.benchmark_os_channel
ssh_pubkeys = [var.ssh_pubkey]
taints = {
"role" = "benchmark:NoSchedule"
}
labels = {
"role" = "benchmark"
}
# TODO: remove this once https://github.com/kinvolk/lokomotive/issues/839 is fixed.
lb_http_port = 8080
lb_https_port = 8443
}
}
component "aws-ebs-csi-driver" {
enable_default_storage_class = true
enable_volume_scheduling = true
enable_volume_resizing = true
enable_volume_snapshot = true
node_affinity {
key = "beta.kubernetes.io/arch"
operator = "In"
values = ["amd64"]
}
}
component "prometheus-operator" {
prometheus {
watch_labeled_service_monitors = "false"
watch_labeled_prometheus_rules = "false"
storage_size = "100Gi"
ingress {
# OC prometheus should be enabled to scrape this URL.
host = "prometheus.${var.cluster_name}.${var.route53_zone}"
}
external_labels = {
"cluster" = var.cluster_name
}
node_selector = {
"beta.kubernetes.io/arch" = "amd64"
}
}
alertmanager_node_selector = {
"beta.kubernetes.io/arch" = "amd64"
}
}
component "contour" {
enable_monitoring = true
node_affinity {
key = "beta.kubernetes.io/arch"
operator = "In"
values = ["amd64"]
}
}
================================================
FILE: configs/orchestrator/cluster-install-configs/aws/aws.vars.envsubst
================================================
# Cluster specific config.
cluster_name = "$CLUSTER_NAME"
region = "$REGION"
# Same across all clusters.
ssh_pubkey = "$SSH_PUB_KEY"
route53_zone = "$AWS_ROUTE53_ZONE"
route53_zone_id = "$AWS_ROUTE53_ZONE_ID"
aws_access_key_id = "$AWS_ACCESS_KEY_ID"
aws_secret_access_key = "$AWS_SECRET_ACCESS_KEY"
benchmark_worker_count = $BENCHMARK_WORKER_COUNT
benchmark_instance_type = "$BENCHMARK_INSTANCE_TYPE"
benchmark_os_arch = "$BENCHMARK_OS_ARCH"
benchmark_os_channel = "$BENCHMARK_OS_CHANNEL"
================================================
FILE: configs/orchestrator/cluster-install-configs/cleanup-setup.sh
================================================
#!/bin/bash
set -euo pipefail
function log() {
local message="${1:-""}"
echo -e "\\033[1;37m${message}\\033[0m"
}
function err() {
local message="${1:-""}"
echo -e >&2 "\\033[1;31m${message}\\033[0m"
}
binaries='terraform helm kubectl lokoctl'
for b in $binaries
do
while ! ls "/binaries/${b}" >/dev/null 2>&1
do
log "Waiting for ${b} to be available..."
sleep 1
done
log "Copying /binaries/${b} to /usr/local/bin/"
/bin/cp "/binaries/${b}" /usr/local/bin/
done
echo
log "Now exec into this pod and run"
log "bash /scripts/cleanup.sh"
sleep infinity
================================================
FILE: configs/orchestrator/cluster-install-configs/cleanup.sh
================================================
#!/bin/bash
set -euo pipefail
function log() {
local message="${1:-""}"
echo -e "\\033[1;37m${message}\\033[0m"
}
function err() {
local message="${1:-""}"
echo -e >&2 "\\033[1;31m${message}\\033[0m"
}
for d in $(ls /clusters)
do
log "Into dir: /clusters/$d"
cd /clusters/$d
lokoctl component delete prometheus-operator --confirm
log "Wait for the BC Prometheus related entries to be cleaned up..."
sleep 90
lokoctl component delete external-dns --confirm
lokoctl cluster destroy --confirm -v
done
================================================
FILE: configs/orchestrator/cluster-install-configs/equinix-metal/equinix-metal.lokocfg
================================================
variable "cluster_name" {}
variable "facility" {}
variable "ssh_pubkey" {}
variable "metal_project_id" {}
variable "public_eip" {}
variable "route53_zone" {}
variable "route53_zone_id" {}
variable "aws_access_key_id" {}
variable "aws_secret_access_key" {}
cluster "packet" {
project_id = var.metal_project_id
cluster_name = var.cluster_name
facility = var.facility
ssh_pubkeys = [
var.ssh_pubkey
]
controller_type = "t1.small.x86"
asset_dir = "./assets"
controller_count = 1
management_cidrs = ["0.0.0.0/0"]
node_private_cidr = "10.0.0.0/8"
ignore_x509_cn_check = true
dns {
zone = var.route53_zone
provider = "route53"
}
worker_pool "workload" {
count = 6
node_type = "m2.xlarge.x86"
labels = {
"role" = "workload"
}
}
worker_pool "benchmark" {
count = 1
node_type = "m2.xlarge.x86"
labels = {
"role" = "benchmark"
}
}
}
component "openebs-operator" {}
component "openebs-storage-class" {
storage-class "openebs-test-sc" {
replica_count = 1
default = true
}
}
component "prometheus-operator" {
prometheus {
watch_labeled_service_monitors = "false"
watch_labeled_prometheus_rules = "false"
storage_size = "100Gi"
ingress {
host = "prometheus.${var.cluster_name}.${var.route53_zone}"
}
external_labels = {
"cluster" = var.cluster_name
}
}
}
component "metrics-server" {}
component "experimental-istio-operator" {
enable_monitoring = true
}
component "experimental-linkerd" {
enable_monitoring = true
}
component "contour" {
enable_monitoring = true
}
component "metallb" {
address_pools = {
default = [var.public_eip]
}
service_monitor = true
}
component "cert-manager" {
namespace = "cert-manager"
email = "suraj@kinvolk.io"
webhooks = "true"
service_monitor = "true"
}
component "external-dns" {
policy = "sync"
owner_id = var.cluster_name
aws {
zone_id = var.route53_zone_id
aws_access_key_id = var.aws_access_key_id
aws_secret_access_key = var.aws_secret_access_key
}
service_monitor = true
}
================================================
FILE: configs/orchestrator/cluster-install-configs/equinix-metal/equinix-metal.vars.envsubst
================================================
# Randomly generated
cluster_name = "$CLUSTER_NAME"
# Change per facility
facility = "$REGION"
public_eip = "$PUBLIC_EIP"
# Fixed across deployments
ssh_pubkey = "$SSH_PUB_KEY"
metal_project_id = "$EQUINIX_METAL_PROJECT_ID"
route53_zone = "$AWS_ROUTE53_ZONE"
route53_zone_id = "$AWS_ROUTE53_ZONE_ID"
aws_access_key_id = "$AWS_ACCESS_KEY_ID"
aws_secret_access_key = "$AWS_SECRET_ACCESS_KEY"
================================================
FILE: configs/orchestrator/cluster-install-configs/run-smi-benchmark.sh
================================================
#!/bin/bash
set -euo pipefail
function log() {
local message="${1:-""}"
echo -e "\\033[1;37m${message}\\033[0m"
}
function err() {
local message="${1:-""}"
echo -e >&2 "\\033[1;31m${message}\\033[0m"
}
function verify_binaries_download() {
binaries='terraform helm kubectl lokoctl'
for b in $binaries
do
while ! ls "/binaries/${b}" >/dev/null 2>&1
do
log "Waiting for ${b} to be available..."
sleep 1
done
log "Copying /binaries/${b} to /usr/local/bin/"
/bin/cp "/binaries/${b}" /usr/local/bin/
done
}
verify_binaries_download
log "Cluster name: ${CLUSTER_NAME}"
cd /clusters
mkdir -p "${CLUSTER_NAME}" && cd "${CLUSTER_NAME}"
cp /scripts/"${CLOUD}".lokocfg .
cp /scripts/"${CLOUD}".vars.envsubst .
public_key=$(cat ~/.ssh/id_rsa.pub)
export SSH_PUB_KEY=${public_key}
envsubst < "${CLOUD}".vars.envsubst > lokocfg.vars
eval $(ssh-agent)
ssh-add ~/.ssh/id_rsa
ssh-add -L
lokoctl cluster apply -v --confirm --skip-components
mkdir -p ~/.kube
cp ./assets/cluster-assets/auth/kubeconfig ~/.kube/config
n=0
until [ "$n" -ge 10 ]
do
lokoctl component apply openebs-operator openebs-storage-class prometheus-operator metrics-server contour metallb cert-manager external-dns && break
n=$((n+1))
sleep 5
log "retry #${n}"
log "retrying 'lokoctl component apply' again..."
done
# Make an entry in the OC about this BC
# This uses service account credentials to talk to apiserver
kubectl -n monitoring patch prometheus prometheus-operator-kube-p-prometheus --type merge --patch '{"spec":{"additionalScrapeConfigs":{"name":"scrape-config","key":"scrape.yaml"}}}'
if ! kubectl -n monitoring get secret scrape-config; then
err "could not find secret 'scrape-config' in 'monitoring' namespace on orchestrating cluster"
cat > /tmp/scrape.yaml <<EOF
- job_name: 'federate'
scrape_interval: 15s
honor_labels: true
metrics_path: '/federate'
params:
'match[]':
- '{job=~"node-exporter|kube-state-metrics|istio-operator|istiod|emoji-svc|voting-svc|web-svc|details|productpage|ratings|reviews|linkerd-controller-api|linkerd-dst|linkerd-identity|linkerd-proxy-injector|linkerd-sp-validator|linkerd-tap|linkerd-web|pushgateway|kubelet"}'
- 'node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate'
- '{__name__=~"job:.*"}'
static_configs:
- targets:
EOF
log "creating secret 'scrape-config' in 'monitoring' namespace on orchestrating cluster"
kubectl -n monitoring create secret generic scrape-config --from-file=/tmp/scrape.yaml
fi
kubectl -n monitoring get secret scrape-config -ojsonpath='{.data.scrape\.yaml}' | base64 -d > /tmp/scrape.yaml
echo " - 'prometheus.$CLUSTER_NAME.dev.lokomotive-k8s.net'" | tee -a /tmp/scrape.yaml
kubectl -n monitoring create secret generic scrape-config --from-file=/tmp/scrape.yaml --dry-run=client -o yaml | kubectl -n monitoring apply -f -
log "updated scrape config"
cat /tmp/scrape.yaml
# Wait for sometime because prometheus can take some time to start scraping
log "waiting for promtheus to apply above setting..."
sleep 180
cp -r /binaries/service-mesh-benchmark .
# Number of workload application deployments to do.
workload_num=60
function install_emojivoto() {
local mesh="${1}"
cd /clusters/"${CLUSTER_NAME}"/service-mesh-benchmark/configs/emojivoto/
local i
for ((i = 0; i < workload_num; i++))
do
{
kubectl create namespace "emojivoto-${i}"
[ "$mesh" == "istio" ] && \
kubectl label namespace "emojivoto-${i}" istio-injection=enabled
helm install --timeout=10m --create-namespace "emojivoto-${i}" \
--namespace "emojivoto-${i}" --wait \
/clusters/"${CLUSTER_NAME}"/service-mesh-benchmark/configs/emojivoto/ || true
# Retry pod injection only if the mesh is involved.
if [ "$mesh" != "bare-metal" ]
then
# Run until injection of proxy happens
while true
do
log "Checking if the proxy is injected in namespace emojivoto-${i}"
# If there is any pod with READY column as either 0/2, 1/2 or 2/2 then this means that the
# pods were injected with proxy.
output=$(kubectl get pods -n "emojivoto-${i}" | awk '{print $2}' | grep 2) || true
if [ -z "${output}" ]
then
kubectl delete pods --all -n "emojivoto-${i}"
sleep 10
else
break
fi
done
fi
# Run until all pods are in Running state
while true
do
# To verify that the emojivoto pods are up and running following should grep for three pods
# that are in Running state. If three is not the result then try again.
output=$(kubectl get pods -n "emojivoto-${i}" | grep Running | wc -l) || true
if [ "${output}" = "3" ]
then
break
fi
log "All pods not in 'Running' state in emojivoto-${i} namespace."
sleep 5
done
output=$(kubectl get pods -n "emojivoto-${i}")
printf "\nPods in the emojivoto-${i} namespace.\n${output}\n\n"
} &
# If this sleep is not added then threads equal to the number of workload_num are created and
# due to this helm gives timeout in installing some releases. This happens either because
# apiserver is bombarded with requests or because the mutatingwebhook cannot inject the
# container.
sleep 3
done
wait
}
function cleanup_emojivoto() {
local i
for ((i = 0; i < workload_num; i++))
do
{
helm uninstall "emojivoto-${i}" --namespace "emojivoto-${i}" || true
kubectl delete ns "emojivoto-${i}"
} &
done
wait
}
# Deploy pushgateway in monitoring namespace
function install_pushgateway() {
cd /clusters/"${CLUSTER_NAME}"/service-mesh-benchmark/configs/pushgateway
helm install --timeout=10m pushgateway --namespace monitoring . || true
}
function install_mesh() {
local mesh="${1}"
cd /clusters/"${CLUSTER_NAME}"
if [ "${mesh}" = "bare-metal" ]; then
return
elif [ "${mesh}" = "linkerd" ]; then
log "installing mesh: ${mesh}"
lokoctl component apply experimental-linkerd
# Let linkerd get ready
log "Waiting for linkerd to be ready..."
sleep 60
log "Pods in the linkerd namespace."
kubectl get pods -n linkerd
else
log "installing mesh: ${mesh}"
lokoctl component apply experimental-istio-operator
# Let isito get ready
log "Waiting for istio to be ready..."
sleep 60
log "Pods in the istio-operator namespace."
kubectl get pods -n istio-operator
log "Pods in the istio-system namespace."
kubectl get pods -n istio-system
fi
}
function cleanup_mesh() {
local mesh="${1}"
if [ "${mesh}" = "bare-metal" ]; then
return
elif [ "${mesh}" = "linkerd" ]; then
log "cleaning mesh: ${mesh}"
lokoctl component delete experimental-linkerd --delete-namespace --confirm
else
log "cleaning mesh: ${mesh}"
# Extra cleanup to do after istio because it does not do it automatically.
kubectl get -n istio-system istiooperators.install.istio.io istiocontrolplane -o json | sed 's/"istio-finalizer.install.istio.io"//' | kubectl apply -f -
lokoctl component delete experimental-istio-operator --confirm --delete-namespace
kubectl delete $(kubectl get clusterroles -o name | grep istio) \
$(kubectl get clusterrolebindings -o name | grep istio) \
$(kubectl get crd -o name | grep istio) \
$(kubectl get validatingwebhookconfigurations -o name | grep istio) \
$(kubectl get mutatingwebhookconfigurations -o name | grep istio)
fi
}
function wait_for_job() {
local ns="${1}"
local job="${2}"
# Wait for the job to finish
while true
do
complete=$(kubectl -n "${ns}" get job "${job}" -o jsonpath='{.status.completionTime}')
#
if [ -z "${complete}" ]; then
log "waiting for job ${job} to finish in ${ns} namespace"
else
break
fi
sleep 10
done
}
function run_benchmark() {
local mesh="${1}"
local rps="${2}"
local ind="${3}"
local name="benchmark-${mesh}-${rps}-${ind}"
kubectl create ns "${name}"
svcmesh="${mesh}"
if [ "${svcmesh}" = "bare-metal" ]; then
svcmesh=""
elif [ "${svcmesh}" = "linkerd" ]; then
kubectl annotate namespace "${name}" linkerd.io/inject=enabled
else
kubectl label namespace "${name}" istio-injection=enabled
fi
cd /clusters/"${CLUSTER_NAME}"/service-mesh-benchmark/configs/benchmark/
helm install --timeout=10m "${name}" --namespace "${name}" \
. --set wrk2.serviceMesh="${svcmesh}" \
--set wrk2.app.count="${workload_num}" \
--set wrk2.RPS="${rps}" \
--set wrk2.duration=600 \
--set wrk2.connections=128
log "Pods in the ${name} namespace."
kubectl get pods -n "${name}"
wait_for_job "${name}" wrk2-prometheus
}
function run_merge_job() {
local mesh="${1}"
local rps="${2}"
local ind="${3}"
local name="metrics-merger-${mesh}-${rps}-${ind}"
cd /clusters/"${CLUSTER_NAME}"/service-mesh-benchmark/configs/metrics-merger/
helm install --timeout=10m "${name}" --create-namespace --namespace "${name}" .
wait_for_job "${name}" wrk2-metrics-merger
}
install_pushgateway
for rps in 500 1000 1500 2000 2500 3000 3500 4000 4500 5000 5500; do
for ((i=0;i<5;i++))
do
for mesh in bare-metal linkerd istio
do
install_mesh "${mesh}"
install_emojivoto "${mesh}"
run_benchmark "${mesh}" "${rps}" "${i}"
run_merge_job "${mesh}" "${rps}" "${i}"
cleanup_emojivoto
cleanup_mesh "${mesh}"
done
done
done
================================================
FILE: configs/orchestrator/cluster-install-configs/run.sh
================================================
#!/bin/bash
set -euo pipefail
function log() {
local message="${1:-""}"
echo -e "\\033[1;37m${message}\\033[0m"
}
function err() {
local message="${1:-""}"
echo -e >&2 "\\033[1;31m${message}\\033[0m"
}
function verify_binaries_download() {
binaries='terraform helm kubectl lokoctl'
for b in $binaries
do
while ! ls "/binaries/${b}" >/dev/null 2>&1
do
log "Waiting for ${b} to be available..."
sleep 1
done
log "Copying /binaries/${b} to /usr/local/bin/"
/bin/cp "/binaries/${b}" /usr/local/bin/
done
}
verify_binaries_download
log "Cluster name: ${CLUSTER_NAME}"
# Always store the cluster configuration in the /clusters directory so that even if this pods fails
# it can be cleaned up later using the debug jobs pod.
cd /clusters
mkdir -p "${CLUSTER_NAME}" && cd "${CLUSTER_NAME}"
# Configs are mounted in /scripts dir so copy from there.
cp /scripts/"${CLOUD}".lokocfg .
cp /scripts/"${CLOUD}".vars.envsubst .
public_key=$(cat ~/.ssh/id_rsa.pub)
export SSH_PUB_KEY=${public_key}
envsubst < "${CLOUD}".vars.envsubst > lokocfg.vars
eval $(ssh-agent)
ssh-add ~/.ssh/id_rsa
ssh-add -L
lokoctl cluster apply -v --confirm --skip-components
mkdir -p ~/.kube
cp ./assets/cluster-assets/auth/kubeconfig ~/.kube/config
n=0
until [ "$n" -ge 10 ]
do
# Edit this to install the components you want.
lokoctl component apply <component names> && break
n=$((n+1))
sleep 5
log "retry #${n}"
log "retrying 'lokoctl component apply' again..."
done
# Current repo `service-mesh-benchmark` is also downloaded in the `/binaries` repository.
# Add code to run benchmarks after this.
# ...
================================================
FILE: configs/orchestrator/templates/bc-assets-pvc.yaml
================================================
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
name: bc-assets
namespace: orchestrator
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
status:
accessModes:
- ReadWriteOnce
capacity:
storage: 5Gi
================================================
FILE: configs/orchestrator/templates/binaries-pvc.yaml
================================================
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
name: binaries
namespace: orchestrator
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Mi
status:
accessModes:
- ReadWriteOnce
capacity:
storage: 500Mi
================================================
FILE: configs/orchestrator/templates/cloud-secrets.yaml
================================================
apiVersion: v1
kind: Secret
metadata:
name: cloud-secrets
namespace: orchestrator
data:
{{if .Values.clouds.em.token}}
EQUINIX_METAL_AUTH_TOKEN: {{ .Values.clouds.em.token | b64enc }}
{{end}}
{{if .Values.clouds.em.projectID}}
EQUINIX_METAL_PROJECT_ID: {{ .Values.clouds.em.projectID | b64enc }}
{{end}}
{{if .Values.clouds.aws.accessKeyID}}
AWS_ACCESS_KEY_ID: {{ .Values.clouds.aws.accessKeyID | b64enc }}
{{end}}
{{if .Values.clouds.aws.secretAccessKey}}
AWS_SECRET_ACCESS_KEY: {{ .Values.clouds.aws.secretAccessKey | b64enc }}
{{end}}
{{if .Values.clouds.aws.defaultRegion}}
AWS_DEFAULT_REGION: {{ .Values.clouds.aws.defaultRegion | b64enc }}
{{end}}
{{if .Values.clouds.aws.route53Zone}}
AWS_ROUTE53_ZONE: {{ .Values.clouds.aws.route53Zone | b64enc }}
{{end}}
{{if .Values.clouds.aws.route53ZoneID}}
AWS_ROUTE53_ZONE_ID: {{ .Values.clouds.aws.route53ZoneID | b64enc }}
{{end}}
{{if .Values.clouds.aws.benchmarkWorkerCount }}
BENCHMARK_WORKER_COUNT: {{ .Values.clouds.aws.benchmarkWorkerCount | quote | b64enc }}
{{end}}
{{if .Values.clouds.aws.benchmarkInstanceType }}
BENCHMARK_INSTANCE_TYPE: {{ .Values.clouds.aws.benchmarkInstanceType | b64enc }}
{{end}}
{{if .Values.clouds.aws.benchmarkOSArch }}
BENCHMARK_OS_ARCH: {{ .Values.clouds.aws.benchmarkOSArch | b64enc }}
{{end}}
{{if .Values.clouds.aws.benchmarkOSChannel }}
BENCHMARK_OS_CHANNEL: {{ .Values.clouds.aws.benchmarkOSChannel | b64enc }}
{{end}}
================================================
FILE: configs/orchestrator/templates/cluster-install-configs.yaml
================================================
apiVersion: v1
kind: ConfigMap
metadata:
name: cluster-install-configs
namespace: orchestrator
data:
{{ if eq .Values.benchmarkingClusterCloud "equinix-metal" }}
{{ (.Files.Glob "cluster-install-configs/equinix-metal/equinix-metal.lokocfg").AsConfig | indent 2 }}
{{ (.Files.Glob "cluster-install-configs/equinix-metal/equinix-metal.vars.envsubst").AsConfig | indent 2 }}
{{ else if eq .Values.benchmarkingClusterCloud "aws" }}
{{ (.Files.Glob "cluster-install-configs/aws/aws.lokocfg").AsConfig | indent 2 }}
{{ (.Files.Glob "cluster-install-configs/aws/aws.vars.envsubst").AsConfig | indent 2 }}
{{ end }}
{{ (.Files.Glob "cluster-install-configs/cleanup.sh").AsConfig | indent 2 }}
{{ (.Files.Glob "cluster-install-configs/cleanup-setup.sh").AsConfig | indent 2 }}
run.sh: |
{{ .Values.runScript | indent 4 }}
================================================
FILE: configs/orchestrator/templates/debug-jobs.yaml
================================================
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: debug-jobs
name: debug-jobs
namespace: orchestrator
spec:
replicas: 1
selector:
matchLabels:
app: debug-jobs
template:
metadata:
labels:
app: debug-jobs
pvc: binaries
spec:
containers:
- image: quay.io/kinvolk/smb-jobrunner
name: jobrunner
envFrom:
- secretRef:
name: cloud-secrets
command:
- bash
args:
- -c
- 'bash /scripts/cleanup-setup.sh'
volumeMounts:
- name: binaries
mountPath: /binaries
- name: ssh-keys
mountPath: /root/.ssh
readOnly: true
- name: cluster-assets
mountPath: /clusters
- name: cluster-install-configs
mountPath: /scripts
serviceAccountName: jobrunner
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: pvc
operator: In
values:
- binaries
topologyKey: kubernetes.io/hostname
volumes:
- name: binaries
persistentVolumeClaim:
claimName: binaries
- name: cluster-assets
persistentVolumeClaim:
claimName: bc-assets
- name: ssh-keys
secret:
defaultMode: 256
secretName: ssh-keys
- name: cluster-install-configs
configMap:
name: cluster-install-configs
================================================
FILE: configs/orchestrator/templates/deployment.yaml
================================================
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: orchestrator
name: orchestrator
namespace: orchestrator
spec:
replicas: 1
selector:
matchLabels:
app: orchestrator
template:
metadata:
labels:
app: orchestrator
pvc: binaries
spec:
containers:
- image: quay.io/kinvolk/smb-orchestrator
name: orchestrator
env:
{{ if .Values.clouds.em.regionEIPs -}}
- name: REGION_EIPS
value: {{.Values.clouds.em.regionEIPs}}
{{ end -}}
- name: AWS_REGIONS
value: {{.Values.clouds.aws.regions}}
- name: BENCHMARKING_CLUSTER_CLOUD
value: {{.Values.benchmarkingClusterCloud}}
volumeMounts:
- name: binaries
mountPath: /binaries
- name: cluster-install-configs
mountPath: /scripts
serviceAccountName: orchestrator
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: pvc
operator: In
values:
- binaries
topologyKey: kubernetes.io/hostname
volumes:
- name: binaries
persistentVolumeClaim:
claimName: binaries
- name: cluster-install-configs
configMap:
name: cluster-install-configs
================================================
FILE: configs/orchestrator/templates/download-benchmark-containers.yaml
================================================
apiVersion: batch/v1
kind: Job
metadata:
name: download-benchmark-containers-repository
namespace: orchestrator
spec:
template:
metadata:
labels:
pvc: binaries
spec:
restartPolicy: OnFailure
containers:
- name: download-benchmark-containers-repository
image: golang
env:
- name: BRANCH
value: {{.Values.benchMarkContainers.branch}}
command:
- bash
args:
- -c
- 'cd /binaries && git clone https://github.com/kinvolk/benchmark-containers && cd benchmark-containers && git checkout $BRANCH'
volumeMounts:
- name: binaries
mountPath: /binaries
serviceAccountName: downloader
automountServiceAccountToken: false
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: pvc
operator: In
values:
- binaries
topologyKey: kubernetes.io/hostname
volumes:
- name: binaries
persistentVolumeClaim:
claimName: binaries
================================================
FILE: configs/orchestrator/templates/download-charts.yaml
================================================
apiVersion: batch/v1
kind: Job
metadata:
name: download-charts
namespace: orchestrator
spec:
template:
metadata:
labels:
pvc: binaries
spec:
restartPolicy: OnFailure
containers:
- name: download-charts
image: golang
env:
- name: BRANCH
value: {{.Values.charts.branch}}
command:
- bash
args:
- -c
- 'cd /binaries && git clone https://github.com/kinvolk/service-mesh-benchmark/ && cd service-mesh-benchmark && git checkout $BRANCH'
volumeMounts:
- name: binaries
mountPath: /binaries
serviceAccountName: downloader
automountServiceAccountToken: false
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: pvc
operator: In
values:
- binaries
topologyKey: kubernetes.io/hostname
volumes:
- name: binaries
persistentVolumeClaim:
claimName: binaries
================================================
FILE: configs/orchestrator/templates/download-helm.yaml
================================================
apiVersion: batch/v1
kind: Job
metadata:
name: download-helm
namespace: orchestrator
spec:
template:
metadata:
labels:
pvc: binaries
spec:
restartPolicy: OnFailure
containers:
- name: download-helm
image: alpine/helm:{{.Values.helm.version}}
command:
- sh
args:
- -c
- 'mv /usr/bin/helm /binaries'
volumeMounts:
- name: binaries
mountPath: /binaries
serviceAccountName: downloader
automountServiceAccountToken: false
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: pvc
operator: In
values:
- binaries
topologyKey: kubernetes.io/hostname
volumes:
- name: binaries
persistentVolumeClaim:
claimName: binaries
================================================
FILE: configs/orchestrator/templates/download-kubectl.yaml
================================================
apiVersion: batch/v1
kind: Job
metadata:
name: download-kubectl
namespace: orchestrator
spec:
template:
metadata:
labels:
pvc: binaries
spec:
restartPolicy: OnFailure
containers:
- name: download-kubectl
image: fedora:32
command:
- bash
args:
- -c
- 'curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl && chmod +x ./kubectl && mv ./kubectl /binaries'
volumeMounts:
- name: binaries
mountPath: /binaries
serviceAccountName: downloader
automountServiceAccountToken: false
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: pvc
operator: In
values:
- binaries
topologyKey: kubernetes.io/hostname
volumes:
- name: binaries
persistentVolumeClaim:
claimName: binaries
================================================
FILE: configs/orchestrator/templates/download-lokoctl.yaml
================================================
apiVersion: batch/v1
kind: Job
metadata:
name: download-lokoctl
namespace: orchestrator
spec:
template:
metadata:
labels:
pvc: binaries
spec:
restartPolicy: OnFailure
containers:
- name: download-lokoctl
image: golang
env:
- name: BRANCH
value: {{.Values.lokoctl.branch}}
command:
- bash
args:
- -c
- 'git clone https://github.com/kinvolk/lokomotive && cd lokomotive && git checkout $BRANCH && make build && mv ./lokoctl /binaries'
volumeMounts:
- name: binaries
mountPath: /binaries
serviceAccountName: downloader
automountServiceAccountToken: false
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: pvc
operator: In
values:
- binaries
topologyKey: kubernetes.io/hostname
volumes:
- name: binaries
persistentVolumeClaim:
claimName: binaries
================================================
FILE: configs/orchestrator/templates/download-terraform.yaml
================================================
apiVersion: batch/v1
kind: Job
metadata:
name: download-terraform
namespace: orchestrator
spec:
template:
metadata:
labels:
pvc: binaries
spec:
restartPolicy: OnFailure
containers:
- name: download-terraform
image: hashicorp/terraform:{{.Values.terraform.version}}
command:
- sh
args:
- -c
- 'mv /bin/terraform /binaries'
volumeMounts:
- name: binaries
mountPath: /binaries
serviceAccountName: downloader
automountServiceAccountToken: false
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: pvc
operator: In
values:
- binaries
topologyKey: kubernetes.io/hostname
volumes:
- name: binaries
persistentVolumeClaim:
claimName: binaries
================================================
FILE: configs/orchestrator/templates/general-config.yaml
================================================
apiVersion: v1
kind: ConfigMap
metadata:
name: general-config
namespace: orchestrator
data:
# Add more non-secret env vars here.
CLOUD: {{ .Values.benchmarkingClusterCloud }}
================================================
FILE: configs/orchestrator/templates/rbac.yaml
================================================
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: oc-permissions
rules:
- apiGroups:
- ""
resources:
- secrets
verbs:
- '*'
- apiGroups:
- monitoring.coreos.com
resourceNames:
- prometheus-operator-kube-p-prometheus
resources:
- prometheuses
verbs:
- patch
- get
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: oc-permissions
namespace: orchestrator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: oc-permissions
subjects:
- kind: ServiceAccount
name: jobrunner
namespace: orchestrator
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: orchestrate-jobs
namespace: orchestrator
rules:
- apiGroups:
- "batch"
resources:
- jobs
verbs:
- '*'
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: orchestrate-jobs
namespace: orchestrator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: orchestrate-jobs
subjects:
- kind: ServiceAccount
name: orchestrator
namespace: orchestrator
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: privileged-psp-orchestrator
namespace: orchestrator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: privileged-psp
subjects:
- kind: ServiceAccount
name: orchestrator
namespace: orchestrator
- kind: ServiceAccount
name: jobrunner
namespace: orchestrator
- kind: ServiceAccount
name: downloader
namespace: orchestrator
================================================
FILE: configs/orchestrator/templates/serviceaccount.yaml
================================================
apiVersion: v1
kind: ServiceAccount
metadata:
name: orchestrator
namespace: orchestrator
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: jobrunner
namespace: orchestrator
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: downloader
namespace: orchestrator
================================================
FILE: configs/orchestrator/templates/ssh-keys.yaml
================================================
apiVersion: v1
kind: Secret
metadata:
name: ssh-keys
namespace: orchestrator
data:
id_rsa: {{ .Values.sshKey.private | b64enc }}
id_rsa.pub: {{ .Values.sshKey.public | b64enc }}
================================================
FILE: configs/orchestrator/values.yaml
================================================
lokoctl:
# Use a different branch if you are using experimental version of Lokomotive.
branch: master
charts:
# Use a different branch if you are using experimental version of this repository. This is under
# charts because the charts under configs repo are downloaded to be deployed on the benchmarking
# clusters.
branch: master
benchMarkContainers:
# Use a different branch if you are using experimental version of this repository. This is under
# charts because the charts under configs repo are downloaded to be deployed on the benchmarking
# clusters.
branch: master
terraform:
version: 0.13.6
helm:
version: 3.5.1
sshKey:
# Copy your SSH Key content here.
public: ssh-rsa AAAA.YOUR_PUBLIC_KEY
private: |
-----BEGIN OPENSSH PRIVATE KEY-----
YOUR_PRIVATE_KEY
-----END OPENSSH PRIVATE KEY-----
# Possible values: [equinix-metal, aws].
benchmarkingClusterCloud:
# This is to be set using the helm flag `--set-file`. This script will run on all the benchmarking
# clusters.
runScript:
# Cloud related information.
clouds:
aws:
accessKeyID:
secretAccessKey:
# Don't confuse this with the subsequent regions field. This is only used to export as
# `AWS_DEFAULT_REGION`.
defaultRegion: eu-central-1
route53Zone:
route53ZoneID:
# List of comma separated regions you want to deploy the benchmarking clusters to. e.g.:
# us-east-1,us-west-1
regions: us-west-1
benchmarkWorkerCount: 1
benchmarkInstanceType: t3.medium
benchmarkOSArch: amd64
benchmarkOSChannel: stable
em:
token:
projectID:
# List of comma separated region=EIP. This EIP is used to expose the Prometheus on the
# benchmarking clusters. Later the orchestrating cluster will scrape the Prometheus on the
# benchmarking clusters. e.g.:
# sjc1=1.2.3.4,ewr1=5.6.7.8,ams1=9.0.1.2
regionEIPs:
================================================
FILE: configs/pushgateway/.helmignore
================================================
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
================================================
FILE: configs/pushgateway/Chart.yaml
================================================
apiVersion: v2
name: pushgateway
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
appVersion: 0.1.0
================================================
FILE: configs/pushgateway/README.md
================================================
# Prometheus pushgateway
## Install
```
helm install pushgateway --namespace monitoring .
```
## Uninstall
```
helm uninstall pushgateway --namespace monitoring
```
## Install with Ingress
It is possible to expose the pushgateway publicly via Kubernetes ingress. Since pushgateway does not come with any kind of authentication mechanism of itself we will use the basic authentication mechanism provided by contour. This chart deploys a [contour-authserver](https://github.com/projectcontour/contour-authserver) which authenticates the users.
Execute the following steps to expose pushgateway over the internet.
### Prerequisites
- Install contour.
- Install cert-manager.
- Install external-dns (optional: If you prefer creating records manually in a DNS provider then you can skip this component).
### Create Password
Create a file with username and password in htpasswd format:
```bash
touch auth
htpasswd -b auth user1 password1
htpasswd -b auth user2 password2
htpasswd -b auth user3 password3
```
Now create a secret out of that file:
```
kubectl create secret generic -n monitoring passwords --from-file=auth
kubectl annotate secret -n monitoring passwords projectcontour.io/auth-type=basic
```
### Special flags
Deploy the pushgateway with extra information overriding the values file:
```bash
helm install pushgateway --namespace monitoring . \
--set ingress.enabled=true \
--set ingress.host=<pushgateway URL host value>
```
Set the appropriate host value to deploy the pushgateway. This is the URL you will reach out to when accessing pushgateway over the internet.
### Test
Without password it fails:
```console
$ curl -I https://pushgateway.foobar.com/metrics
HTTP/2 401
www-authenticate: Basic realm="default", charset="UTF-8"
date: Tue, 06 Apr 2021 08:34:41 GMT
server: envoy
```
With password:
```console
$ curl --user user1:password1 -s https://pushgateway.foobar.com/metrics | head -5
# HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 7.0803e-05
go_gc_duration_seconds{quantile="0.25"} 0.000107011
go_gc_duration_seconds{quantile="0.5"} 0.000119244
```
================================================
FILE: configs/pushgateway/templates/contour-configs.yaml
================================================
{{ if .Values.ingress.enabled }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: htpasswd
namespace: monitoring
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: privileged-psp-monitoring
namespace: monitoring
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: privileged-psp
subjects:
- kind: ServiceAccount
name: htpasswd
namespace: monitoring
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: contour:authserver:htpasswd
rules:
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: contour:authserver:htpasswd
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: contour:authserver:htpasswd
subjects:
- kind: ServiceAccount
name: htpasswd
namespace: monitoring
---
apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/name: htpasswd
name: htpasswd
namespace: monitoring
spec:
ports:
- name: auth
port: 9443
protocol: TCP
targetPort: 9443
selector:
app.kubernetes.io/name: htpasswd
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/name: htpasswd
name: htpasswd
namespace: monitoring
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: htpasswd
template:
metadata:
labels:
app.kubernetes.io/name: htpasswd
spec:
containers:
- args:
- htpasswd
- --address=:9443
- --tls-ca-path=/tls/ca.crt
- --tls-cert-path=/tls/tls.crt
- --tls-key-path=/tls/tls.key
command:
- /contour-authserver
image: docker.io/projectcontour/contour-authserver:v2
imagePullPolicy: IfNotPresent
name: htpasswd
ports:
- containerPort: 9443
name: auth
protocol: TCP
resources:
limits:
cpu: 100m
memory: 90Mi
volumeMounts:
- mountPath: /tls
name: tls
readOnly: true
serviceAccountName: htpasswd
volumes:
- name: tls
secret:
secretName: htpasswd
---
apiVersion: cert-manager.io/v1alpha3
kind: Certificate
metadata:
name: htpasswd
namespace: monitoring
spec:
dnsNames:
- htpasswd
issuerRef:
name: selfsigned
kind: ClusterIssuer
secretName: htpasswd
---
apiVersion: cert-manager.io/v1alpha3
kind: ClusterIssuer
metadata:
name: selfsigned
namespace: monitoring
spec:
selfSigned: {}
---
apiVersion: projectcontour.io/v1alpha1
kind: ExtensionService
metadata:
name: htpasswd
namespace: monitoring
spec:
protocol: h2
services:
- name: htpasswd
port: 9443
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: pushgateway-ingress
namespace: monitoring
spec:
dnsNames:
- {{ .Values.ingress.host }}
secretName: pushgateway-ingress
issuerRef:
name: {{ .Values.ingress.clusterIssuer }}
kind: ClusterIssuer
---
apiVersion: projectcontour.io/v1
kind: HTTPProxy
metadata:
name: pushgateway
namespace: monitoring
spec:
virtualhost:
fqdn: {{ .Values.ingress.host }}
tls:
secretName: pushgateway-ingress
authorization:
extensionRef:
name: htpasswd
namespace: monitoring
routes:
- services:
- name: pushgateway
port: 9091
{{ end }}
================================================
FILE: configs/pushgateway/templates/deployment.yaml
================================================
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
prometheus.io/scrape: 'true'
name: pushgateway
namespace: monitoring
spec:
replicas: 1
selector:
matchLabels:
app: pushgateway
template:
metadata:
name: pushgateway
labels:
app: pushgateway
visualize: "true"
run: pushgateway
spec:
containers:
- name: pushgateway
image: prom/pushgateway
args:
- --log.level={{ .Values.logLevel }}
ports:
- name: web
containerPort: 9091
================================================
FILE: configs/pushgateway/templates/service.yaml
================================================
apiVersion: v1
kind: Service
metadata:
labels:
name: pushgateway
visualize: "true"
app: pushgateway
name: pushgateway
namespace: monitoring
spec:
selector:
app: pushgateway
ports:
- name: scrape
protocol: TCP
port: 9091
================================================
FILE: configs/pushgateway/templates/servicemonitor.yaml
================================================
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
app: pushgateway
release: prometheus-operator
name: pushgateway
namespace: monitoring
spec:
endpoints:
- port: scrape
interval: "1s"
namespaceSelector:
matchNames:
- monitoring
selector:
matchLabels:
app: pushgateway
================================================
FILE: configs/pushgateway/values.yaml
================================================
# Possible values are [debug, info, warn, error]
logLevel: error
ingress:
enabled: false
host: pushgateway.foobar.com
# This cert-manager cluster issuer is already installed in Lokomotive. Find the config here:
# https://github.com/kinvolk/lokomotive/blob/715b85028b3814756c79b48ba147ca8c4886ce8f/assets/charts/components/cert-manager/templates/letsencrypt-clusterissuer-prod.yaml
clusterIssuer: letsencrypt-production
================================================
FILE: dashboards/download_dashboard.sh
================================================
#!/bin/bash
[ $# -lt 3 ] && {
echo
echo "$0 - download (backup) a Grafana dashboard, write to STDOUT"
echo "Usage: $0 <grafana-API-key> <dashboard-id> <hostname-and-port> [>dashboard-backup.json]"
echo
exit 1
}
apikey="$1"
dashboard_uid="$2"
host="$3"
echo "Downloading dashboard UID $dashboard_uid from $host" >&2
curl -sH "Authorization: Bearer $apikey" \
http://$host/api/dashboards/uid/$dashboard_uid \
| sed -e "s/\"$dashboard_uid\"/null/" -e 's/,"url":"[^"]\+",/,/' | jq
================================================
FILE: dashboards/grafana-wrk2-cockpit-orchestrator.json
================================================
{
"meta": {
"type": "db",
"canSave": true,
"canEdit": true,
"canAdmin": false,
"canStar": true,
"slug": "wrk2-benchmark-cockpit-orchestrator",
"expires": "0001-01-01T00:00:00Z",
"created": "2020-07-28T11:41:35Z",
"updated": "2020-07-31T09:10:37Z",
"updatedBy": "admin",
"createdBy": "admin",
"version": 9,
"hasAcl": false,
"isFolder": false,
"folderId": 0,
"folderTitle": "General",
"folderUrl": "",
"provisioned": false,
"provisionedExternalId": ""
},
"dashboard": {
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": 28,
"iteration": 1596186462226,
"links": [],
"panels": [
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": null,
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 24,
"x": 0,
"y": 0
},
"id": 8,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"expr": "wrk2_benchmark_progress{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",status=\"init\",cluster=\"$cluster\"}",
"instant": true,
"legendFormat": "{{exported_job}}: {{exported_instance}} {{run}} ",
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "",
"transparent": true,
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "name"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": null,
"decimals": 1,
"format": "s",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 4,
"w": 2,
"x": 0,
"y": 2
},
"id": 35,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"pluginVersion": "6.5.0",
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"expr": "wrk2_benchmark_duration{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"}",
"instant": true,
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Benchmark duration",
"transparent": true,
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"datasource": null,
"gridPos": {
"h": 4,
"w": 4,
"x": 2,
"y": 2
},
"id": 13,
"options": {
"displayMode": "lcd",
"fieldOptions": {
"calcs": [
"lastNotNull"
],
"defaults": {
"mappings": [],
"max": 100,
"min": 0,
"thresholds": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"override": {},
"values": false
},
"orientation": "horizontal"
},
"pluginVersion": "6.5.0",
"targets": [
{
"expr": "wrk2_benchmark_progress{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",status=~\"(init|run)\",cluster=\"$cluster\"}",
"instant": true,
"legendFormat": "{{status}}",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Progress",
"transparent": true,
"type": "bargauge"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 10,
"w": 10,
"x": 6,
"y": 2
},
"hiddenSeries": false,
"id": 4,
"legend": {
"alignAsTable": false,
"avg": false,
"current": true,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(wrk2_benchmark_average_rps{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"})",
"instant": false,
"legendFormat": "Average RPS",
"refId": "A"
},
{
"expr": "sum(wrk2_benchmark_current_rps{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"})",
"instant": false,
"legendFormat": "Current RPS",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Overall RPS (average and current)",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 5,
"w": 8,
"x": 16,
"y": 2
},
"hiddenSeries": false,
"id": 15,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"max": false,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "wrk2_benchmark_current_rps{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"}",
"instant": false,
"legendFormat": "{{label}}{{thread}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Current RPS, per thread",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": null,
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 2,
"x": 0,
"y": 6
},
"id": 51,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"expr": "wrk2_benchmark_progress{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",status=\"init\",cluster=\"$cluster\"}",
"instant": true,
"legendFormat": "{{rps}}",
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Requested RPS",
"transparent": true,
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "name"
},
{
"cacheTimeout": null,
"datasource": null,
"gridPos": {
"h": 3,
"w": 4,
"x": 2,
"y": 6
},
"id": 2,
"links": [],
"options": {
"fieldOptions": {
"calcs": [
"lastNotNull"
],
"defaults": {
"mappings": [
{
"id": 0,
"op": "=",
"text": "N/A",
"type": 1,
"value": "null"
}
],
"max": 100,
"min": 0,
"nullValueMode": "connected",
"thresholds": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
],
"unit": "none"
},
"override": {},
"values": false
},
"orientation": "horizontal",
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "6.5.0",
"targets": [
{
"expr": "sum(wrk2_benchmark_average_rps{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"})",
"instant": true,
"legendFormat": "Average RPS",
"refId": "B"
},
{
"expr": "sum(wrk2_benchmark_current_rps{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"})",
"instant": true,
"legendFormat": "Current RPS",
"refId": "C"
}
],
"timeFrom": null,
"timeShift": null,
"title": "",
"transparent": true,
"type": "gauge"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"decimals": 1,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 5,
"w": 8,
"x": 16,
"y": 7
},
"hiddenSeries": false,
"id": 14,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"max": false,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "wrk2_benchmark_average_rps{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"}",
"instant": false,
"legendFormat": "{{label}}{{thread}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Average RPS, per thread",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": null,
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 2,
"x": 0,
"y": 9
},
"id": 11,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"expr": "wrk2_benchmark_thread_count{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"}",
"instant": true,
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Thread count",
"transparent": true,
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": null,
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 2,
"x": 2,
"y": 9
},
"id": 40,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"expr": "sum(wrk2_benchmark_requests{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"})",
"instant": true,
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Requests sent",
"transparent": true,
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": null,
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 2,
"x": 4,
"y": 9
},
"id": 10,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"expr": "sum(wrk2_benchmark_responses{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"})",
"instant": true,
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Responses received",
"transparent": true,
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 8,
"x": 0,
"y": 12
},
"hiddenSeries": false,
"id": 54,
"legend": {
"alignAsTable": true,
"avg": false,
"current": false,
"hideEmpty": false,
"hideZero": false,
"max": true,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pluginVersion": "6.5.0",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "container_memory_working_set_bytes{container!~\"POD\", namespace=~\"benchmark-.*\", container=~\".*-proxy\",cluster=\"$cluster\",container!=\"\"}",
"legendFormat": "{{container}} Memory",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Sidecar Memory usage - Load generator ",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "decbytes",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "decbytes",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 8,
"x": 8,
"y": 12
},
"hiddenSeries": false,
"id": 55,
"legend": {
"alignAsTable": true,
"avg": false,
"current": false,
"hideEmpty": false,
"hideZero": false,
"max": true,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pluginVersion": "6.5.0",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "max(container_memory_working_set_bytes{container!~\"POD\", namespace=~\"$instance.*\", container=~\"(linkerd|istio)-proxy\",cluster=\"$cluster\",container!=\"\"}) by (container)",
"legendFormat": "{{container}} Memory",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Sidecar Memory usage - applications (max. across all sidecars)",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "decbytes",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "decbytes",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 8,
"x": 16,
"y": 12
},
"hiddenSeries": false,
"id": 56,
"legend": {
"alignAsTable": true,
"avg": false,
"current": false,
"hideEmpty": false,
"hideZero": false,
"max": true,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pluginVersion": "6.5.0",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(container_memory_working_set_bytes{container!~\"POD\", namespace=~\"linkerd\", container!~\".*-proxy\",cluster=\"$cluster\",container!=\"\"})",
"legendFormat": "Linkerd total Memory",
"refId": "E"
},
{
"expr": "sum(container_memory_working_set_bytes{container!~\"POD\", namespace=~\"(istio-.*)\", container!~\".*-proxy\",cluster=\"$cluster\",container!=\"\"})",
"legendFormat": "Istio total Memory",
"refId": "F"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Memory usage - Service mesh control plane",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "decbytes",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "decbytes",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 8,
"x": 0,
"y": 18
},
"hiddenSeries": false,
"id": 57,
"legend": {
"alignAsTable": true,
"avg": false,
"current": false,
"hideEmpty": false,
"hideZero": false,
"max": true,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pluginVersion": "6.5.0",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "Memory",
"yaxis": 2
},
{
"alias": "linkerd-proxy Memory",
"yaxis": 2
},
{
"alias": "istio-proxy Memory",
"yaxis": 2
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace=~\"benchmark-.*\", container=~\".*-proxy\",cluster=\"$cluster\",container!=\"\"}",
"format": "time_series",
"instant": false,
"legendFormat": "{{container}} CPU seconds",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Sidecar CPU usage - Load generator ",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "decbytes",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 8,
"x": 8,
"y": 18
},
"hiddenSeries": false,
"id": 58,
"legend": {
"alignAsTable": true,
"avg": false,
"current": false,
"hideEmpty": false,
"hideZero": false,
"max": true,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pluginVersion": "6.5.0",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "max(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace=~\"$instance.*\", container=~\"(linkerd|istio)-proxy\",cluster=\"$cluster\",container!=\"\"}) by (container)",
"format": "time_series",
"instant": false,
"legendFormat": "{{container}} CPU seconds",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Sidecar CPU usage - applications (max. across all sidecars)",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "decbytes",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 8,
"x": 16,
"y": 18
},
"hiddenSeries": false,
"id": 59,
"legend": {
"alignAsTable": true,
"avg": false,
"current": false,
"hideEmpty": false,
"hideZero": false,
"max": true,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pluginVersion": "6.5.0",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "Memory",
"yaxis": 2
},
{
"alias": "linkerd: destination CPU seconds",
"yaxis": 2
},
{
"alias": "Linkerd total Memory",
"yaxis": 2
},
{
"alias": "Istio total Memory",
"yaxis": 2
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace=~\"linkerd\", container!~\".*-proxy\",cluster=\"$cluster\",container!=\"\"})",
"legendFormat": "Linkerd total CPU seconds",
"refId": "C"
},
{
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace=~\"istio-.*\", container!~\".*-proxy\",cluster=\"$cluster\",container!=\"\"})",
"legendFormat": "Istio total CPU seconds",
"refId": "D"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "CPU utilisation - Service mesh control plane",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "decbytes",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"cacheTimeout": null,
"dashLength": 10,
"dashes": false,
"datasource": null,
"description": "",
"fill": 1,
"fillGradient": 1,
"gridPos": {
"h": 7,
"w": 6,
"x": 0,
"y": 24
},
"hiddenSeries": false,
"id": 39,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"max": false,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "Mem total",
"yaxis": 2
},
{
"alias": "Mem used",
"yaxis": 2
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "wrk2_benchmark_node_loadavg{kind!=\"raw\",exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"}",
"instant": false,
"legendFormat": "{{kind}} {{interval}}",
"refId": "A"
},
{
"expr": "wrk2_benchmark_node_meminfo{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",kind=~\"(used|total)\",cluster=\"$cluster\"}*1000",
"legendFormat": "Mem {{kind}}",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Load generator node relative CPU load and memory utilisation",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": "2",
"min": "0",
"show": true
},
{
"format": "decbytes",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fill": 1,
"fillGradient": 1,
"gridPos": {
"h": 7,
"w": 6,
"x": 6,
"y": 24
},
"hiddenSeries": false,
"id": 32,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"max": false,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace=~\"$instance.*\", container!=\"POD\",cluster=\"$cluster\"}",
"legendFormat": "{{container}}-{{namespace}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Application CPU consumption",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fill": 1,
"fillGradient": 1,
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 24
},
"hiddenSeries": false,
"id": 50,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"hideEmpty": true,
"max": false,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "instance:node_load1_per_cpu:ratio{cluster=\"$cluster\"}",
"legendFormat": "{{instance}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Cluster node loadavg (1m) per CPU thread",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"content": "<hr>\n<center><h5> Benchmark results (updated after a benchmark run has concluded.)</h5></center>",
"datasource": null,
"gridPos": {
"h": 2,
"w": 24,
"x": 0,
"y": 31
},
"id": 37,
"mode": "html",
"options": {},
"timeFrom": null,
"timeShift": null,
"title": "",
"transparent": true,
"type": "text"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": null,
"decimals": null,
"format": "dateTimeAsIso",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 2,
"x": 0,
"y": 33
},
"id": 46,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"expr": "wrk2_benchmark_run_runtime{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",kind=\"start\",cluster=\"$cluster\"} * 1000",
"instant": true,
"legendFormat": "",
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "started",
"transparent": true,
"type": "singlestat",
"valueFontSize": "50%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": null,
"decimals": null,
"format": "dateTimeAsIso",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 2,
"x": 2,
"y": 33
},
"id": 47,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"expr": "wrk2_benchmark_run_runtime{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",kind=\"end\",cluster=\"$cluster\"} * 1000",
"instant": true,
"legendFormat": "",
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "concluded",
"transparent": true,
"type": "singlestat",
"valueFontSize": "50%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": null,
"decimals": null,
"format": "s",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 1,
"x": 4,
"y": 33
},
"id": 48,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"expr": "wrk2_benchmark_run_runtime{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",kind=\"duration\",cluster=\"$cluster\"}",
"instant": true,
"legendFormat": "",
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "length",
"transparent": true,
"type": "singlestat",
"valueFontSize": "50%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": null,
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 2,
"x": 5,
"y": 33
},
"id": 43,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"expr": "sum(wrk2_benchmark_run_average_tcp_reconnect_rate{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"})",
"instant": true,
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Avg. TCP reconnects",
"transparent": true,
"type": "singlestat",
"valueFontSize": "50%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": null,
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 2,
"x": 7,
"y": 33
},
"id": 34,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"expr": "wrk2_benchmark_run_thread_count{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"}",
"instant": true,
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Load generator threads",
"transparent": true,
"type": "singlestat",
"valueFontSize": "50%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": null,
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 2,
"x": 9,
"y": 33
},
"id": 28,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"expr": "wrk2_benchmark_run_requested_rps{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"}",
"instant": true,
"legendFormat": "",
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Requested RPS",
"transparent": true,
"type": "singlestat",
"valueFontSize": "50%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"datasource": null,
"gridPos": {
"h": 11,
"w": 13,
"x": 11,
"y": 33
},
"id": 17,
"options": {
"displayMode": "gradient",
"fieldOptions": {
"calcs": [
"lastNotNull"
],
"defaults": {
"decimals": 3,
"mappings": [],
"max": 10000,
"min": 0,
"thresholds": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 600
},
{
"color": "red",
"value": 1000
}
],
"unit": "ms"
},
"override": {},
"values": false
},
"orientation": "vertical"
},
"pluginVersion": "6.5.0",
"targets": [
{
"expr": "wrk2_benchmark_latency_ms{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"}",
"format": "time_series",
"instant": true,
"intervalFactor": 1,
"legendFormat": "{{p}} percentile",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Latency percentile histogram (milliseconds)",
"transparent": true,
"type": "bargauge"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": null,
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 2,
"x": 5,
"y": 35
},
"id": 27,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"expr": "wrk2_benchmark_run_requests{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"}",
"instant": true,
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Requests sent",
"transparent": true,
"type": "singlestat",
"valueFontSize": "50%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": null,
"format": "decbytes",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 2,
"x": 7,
"y": 35
},
"id": 26,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"expr": "wrk2_benchmark_bytes_read{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"}",
"instant": true,
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Total bytes read",
"transparent": true,
"type": "singlestat",
"valueFontSize": "50%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": null,
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 2,
"x": 9,
"y": 35
},
"id": 44,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"expr": "wrk2_benchmark_run_rps{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"}",
"instant": true,
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Effective RPS",
"transparent": true,
"type": "singlestat",
"valueFontSize": "50%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"columns": [],
"datasource": null,
"fontSize": "100%",
"gridPos": {
"h": 7,
"w": 5,
"x": 0,
"y": 36
},
"id": 24,
"options": {},
"pageSize": null,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
},
"styles": [
{
"alias": "Time",
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "Time",
"type": "hidden"
},
{
"alias": "",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"decimals": 2,
"pattern": "/.*/",
"thresholds": [],
"type": "number",
"unit": "short"
}
],
"targets": [
{
"expr": "wrk2_benchmark_url_call_count{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"}",
"instant": true,
"legendFormat": "{{url}}",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "URL call counts",
"transform": "timeseries_to_rows",
"transparent": true,
"type": "table"
},
{
"columns": [],
"datasource": null,
"fontSize": "100%",
"gridPos": {
"h": 7,
"w": 2,
"x": 5,
"y": 37
},
"id": 22,
"options": {},
"pageSize": null,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
},
"styles": [
{
"alias": "",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": null,
"link": false,
"mappingType": 1,
"pattern": "Time",
"thresholds": [],
"type": "hidden",
"unit": "short"
},
{
"alias": "",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"decimals": 2,
"pattern": "/.*/",
"thresholds": [],
"type": "number",
"unit": "short"
}
],
"targets": [
{
"expr": "wrk2_benchmark_socket_errors{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"}",
"instant": true,
"legendFormat": "Socket {{t}}",
"refId": "A"
},
{
"expr": "wrk2_benchmark_http_errors{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"}",
"instant": true,
"legendFormat": "HTTP ret != 200",
"refId": "B"
},
{
"expr": "wrk2_benchmark_requests_timed_out{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"}",
"instant": true,
"legendFormat": "HTTP timeout",
"refId": "C"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Transport Errors",
"transform": "timeseries_to_rows",
"transparent": true,
"type": "table"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": null,
"description": "",
"fontSize": "100%",
"gridPos": {
"h": 7,
"w": 4,
"x": 7,
"y": 37
},
"id": 45,
"links": [],
"options": {},
"pageSize": null,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
},
"styles": [
{
"alias": "Time",
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "Time",
"type": "hidden"
},
{
"alias": "",
"colorMode": "value",
"colors": [
"rgba(50, 172, 45, 0.97)",
"rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "Value",
"thresholds": [
"0.8",
"1"
],
"type": "number",
"unit": "short"
}
],
"targets": [
{
"expr": "wrk2_benchmark_run_node_loadavg{kind!=\"raw\",exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"}",
"instant": true,
"legendFormat": "{{kind}} {{interval}}",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Load generator node(s) per core / thread CPU load",
"transform": "timeseries_to_rows",
"transparent": true,
"type": "table"
},
{
"datasource": null,
"gridPos": {
"h": 48,
"w": 24,
"x": 0,
"y": 44
},
"id": 18,
"options": {
"displayMode": "gradient",
"fieldOptions": {
"calcs": [
"lastNotNull"
],
"defaults": {
"decimals": 3,
"mappings": [],
"max": 10000,
"min": 0,
"thresholds": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 600
},
{
"color": "red",
"value": 1000
}
],
"unit": "ms"
},
"override": {},
"values": false
},
"orientation": "horizontal"
},
"pluginVersion": "6.5.0",
"targets": [
{
"expr": "wrk2_benchmark_latency_detailed_ms{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",cluster=\"$cluster\"}",
"format": "time_series",
"instant": true,
"intervalFactor": 1,
"legendFormat": " {{p}}",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Detailed latency percentile histogram (milliseconds)",
"transparent": true,
"type": "bargauge"
}
],
"refresh": false,
"schemaVersion": 21,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"allValue": null,
"current": {
"text": "bc-ams1-2020724212341",
"value": "bc-ams1-2020724212341"
},
"datasource": "Prometheus",
"definition": "wrk2_benchmark_progress",
"hide": 0,
"includeAll": false,
"label": "Cluster",
"multi": false,
"name": "cluster",
"options": [],
"query": "wrk2_benchmark_progress",
"refresh": 2,
"regex": "/.*cluster=\"([^\"]*).*/",
"skipUrlSync": false,
"sort": 1,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {
"text": "bare-metal",
"value": "bare-metal"
},
"datasource": "Prometheus",
"definition": "wrk2_benchmark_progress{cluster=\"$cluster\"}",
"hide": 0,
"includeAll": false,
"label": "Benchmark job",
"multi": false,
"name": "job",
"options": [],
"query": "wrk2_benchmark_progress{cluster=\"$cluster\"}",
"refresh": 2,
"regex": "/.*exported_job=\"([^\"]*).*/",
"skipUrlSync": false,
"sort": 1,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {
"text": "emojivoto",
"value": "emojivoto"
},
"datasource": "Prometheus",
"definition": "wrk2_benchmark_progress{cluster=\"$cluster\",exported_job=\"$job\"}",
"hide": 0,
"includeAll": false,
"label": "Target application",
"multi": false,
"name": "instance",
"options": [],
"query": "wrk2_benchmark_progress{cluster=\"$cluster\",exported_job=\"$job\"}",
"refresh": 2,
"regex": "/.*exported_instance=\"([^\"]*).*/",
"skipUrlSync": false,
"sort": 1,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {
"text": "2020-07-27_03:45:41",
"value": "2020-07-27_03:45:41"
},
"datasource": "Prometheus",
"definition": "wrk2_benchmark_progress{cluster=\"$cluster\",exported_job=\"$job\",exported_instance=\"$instance\"}",
"hide": 0,
"includeAll": false,
"label": "Benchmark run",
"multi": false,
"name": "run",
"options": [],
"query": "wrk2_benchmark_progress{cluster=\"$cluster\",exported_job=\"$job\",exported_instance=\"$instance\"}",
"refresh": 2,
"regex": "/.*run=\"([^\"]*).*/",
"skipUrlSync": false,
"sort": 2,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
},
"time": {
"from": "2020-07-27T07:54:53.000Z",
"to": "2020-07-27T08:05:58.000Z"
},
"timepicker": {
"refresh_intervals": [
"1s",
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "wrk2 benchmark cockpit (orchestrator)",
"uid": null,
"version": 9
}
}
================================================
FILE: dashboards/grafana-wrk2-cockpit.json
================================================
{
"meta": {
"type": "db",
"canSave": true,
"canEdit": true,
"canAdmin": false,
"canStar": true,
"slug": "wrk2-benchmark-cockpit",
"expires": "0001-01-01T00:00:00Z",
"created": "2020-07-23T17:21:04Z",
"updated": "2020-07-23T17:23:23Z",
"updatedBy": "admin",
"createdBy": "Anonymous",
"version": 2,
"hasAcl": false,
"isFolder": false,
"folderId": 0,
"folderTitle": "General",
"folderUrl": "",
"provisioned": false,
"provisionedExternalId": ""
},
"dashboard": {
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": 27,
"iteration": 1595524872819,
"links": [],
"panels": [
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": null,
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 24,
"x": 0,
"y": 0
},
"id": 8,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"expr": "wrk2_benchmark_progress{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",status=\"init\"}",
"instant": true,
"legendFormat": "{{exported_job}}: {{exported_instance}} {{run}} ",
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "",
"transparent": true,
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "name"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": null,
"decimals": 1,
"format": "s",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 4,
"w": 2,
"x": 0,
"y": 2
},
"id": 35,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"pluginVersion": "6.5.0",
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"expr": "wrk2_benchmark_duration{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\"}",
"instant": true,
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Benchmark duration",
"transparent": true,
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"datasource": null,
"gridPos": {
"h": 4,
"w": 4,
"x": 2,
"y": 2
},
"id": 13,
"options": {
"displayMode": "lcd",
"fieldOptions": {
"calcs": [
"lastNotNull"
],
"defaults": {
"mappings": [],
"max": 100,
"min": 0,
"thresholds": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"override": {},
"values": false
},
"orientation": "horizontal"
},
"pluginVersion": "6.5.0",
"targets": [
{
"expr": "wrk2_benchmark_progress{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",status=~\"(init|run)\"}",
"instant": true,
"legendFormat": "{{status}}",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Progress",
"transparent": true,
"type": "bargauge"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 10,
"w": 10,
"x": 6,
"y": 2
},
"hiddenSeries": false,
"id": 4,
"legend": {
"alignAsTable": false,
"avg": false,
"current": true,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(wrk2_benchmark_average_rps{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\"})",
"instant": false,
"legendFormat": "Average RPS",
"refId": "A"
},
{
"expr": "sum(wrk2_benchmark_current_rps{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\"})",
"instant": false,
"legendFormat": "Current RPS",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Overall RPS (average and current)",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 5,
"w": 8,
"x": 16,
"y": 2
},
"hiddenSeries": false,
"id": 15,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"max": false,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "wrk2_benchmark_current_rps{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\"}",
"instant": false,
"legendFormat": "{{label}}{{thread}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Current RPS, per thread",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": null,
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 2,
"x": 0,
"y": 6
},
"id": 51,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"expr": "wrk2_benchmark_progress{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\",status=\"init\"}",
"instant": true,
"legendFormat": "{{rps}}",
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Requested RPS",
"transparent": true,
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "name"
},
{
"cacheTimeout": null,
"datasource": null,
"gridPos": {
"h": 3,
"w": 4,
"x": 2,
"y": 6
},
"id": 2,
"links": [],
"options": {
"fieldOptions": {
"calcs": [
"lastNotNull"
],
"defaults": {
"mappings": [
{
"id": 0,
"op": "=",
"text": "N/A",
"type": 1,
"value": "null"
}
],
"max": 100,
"min": 0,
"nullValueMode": "connected",
"thresholds": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
],
"unit": "none"
},
"override": {},
"values": false
},
"orientation": "horizontal",
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "6.5.0",
"targets": [
{
"expr": "sum(wrk2_benchmark_average_rps{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\"})",
"instant": true,
"legendFormat": "Average RPS",
"refId": "B"
},
{
"expr": "sum(wrk2_benchmark_current_rps{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\"})",
"instant": true,
"legendFormat": "Current RPS",
"refId": "C"
}
],
"timeFrom": null,
"timeShift": null,
"title": "",
"transparent": true,
"type": "gauge"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"decimals": 1,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 5,
"w": 8,
"x": 16,
"y": 7
},
"hiddenSeries": false,
"id": 14,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"max": false,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "wrk2_benchmark_average_rps{exported_instance=\"$instance\",run=\"$run\",exported_job=\"$job\"}",
"instant": false,
"legendFormat": "{{label}}{{thread}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Average RPS, per thread",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 1
gitextract_f17hh3bb/
├── .gitignore
├── LICENSE
├── README.md
├── configs/
│ ├── benchmark/
│ │ ├── .helmignore
│ │ ├── Chart.yaml
│ │ ├── README.md
│ │ ├── templates/
│ │ │ ├── _helpers.tpl
│ │ │ ├── psp.yaml
│ │ │ ├── servicemonitor.yaml
│ │ │ └── wrk2.yaml
│ │ └── values.yaml
│ ├── bookinfo/
│ │ ├── .helmignore
│ │ ├── Chart.yaml
│ │ ├── README.md
│ │ ├── templates/
│ │ │ ├── deployment.yaml
│ │ │ ├── psp.yml
│ │ │ ├── service-account.yaml
│ │ │ ├── service.yaml
│ │ │ └── servicemonitor.yaml
│ │ └── values.yaml
│ ├── dockerfiles/
│ │ └── jobrunner/
│ │ ├── Dockerfile
│ │ └── Makefile
│ ├── emojivoto/
│ │ ├── .helmignore
│ │ ├── Chart.yaml
│ │ ├── README.md
│ │ ├── templates/
│ │ │ ├── deployment.yaml
│ │ │ ├── psp.yaml
│ │ │ ├── service.yml
│ │ │ ├── serviceaccount.yml
│ │ │ └── servicemonitor.yaml
│ │ └── values.yaml
│ ├── equinix-metal-cluster.lokocfg
│ ├── lokocfg.vars.example
│ ├── metrics-merger/
│ │ ├── .helmignore
│ │ ├── Chart.yaml
│ │ ├── README.md
│ │ ├── templates/
│ │ │ └── metrics-merger.yaml
│ │ └── values.yaml
│ ├── orchestrator/
│ │ ├── .gitignore
│ │ ├── .helmignore
│ │ ├── Chart.yaml
│ │ ├── README.md
│ │ ├── cluster-install-configs/
│ │ │ ├── aws/
│ │ │ │ ├── aws.lokocfg
│ │ │ │ └── aws.vars.envsubst
│ │ │ ├── cleanup-setup.sh
│ │ │ ├── cleanup.sh
│ │ │ ├── equinix-metal/
│ │ │ │ ├── equinix-metal.lokocfg
│ │ │ │ └── equinix-metal.vars.envsubst
│ │ │ ├── run-smi-benchmark.sh
│ │ │ └── run.sh
│ │ ├── templates/
│ │ │ ├── bc-assets-pvc.yaml
│ │ │ ├── binaries-pvc.yaml
│ │ │ ├── cloud-secrets.yaml
│ │ │ ├── cluster-install-configs.yaml
│ │ │ ├── debug-jobs.yaml
│ │ │ ├── deployment.yaml
│ │ │ ├── download-benchmark-containers.yaml
│ │ │ ├── download-charts.yaml
│ │ │ ├── download-helm.yaml
│ │ │ ├── download-kubectl.yaml
│ │ │ ├── download-lokoctl.yaml
│ │ │ ├── download-terraform.yaml
│ │ │ ├── general-config.yaml
│ │ │ ├── rbac.yaml
│ │ │ ├── serviceaccount.yaml
│ │ │ └── ssh-keys.yaml
│ │ └── values.yaml
│ └── pushgateway/
│ ├── .helmignore
│ ├── Chart.yaml
│ ├── README.md
│ ├── templates/
│ │ ├── contour-configs.yaml
│ │ ├── deployment.yaml
│ │ ├── service.yaml
│ │ └── servicemonitor.yaml
│ └── values.yaml
├── dashboards/
│ ├── download_dashboard.sh
│ ├── grafana-wrk2-cockpit-orchestrator.json
│ ├── grafana-wrk2-cockpit.json
│ ├── grafana-wrk2-summary-orchestrator.json
│ ├── grafana-wrk2-summary.json
│ └── upload_dashboard.sh
├── metrics-merger/
│ ├── Dockerfile
│ ├── README.md
│ └── merger.py
└── scripts/
└── run_benchmarks.sh
SYMBOL INDEX (7 symbols across 1 files) FILE: metrics-merger/merger.py function get_series (line 15) | def get_series(p, series): function get_results (line 21) | def get_results(p, query, past_days=7): function get_completed_runs (line 31) | def get_completed_runs(p, mesh): function run_time_info (line 38) | def run_time_info(p, run, past_days=7): function get_latency_histogram (line 53) | def get_latency_histogram(run,detailed=False,past_days=7): function get_latency_histograms (line 83) | def get_latency_histograms(p, mesh, detailed=False, past_days=7): function create_summary_gauge (line 117) | def create_summary_gauge(p, mesh, r, detailed=False, past_days=7):
Condensed preview — 85 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (586K chars).
[
{
"path": ".gitignore",
"chars": 35,
"preview": "configs/lokocfg.vars\ndashboards/.*\n"
},
{
"path": "LICENSE",
"chars": 9144,
"preview": "Apache License\nVersion 2.0, January 2004\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AN"
},
{
"path": "README.md",
"chars": 6062,
"preview": "# Kinvolk service mesh benchmark suite\n\nThis is v2.0 release of our benchmark automation suite.\n\nPlease refer to the [1."
},
{
"path": "configs/benchmark/.helmignore",
"chars": 349,
"preview": "# Patterns to ignore when building packages.\n# This supports shell glob matching, relative path matching, and\n# negation"
},
{
"path": "configs/benchmark/Chart.yaml",
"chars": 123,
"preview": "apiVersion: v2\nname: benchmark\ndescription: A Helm chart for Kubernetes\ntype: application\nversion: 0.1.0\nappVersion: 0.1"
},
{
"path": "configs/benchmark/README.md",
"chars": 778,
"preview": "# benchmark\n\n## Install\n\n```bash\nhelm install --create-namespace benchmark --namespace benchmark .\n```\n\n## Upgrade\n\n```b"
},
{
"path": "configs/benchmark/templates/_helpers.tpl",
"chars": 2732,
"preview": "{{- define \"emojivotoURLs\" }}\n{{- $count := .Values.wrk2.app.count | int }}\n{{- range $i, $e := until $count }}\n "
},
{
"path": "configs/benchmark/templates/psp.yaml",
"chars": 1280,
"preview": "apiVersion: policy/v1beta1\nkind: PodSecurityPolicy\nmetadata:\n name: benchmark-data-plane-{{.Release.Name}}\nspec:\n allo"
},
{
"path": "configs/benchmark/templates/servicemonitor.yaml",
"chars": 979,
"preview": "apiVersion: v1\nkind: Service\nmetadata:\n name: wrk2-prometheus\n namespace: {{.Release.Namespace}}\n labels:\n app: wr"
},
{
"path": "configs/benchmark/templates/wrk2.yaml",
"chars": 2020,
"preview": "apiVersion: batch/v1\nkind: Job\nmetadata:\n name: wrk2-prometheus\n namespace: {{.Release.Namespace}}\n labels:\n jobgr"
},
{
"path": "configs/benchmark/values.yaml",
"chars": 172,
"preview": "wrk2:\n duration: 120\n connections: 96\n RPS: 3000\n initDelay: 0\n serviceMesh: \"\"\n app:\n name: emojivoto\n coun"
},
{
"path": "configs/bookinfo/.helmignore",
"chars": 349,
"preview": "# Patterns to ignore when building packages.\n# This supports shell glob matching, relative path matching, and\n# negation"
},
{
"path": "configs/bookinfo/Chart.yaml",
"chars": 1098,
"preview": "apiVersion: v2\nname: bookinfo\ndescription: A Helm chart for Kubernetes\n\n# A chart can be either an 'application' or a 'l"
},
{
"path": "configs/bookinfo/README.md",
"chars": 182,
"preview": "# bookinfo app\n\n## Install\n\n```bash\nhelm install --create-namespace bookinfo-1 --namespace bookinfo-1 .\n```\n\n## Upgrade\n"
},
{
"path": "configs/bookinfo/templates/deployment.yaml",
"chars": 5190,
"preview": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: details-v1\n namespace: {{.Release.Namespace}}\n labels:\n app:"
},
{
"path": "configs/bookinfo/templates/psp.yml",
"chars": 1534,
"preview": "apiVersion: policy/v1beta1\nkind: PodSecurityPolicy\nmetadata:\n name: bookinfo-data-plane-{{.Release.Name}}\nspec:\n allow"
},
{
"path": "configs/bookinfo/templates/service-account.yaml",
"chars": 536,
"preview": "apiVersion: v1\nkind: ServiceAccount\nmetadata:\n name: bookinfo-details\n namespace: {{.Release.Namespace}}\n labels:\n "
},
{
"path": "configs/bookinfo/templates/service.yaml",
"chars": 952,
"preview": "apiVersion: v1\nkind: Service\nmetadata:\n name: details\n namespace: {{.Release.Namespace}}\n labels:\n app: details\n "
},
{
"path": "configs/bookinfo/templates/servicemonitor.yaml",
"chars": 635,
"preview": "apiVersion: monitoring.coreos.com/v1\nkind: ServiceMonitor\nmetadata:\n labels:\n servicemesh: linkerd\n app: bookinfo"
},
{
"path": "configs/bookinfo/values.yaml",
"chars": 0,
"preview": ""
},
{
"path": "configs/dockerfiles/jobrunner/Dockerfile",
"chars": 82,
"preview": "FROM fedora:32\n\nRUN dnf install -y gettext openssh-clients \\\n && dnf clean all\n"
},
{
"path": "configs/dockerfiles/jobrunner/Makefile",
"chars": 130,
"preview": "build-image:\n\tdocker build -t quay.io/kinvolk/smb-jobrunner .\n\npush-image: build-image\n\tdocker push quay.io/kinvolk/smb-"
},
{
"path": "configs/emojivoto/.helmignore",
"chars": 349,
"preview": "# Patterns to ignore when building packages.\n# This supports shell glob matching, relative path matching, and\n# negation"
},
{
"path": "configs/emojivoto/Chart.yaml",
"chars": 1099,
"preview": "apiVersion: v2\nname: emojivoto\ndescription: A Helm chart for Kubernetes\n\n# A chart can be either an 'application' or a '"
},
{
"path": "configs/emojivoto/README.md",
"chars": 179,
"preview": "# Emojivoto app\n\n## Install\n\n```\nhelm install --create-namespace emojivoto-1 --namespace emojivoto-1 .\n```\n\n## Upgrade\n\n"
},
{
"path": "configs/emojivoto/templates/deployment.yaml",
"chars": 3050,
"preview": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n labels:\n app.kubernetes.io/name: emoji\n app.kubernetes.io/part-of"
},
{
"path": "configs/emojivoto/templates/psp.yaml",
"chars": 1417,
"preview": "apiVersion: policy/v1beta1\nkind: PodSecurityPolicy\nmetadata:\n name: emojivoto-data-plane-{{.Release.Name}}\nspec:\n allo"
},
{
"path": "configs/emojivoto/templates/service.yml",
"chars": 781,
"preview": "apiVersion: v1\nkind: Service\nmetadata:\n name: emoji-svc\n namespace: {{.Release.Namespace}}\n labels:\n app: emojivot"
},
{
"path": "configs/emojivoto/templates/serviceaccount.yml",
"chars": 295,
"preview": "apiVersion: v1\nkind: ServiceAccount\nmetadata:\n name: emoji\n namespace: {{.Release.Namespace}}\n---\napiVersion: v1\nkind:"
},
{
"path": "configs/emojivoto/templates/servicemonitor.yaml",
"chars": 639,
"preview": "apiVersion: monitoring.coreos.com/v1\nkind: ServiceMonitor\nmetadata:\n labels:\n servicemesh: linkerd\n app: emojivot"
},
{
"path": "configs/emojivoto/values.yaml",
"chars": 0,
"preview": ""
},
{
"path": "configs/equinix-metal-cluster.lokocfg",
"chars": 1725,
"preview": "# Variables\nvariable \"metal_project_id\" {}\nvariable \"route53_zone\" {}\nvariable \"state_s3_bucket\" {}\nvariable \"state_s3_k"
},
{
"path": "configs/lokocfg.vars.example",
"chars": 545,
"preview": "metal_project_id = \"[ID of the equinix metal project to deploy to]\"\nroute53_zone = \"[cluster's route53 zone. Needs to al"
},
{
"path": "configs/metrics-merger/.helmignore",
"chars": 349,
"preview": "# Patterns to ignore when building packages.\n# This supports shell glob matching, relative path matching, and\n# negation"
},
{
"path": "configs/metrics-merger/Chart.yaml",
"chars": 128,
"preview": "apiVersion: v2\nname: metrics-merger\ndescription: A Helm chart for Kubernetes\ntype: application\nversion: 0.1.0\nappVersion"
},
{
"path": "configs/metrics-merger/README.md",
"chars": 273,
"preview": "# metrics merger\n\n## Install\n\n```\nhelm install metrics-merger --create-namespace --namespace metrics-merger .\n```\n\n## Up"
},
{
"path": "configs/metrics-merger/templates/metrics-merger.yaml",
"chars": 805,
"preview": "apiVersion: batch/v1\nkind: Job\nmetadata:\n name: wrk2-metrics-merger\n labels:\n jobgroup: wrk2-metrics-merger\n names"
},
{
"path": "configs/metrics-merger/values.yaml",
"chars": 131,
"preview": "prometheusServiceUrl: \"http://prometheus-operator-kube-p-prometheus.monitoring:9090\"\npushgatewayURL: \"pushgateway.monito"
},
{
"path": "configs/orchestrator/.gitignore",
"chars": 17,
"preview": "values-real.yaml\n"
},
{
"path": "configs/orchestrator/.helmignore",
"chars": 349,
"preview": "# Patterns to ignore when building packages.\n# This supports shell glob matching, relative path matching, and\n# negation"
},
{
"path": "configs/orchestrator/Chart.yaml",
"chars": 1102,
"preview": "apiVersion: v2\nname: orchestrator\ndescription: A Helm chart for Kubernetes\n\n# A chart can be either an 'application' or "
},
{
"path": "configs/orchestrator/README.md",
"chars": 2340,
"preview": "# Orchestrator\n\nThis chart is used to deploy the orchestrator application which can be used to deploy benchmarking clust"
},
{
"path": "configs/orchestrator/cluster-install-configs/aws/aws.lokocfg",
"chars": 2326,
"preview": "variable \"cluster_name\" {}\nvariable \"ssh_pubkey\" {}\nvariable \"route53_zone\" {}\nvariable \"route53_zone_id\" {}\nvariable \"a"
},
{
"path": "configs/orchestrator/cluster-install-configs/aws/aws.vars.envsubst",
"chars": 537,
"preview": "# Cluster specific config.\ncluster_name = \"$CLUSTER_NAME\"\nregion = \"$REGION\"\n\n# Same across all clusters.\nssh_pubk"
},
{
"path": "configs/orchestrator/cluster-install-configs/cleanup-setup.sh",
"chars": 582,
"preview": "#!/bin/bash\n\nset -euo pipefail\n\nfunction log() {\n local message=\"${1:-\"\"}\"\n echo -e \"\\\\033[1;37m${message}\\\\033[0m\"\n}\n"
},
{
"path": "configs/orchestrator/cluster-install-configs/cleanup.sh",
"chars": 524,
"preview": "#!/bin/bash\n\nset -euo pipefail\n\nfunction log() {\n local message=\"${1:-\"\"}\"\n echo -e \"\\\\033[1;37m${message}\\\\033[0m\"\n}\n"
},
{
"path": "configs/orchestrator/cluster-install-configs/equinix-metal/equinix-metal.lokocfg",
"chars": 2226,
"preview": "variable \"cluster_name\" {}\nvariable \"facility\" {}\nvariable \"ssh_pubkey\" {}\nvariable \"metal_project_id\" {}\nvariable \"publ"
},
{
"path": "configs/orchestrator/cluster-install-configs/equinix-metal/equinix-metal.vars.envsubst",
"chars": 429,
"preview": "# Randomly generated\ncluster_name = \"$CLUSTER_NAME\"\n\n# Change per facility\nfacility = \"$REGION\"\npublic_eip = \"$PUBLIC_"
},
{
"path": "configs/orchestrator/cluster-install-configs/run-smi-benchmark.sh",
"chars": 9576,
"preview": "#!/bin/bash\n\nset -euo pipefail\n\nfunction log() {\n local message=\"${1:-\"\"}\"\n echo -e \"\\\\033[1;37m${message}\\\\033[0m\"\n}\n"
},
{
"path": "configs/orchestrator/cluster-install-configs/run.sh",
"chars": 1641,
"preview": "#!/bin/bash\n\nset -euo pipefail\n\nfunction log() {\n local message=\"${1:-\"\"}\"\n echo -e \"\\\\033[1;37m${message}\\\\033[0m\"\n}\n"
},
{
"path": "configs/orchestrator/templates/bc-assets-pvc.yaml",
"chars": 262,
"preview": "apiVersion: v1\nkind: PersistentVolumeClaim\nmetadata:\n labels:\n name: bc-assets\n namespace: orchestrator\nspec:\n acces"
},
{
"path": "configs/orchestrator/templates/binaries-pvc.yaml",
"chars": 265,
"preview": "apiVersion: v1\nkind: PersistentVolumeClaim\nmetadata:\n labels:\n name: binaries\n namespace: orchestrator\nspec:\n access"
},
{
"path": "configs/orchestrator/templates/cloud-secrets.yaml",
"chars": 1481,
"preview": "apiVersion: v1\nkind: Secret\nmetadata:\n name: cloud-secrets\n namespace: orchestrator\ndata:\n {{if .Values.clouds.em.tok"
},
{
"path": "configs/orchestrator/templates/cluster-install-configs.yaml",
"chars": 819,
"preview": "apiVersion: v1\nkind: ConfigMap\nmetadata:\n name: cluster-install-configs\n namespace: orchestrator\ndata:\n{{ if eq .Value"
},
{
"path": "configs/orchestrator/templates/debug-jobs.yaml",
"chars": 1567,
"preview": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n labels:\n app: debug-jobs\n name: debug-jobs\n namespace: orchestrato"
},
{
"path": "configs/orchestrator/templates/deployment.yaml",
"chars": 1410,
"preview": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n labels:\n app: orchestrator\n name: orchestrator\n namespace: orchest"
},
{
"path": "configs/orchestrator/templates/download-benchmark-containers.yaml",
"chars": 1171,
"preview": "apiVersion: batch/v1\nkind: Job\nmetadata:\n name: download-benchmark-containers-repository\n namespace: orchestrator\nspec"
},
{
"path": "configs/orchestrator/templates/download-charts.yaml",
"chars": 1113,
"preview": "apiVersion: batch/v1\nkind: Job\nmetadata:\n name: download-charts\n namespace: orchestrator\nspec:\n template:\n metadat"
},
{
"path": "configs/orchestrator/templates/download-helm.yaml",
"chars": 955,
"preview": "apiVersion: batch/v1\nkind: Job\nmetadata:\n name: download-helm\n namespace: orchestrator\nspec:\n template:\n metadata:"
},
{
"path": "configs/orchestrator/templates/download-kubectl.yaml",
"chars": 1127,
"preview": "apiVersion: batch/v1\nkind: Job\nmetadata:\n name: download-kubectl\n namespace: orchestrator\nspec:\n template:\n metada"
},
{
"path": "configs/orchestrator/templates/download-lokoctl.yaml",
"chars": 1115,
"preview": "apiVersion: batch/v1\nkind: Job\nmetadata:\n name: download-lokoctl\n namespace: orchestrator\nspec:\n template:\n metada"
},
{
"path": "configs/orchestrator/templates/download-terraform.yaml",
"chars": 979,
"preview": "apiVersion: batch/v1\nkind: Job\nmetadata:\n name: download-terraform\n namespace: orchestrator\nspec:\n template:\n meta"
},
{
"path": "configs/orchestrator/templates/general-config.yaml",
"chars": 183,
"preview": "apiVersion: v1\nkind: ConfigMap\nmetadata:\n name: general-config\n namespace: orchestrator\ndata:\n # Add more non-secret "
},
{
"path": "configs/orchestrator/templates/rbac.yaml",
"chars": 1529,
"preview": "apiVersion: rbac.authorization.k8s.io/v1\nkind: ClusterRole\nmetadata:\n name: oc-permissions\nrules:\n- apiGroups:\n - \"\"\n "
},
{
"path": "configs/orchestrator/templates/serviceaccount.yaml",
"chars": 282,
"preview": "apiVersion: v1\nkind: ServiceAccount\nmetadata:\n name: orchestrator\n namespace: orchestrator\n---\napiVersion: v1\nkind: Se"
},
{
"path": "configs/orchestrator/templates/ssh-keys.yaml",
"chars": 186,
"preview": "apiVersion: v1\nkind: Secret\nmetadata:\n name: ssh-keys\n namespace: orchestrator\ndata:\n id_rsa: {{ .Values.sshKey.priva"
},
{
"path": "configs/orchestrator/values.yaml",
"chars": 1886,
"preview": "lokoctl:\n # Use a different branch if you are using experimental version of Lokomotive.\n branch: master\n\ncharts:\n # U"
},
{
"path": "configs/pushgateway/.helmignore",
"chars": 349,
"preview": "# Patterns to ignore when building packages.\n# This supports shell glob matching, relative path matching, and\n# negation"
},
{
"path": "configs/pushgateway/Chart.yaml",
"chars": 125,
"preview": "apiVersion: v2\nname: pushgateway\ndescription: A Helm chart for Kubernetes\ntype: application\nversion: 0.1.0\nappVersion: 0"
},
{
"path": "configs/pushgateway/README.md",
"chars": 2219,
"preview": "# Prometheus pushgateway\n\n## Install\n\n```\nhelm install pushgateway --namespace monitoring .\n```\n\n## Uninstall\n\n```\nhelm "
},
{
"path": "configs/pushgateway/templates/contour-configs.yaml",
"chars": 3450,
"preview": "{{ if .Values.ingress.enabled }}\napiVersion: v1\nkind: ServiceAccount\nmetadata:\n name: htpasswd\n namespace: monitoring\n"
},
{
"path": "configs/pushgateway/templates/deployment.yaml",
"chars": 561,
"preview": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n annotations:\n prometheus.io/scrape: 'true'\n name: pushgateway\n nam"
},
{
"path": "configs/pushgateway/templates/service.yaml",
"chars": 256,
"preview": "apiVersion: v1\nkind: Service\nmetadata:\n labels:\n name: pushgateway\n visualize: \"true\"\n app: pushgateway\n name"
},
{
"path": "configs/pushgateway/templates/servicemonitor.yaml",
"chars": 337,
"preview": "apiVersion: monitoring.coreos.com/v1\nkind: ServiceMonitor\nmetadata:\n labels:\n app: pushgateway\n release: promethe"
},
{
"path": "configs/pushgateway/values.yaml",
"chars": 430,
"preview": "# Possible values are [debug, info, warn, error]\nlogLevel: error\n\ningress:\n enabled: false\n host: pushgateway.foobar.c"
},
{
"path": "dashboards/download_dashboard.sh",
"chars": 527,
"preview": "#!/bin/bash\n\n\n[ $# -lt 3 ] && {\n echo\n echo \"$0 - download (backup) a Grafana dashboard, write to STDOUT\"\n echo"
},
{
"path": "dashboards/grafana-wrk2-cockpit-orchestrator.json",
"chars": 78561,
"preview": "{\n \"meta\": {\n \"type\": \"db\",\n \"canSave\": true,\n \"canEdit\": true,\n \"canAdmin\": false,\n \"canStar\": true,\n "
},
{
"path": "dashboards/grafana-wrk2-cockpit.json",
"chars": 76879,
"preview": "{\n \"meta\": {\n \"type\": \"db\",\n \"canSave\": true,\n \"canEdit\": true,\n \"canAdmin\": false,\n \"canStar\": true,\n "
},
{
"path": "dashboards/grafana-wrk2-summary-orchestrator.json",
"chars": 129475,
"preview": "{\n \"meta\": {\n \"type\": \"db\",\n \"canSave\": true,\n \"canEdit\": true,\n \"canAdmin\": false,\n \"canStar\": true,\n "
},
{
"path": "dashboards/grafana-wrk2-summary.json",
"chars": 129251,
"preview": "{\n \"meta\": {\n \"type\": \"db\",\n \"canSave\": true,\n \"canEdit\": true,\n \"canAdmin\": false,\n \"canStar\": true,\n "
},
{
"path": "dashboards/upload_dashboard.sh",
"chars": 689,
"preview": "#!/bin/bash\n\n[ $# -lt 3 ] && {\n echo\n echo \"$0 - Upload a Grafana dashboard back-up (JOSON file) to Grafana\" \n "
},
{
"path": "metrics-merger/Dockerfile",
"chars": 229,
"preview": "FROM alpine\nMAINTAINER Kinvolk\n\nRUN apk add --update --no-cache python3 py-pip\nRUN pip install prometheus-http-client pr"
},
{
"path": "metrics-merger/README.md",
"chars": 1159,
"preview": "# Service mesh benchmark automation metrics merger\n\nThe `merger.py` tool and accompanying Docker build recipe implement "
},
{
"path": "metrics-merger/merger.py",
"chars": 5368,
"preview": "#!/usr/bin/env python3\n\nimport json\nimport time\nimport pprint\nfrom sys import argv, exit\nfrom os import environ\n\nfrom co"
},
{
"path": "scripts/run_benchmarks.sh",
"chars": 8184,
"preview": "#!/bin/bash\n\nscript_location=\"$(dirname \"${BASH_SOURCE[0]}\")\"\n\nfunction grace() {\n grace=10\n [ -n \"$2\" ] && grace="
}
]
About this extraction
This page contains the full source code of the kinvolk/service-mesh-benchmark GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 85 files (509.9 KB), approximately 138.8k tokens, and a symbol index with 7 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.