Skip to content

Commit

Permalink
Fix telemeter-rule on operator (#738)
Browse files Browse the repository at this point in the history
Signed-off-by: Saswata Mukherjee <[email protected]>
  • Loading branch information
saswatamcode authored Feb 12, 2025
1 parent 85b479e commit e946517
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion magefiles/telemeter_rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func rules() []monitoringv1.RuleGroup {
},
{
Record: "id_version:cluster_available",
Expr: intstr.FromString("bottomk by (_id) (1, max by (_id, version) (0 * cluster_version{type=\"failure\"}) or max by (_id, version) (1 + 0 * cluster_version{type=\"current\"})"),
Expr: intstr.FromString("bottomk by (_id) (1, max by (_id, version) (0 * cluster_version{type=\"failure\"}) or max by (_id, version) (1 + 0 * cluster_version{type=\"current\"}))"),
Labels: tenantLbls,
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
tenant_id: FB870BF3-9F3A-44FF-9BF7-D7A047A52F43
record: id_code:apiserver_request_error_rate_sum:max
- expr: bottomk by (_id) (1, max by (_id, version) (0 * cluster_version{type="failure"})
or max by (_id, version) (1 + 0 * cluster_version{type="current"})
or max by (_id, version) (1 + 0 * cluster_version{type="current"}))
labels:
tenant_id: FB870BF3-9F3A-44FF-9BF7-D7A047A52F43
record: id_version:cluster_available
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ objects:
tenant_id: FB870BF3-9F3A-44FF-9BF7-D7A047A52F43
record: id_code:apiserver_request_error_rate_sum:max
- expr: bottomk by (_id) (1, max by (_id, version) (0 * cluster_version{type="failure"})
or max by (_id, version) (1 + 0 * cluster_version{type="current"})
or max by (_id, version) (1 + 0 * cluster_version{type="current"}))
labels:
tenant_id: FB870BF3-9F3A-44FF-9BF7-D7A047A52F43
record: id_version:cluster_available
Expand Down

0 comments on commit e946517

Please sign in to comment.