Skip to content

Commit

Permalink
Change network dashboards ownership to cabbage (#504)
Browse files Browse the repository at this point in the history
* Change network dashboards ownership to cabbage

* Update turtles files

* Update script
  • Loading branch information
kopiczko authored Apr 15, 2024
1 parent 024f079 commit 1be7d02
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 6 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Change `net-exporter` dashboard ownership from turtles to cabbage.
- Change `cluster-total.json` dashboard ownership from turtles to cabbage.
- Change `namespace-by-pod.json` dashboard ownership from turtles to cabbage.
- Change `namespace-by-workload.json` dashboard ownership from turtles to cabbage.
- Change `pod-total.json` dashboard ownership from turtles to cabbage.
- Change `workload-total.json` dashboard ownership from turtles to cabbage.

### Fixed

- Fix `Mimir / Reads resources` Disk usage graphs.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@
"schemaVersion": 20,
"style": "dark",
"tags": [
"owner:team-turtles",
"owner:team-cabbage",
"topic:management-cluster",
"topic:workload-cluster"
],
Expand Down
2 changes: 1 addition & 1 deletion helm/dashboards/dashboards/mixin/cluster-total.json
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,7 @@
"style": "dark",
"tags": [
"origin:kubernetes-mixin",
"owner:team-turtles"
"owner:team-cabbage"
],
"templating": {
"list": [
Expand Down
2 changes: 1 addition & 1 deletion helm/dashboards/dashboards/mixin/namespace-by-pod.json
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@
"style": "dark",
"tags": [
"origin:kubernetes-mixin",
"owner:team-turtles"
"owner:team-cabbage"
],
"templating": {
"list": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,7 @@
"style": "dark",
"tags": [
"origin:kubernetes-mixin",
"owner:team-turtles"
"owner:team-cabbage"
],
"templating": {
"list": [
Expand Down
2 changes: 1 addition & 1 deletion helm/dashboards/dashboards/mixin/pod-total.json
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@
"style": "dark",
"tags": [
"origin:kubernetes-mixin",
"owner:team-turtles"
"owner:team-cabbage"
],
"templating": {
"list": [
Expand Down
2 changes: 1 addition & 1 deletion helm/dashboards/dashboards/mixin/workload-total.json
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@
"style": "dark",
"tags": [
"origin:kubernetes-mixin",
"owner:team-turtles"
"owner:team-cabbage"
],
"templating": {
"list": [
Expand Down
10 changes: 10 additions & 0 deletions scripts/sync-kube-mixin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ function tune_dashboard {
# Latest mixins use SLO instead of classic metrics in several places
# but we dropped these SLO metrics
sed -i 's/apiserver_request_slo_duration_seconds/apiserver_request_duration_seconds/g' "$dashboardFile"

# Dashboard ownership.
case $(basename "${dashboardFile}") in
cluster-total.json|namespace-by-pod.json|namespace-by-workload.json|pod-total.json|workload-total.json)
sed -i 's/"owner:team-.*"/"owner:team-cabbage"/g' "${dashboardFile}"
;;
controller-manager.json|k8s-resources-cluster.json|k8s-resources-multicluster.json|k8s-resources-namespace.json|k8s-resources-node.json|k8s-resources-pod.json|k8s-resources-workloads-namespace.json|persistentvolumesusage.json|scheduler.json|statefulset.json)
sed -i 's/"owner:team-.*"/"owner:team-turtles"/g' "${dashboardFile}"
;;
esac
}


Expand Down

0 comments on commit 1be7d02

Please sign in to comment.