Commit b642f0aa authored by Andrew Newdigate's avatar Andrew Newdigate

Avoid != NaN in PromQL

parent bfbbad7b
......@@ -213,7 +213,7 @@ groups:
# TODO: using weighted averages
- record: gitlab_service_apdex:ratio
expr: >
avg by (environment, tier, type, stage) (gitlab_component_apdex:ratio != NaN)
avg by (environment, tier, type, stage) (gitlab_component_apdex:ratio >= 0)
- name: GitLab Component Apdex Score Stats
interval: 5m
......
......@@ -105,7 +105,7 @@ groups:
# TODO: using weighted averages
- record: gitlab_service_availability:ratio
expr: >
avg by (environment, tier, type, stage) (gitlab_component_availability:ratio != NaN)
avg by (environment, tier, type, stage) (gitlab_component_availability:ratio >= 0)
- name: GitLab Component Availability Stats
interval: 5m
......
......@@ -120,7 +120,7 @@ groups:
# Aggregate over all components within a service
- record: gitlab_service_errors:rate
expr: >
sum by (environment, tier, type, stage) (gitlab_component_errors:rate != NaN)
sum by (environment, tier, type, stage) (gitlab_component_errors:rate >= 0)
- name: GitLab Component Errors-per-Second Rate Stats
interval: 5m
......
......@@ -141,7 +141,7 @@ groups:
# Aggregate over all components within a service
- record: gitlab_service_ops:rate
expr: >
sum by (environment, tier, type, stage) (gitlab_component_ops:rate != NaN)
sum by (environment, tier, type, stage) (gitlab_component_ops:rate >= 0)
- name: GitLab Component Operations-per-Second Rate Stats
interval: 5m
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment