Skip to content

Commit

Permalink
Gather metrics from the job controller
Browse files Browse the repository at this point in the history
  • Loading branch information
alculquicondor committed Mar 1, 2022
1 parent 3a1ad1c commit 10f138b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
19 changes: 18 additions & 1 deletion clusterloader2/testing/batch/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ steps:
Params:
action: start
labelSelector: group = test-job
- Identifier: JobControllerSyncMetric
Method: GenericPrometheusQuery
Params:
action: start
metricName: Job sync duration
metricVersion: v1
unit: ms
queries:
- name: Perc99
query: histogram_quantile(0.99, sum(rate(job_controller_job_sync_duration_seconds_bucket[%v])) by (le))
- name: Create job
phases:
- namespaceRange:
Expand All @@ -34,4 +44,11 @@ steps:
Method: WaitForFinishedJobs
Params:
action: gather
timeout: 1m
timeout: 1m
- name: Gather metrics
measurements:
- Identifier: JobControllerSyncMetric
Method: GenericPrometheusQuery
Params:
action: gather
enableViolations: true
3 changes: 1 addition & 2 deletions clusterloader2/testing/batch/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ spec:
spec:
containers:
- name: {{.Name}}
image: bash
args: ["-c", "exit"]
image: gcr.io/k8s-staging-perf-tests/sleep:v0.0.3
restartPolicy: Never

0 comments on commit 10f138b

Please sign in to comment.