Skip to content

Commit

Permalink
Refactor Cilium measurements queries to use sum for accurate metrics …
Browse files Browse the repository at this point in the history
…calculation
  • Loading branch information
mushiboy committed Dec 23, 2024
1 parent 27b9259 commit f607a60
Showing 1 changed file with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,16 +194,21 @@ steps:
enableViolations: true
queries:
- name: Instantaneous
query: cilium_api_limiter_requests_in_flight
- name: MaxOverTime
query: max_over_time(cilium_api_limiter_requests_in_flight[%v:])
- name: AvgOverTime
query: avg_over_time(cilium_api_limiter_requests_in_flight[%v:])
query: sum(cilium_api_limiter_requests_in_flight)
- name: MaxOverTimeSum
query: max_over_time(sum(cilium_api_limiter_requests_in_flight)[%v:])
- name: MaxOverTimeIndividual
query: max_over_time(max(cilium_api_limiter_requests_in_flight) by (instance)[%v:])
- name: AvgOverTimeSum
query: avg_over_time(sum(cilium_api_limiter_requests_in_flight)[%v:])
- name: AvgOverTimeIndividual
query: avg_over_time(avg(cilium_api_limiter_requests_in_flight) by (instance)[%v:])
- name: SumOverTime
query: sum_over_time(cilium_api_limiter_requests_in_flight[%v:])
- name: MinOverTime
query: min_over_time(cilium_api_limiter_requests_in_flight[%v:])

query: sum_over_time(sum(cilium_api_limiter_requests_in_flight)[%v:])
- name: MinOverTimeSum
query: min_over_time(sum(cilium_api_limiter_requests_in_flight)[%v:])
- name: MinOverTimeIndividual
query: min_over_time(min(cilium_api_limiter_requests_in_flight) by (instance)[%v:])
- Identifier: CiliumAPIRateLimiterWaitDuration
Method: GenericPrometheusQuery
Params:
Expand Down

0 comments on commit f607a60

Please sign in to comment.