Skip to content

Commit

Permalink
Adjust the math so we don't have to deal with .333334 vs .333333
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Sauer <[email protected]>
  • Loading branch information
etsauer committed Aug 16, 2024
1 parent 9b1479f commit 3d34813
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _test/prometheus/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ tests:
- series: commit_timestamp{app="kenwilli-basic-spring-boot", commit="1a97f4bb5f05c9ef2e3791de01c02cb0610663e6", endpoint="http", exported_namespace="kenwilli-basic-spring-boot-build", image_sha="sha256:92e61fcec3cbc9a5f75793140b3d6996a864b326b0954dd7efd692cb9d3f45af", instance="10.130.0.85:8080", job="github-exporter", namespace="app-name-consistency", pod="github-exporter-3-pjmmj", service="github-exporter"}
values: '1590532194'
- series: commit_timestamp{app="kenwilli-basic-spring-boot", commit="ea67853d8f9b4f43400500f807d72cdfb5b0936d", endpoint="http", exported_namespace="kenwilli-basic-spring-boot-build", image_sha="sha256:08ab5ef50c3fa51993e4d40b62533afe6619558aaba9e3a179c451b2676db7ed", instance="10.130.0.85:8080", job="github-exporter", namespace="app-name-consistency", pod="github-exporter-3-pjmmj", service="github-exporter"}
values: '1590767500'
values: '1590750291'
- series: commit_timestamp{app="kenwilli-basic-spring-boot", commit="ea67853d8f9b4f43400500f807d72cdfb5b0936d", endpoint="http", exported_namespace="kenwilli-basic-spring-boot-build", image_sha="sha256:46332b417660900361f7185830a4eb6d5ddc7e3002944ba26ed260e83f415197", instance="10.130.0.85:8080", job="github-exporter", namespace="app-name-consistency", pod="github-exporter-3-pjmmj", service="github-exporter"}
values: '1590767500'
- series: commit_timestamp{app="kenwilli-basic-spring-boot", commit="ea67853d8f9b4f43400500f807d72cdfb5b0936d", endpoint="http", exported_namespace="kenwilli-basic-spring-boot-build", image_sha="sha256:382947b77566babcc7c6c55f50cb17469c7d068bc4b0cfbdcd4b8b33e091d133", instance="10.130.0.85:8080", job="github-exporter", namespace="app-name-consistency", pod="github-exporter-3-pjmmj", service="github-exporter"}
Expand Down Expand Up @@ -94,7 +94,7 @@ tests:
eval_time: 1m
exp_samples:
- labels: 'sdp:lead_time:by_commit{app="kenwilli-basic-spring-boot", commit="ea67853d8f9b4f43400500f807d72cdfb5b0936d", image_sha="sha256:08ab5ef50c3fa51993e4d40b62533afe6619558aaba9e3a179c451b2676db7ed"}'
value: 1028589
value: 1045798
- labels: 'sdp:lead_time:by_commit{app="kenwilli-basic-spring-boot", commit="ea67853d8f9b4f43400500f807d72cdfb5b0936d", image_sha="sha256:382947b77566babcc7c6c55f50cb17469c7d068bc4b0cfbdcd4b8b33e091d133"}'
value: 1047163
- labels: 'sdp:lead_time:by_commit{app="kenwilli-basic-spring-boot", commit="ea67853d8f9b4f43400500f807d72cdfb5b0936d", image_sha="sha256:46332b417660900361f7185830a4eb6d5ddc7e3002944ba26ed260e83f415197"}'
Expand All @@ -106,12 +106,12 @@ tests:
- labels: 'sdp:lead_time:by_app{app="basic-nginx"}'
value: 972844
- labels: 'sdp:lead_time:by_app{app="kenwilli-basic-spring-boot"}'
value: 1040483.6666666667
value: 1046220
- expr: sdp:lead_time:global
eval_time: 1m
exp_samples:
- labels: 'sdp:lead_time:global'
value: 1006663.8333333334
value: 1009532
- expr: count(sdp:time_to_restore:by_issue)
eval_time: 1m
exp_samples:
Expand Down

0 comments on commit 3d34813

Please sign in to comment.