Skip to content

Commit

Permalink
Add uw_namespace_oncall_team rule
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorhuertas committed Nov 23, 2023
1 parent 000bb7d commit ded30a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/stock/team_detection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ groups:
# (team) uw_namespace_team`
- record: uw_namespace_team
expr: sum by (namespace, team) (label_replace(kube_namespace_labels{job="kube-state-metrics"}, "team", "$1", "label_uw_systems_owner", "(system|partner|telco)"))
# used as: `<metric_with_namespace_label> * on (namespace) group_left (team) uw_namespace_oncall_team`
- record: uw_namespace_oncall_team
expr: sum by (namespace, team) (label_replace(kube_namespace_labels{job="kube-state-metrics"}, "team", "$1", "annotation_uw_systems_oncall_team", "(.*)"))

0 comments on commit ded30a5

Please sign in to comment.