Skip to content

Commit

Permalink
Add actions & resourceDashboards (#454)
Browse files Browse the repository at this point in the history
Signed-off-by: Arnob kumar saha <[email protected]>
  • Loading branch information
ArnobKumarSaha authored Aug 9, 2024
1 parent 9d80d06 commit 751fb74
Show file tree
Hide file tree
Showing 50 changed files with 2,596 additions and 38 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ require (
kmodules.xyz/client-go v0.30.9
kmodules.xyz/crd-schema-fuzz v0.29.1
kmodules.xyz/go-containerregistry v0.0.12
kmodules.xyz/resource-metrics v0.30.2-0.20240711131537-5e9d22977a2c
kmodules.xyz/resource-metrics v0.30.2-0.20240809125122-4c04e13dfc80
kmodules.xyz/schema-checker v0.4.1
sigs.k8s.io/cli-utils v0.34.0
sigs.k8s.io/controller-runtime v0.18.4
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ kmodules.xyz/go-containerregistry v0.0.12 h1:Tl32QGmSqRVm9PUEb/f3dgDeu9zW5fVzt3q
kmodules.xyz/go-containerregistry v0.0.12/go.mod h1:KgeNg0hDsgeda+qc0NzWk0iVRdF0+ZIg/oRzGoYh78I=
kmodules.xyz/offshoot-api v0.29.4 h1:WQV2BIUIoVKKiqZNmZ4gAy367jEdwBhEl3dFCLZM1qA=
kmodules.xyz/offshoot-api v0.29.4/go.mod h1:e+NQ0s4gW/YTPWBWEfdISZcmk+tlTq8IjvP5SLdqvko=
kmodules.xyz/resource-metrics v0.30.2-0.20240711131537-5e9d22977a2c h1:lh7s0AXSRezZx0YnKSmB5GqGpTk3PQ9xCYxhqdbNFjU=
kmodules.xyz/resource-metrics v0.30.2-0.20240711131537-5e9d22977a2c/go.mod h1:UYcQQLN+3o8rNPQJwJa2D9bt5ihJCeo5bCDuQ4O3MPY=
kmodules.xyz/resource-metrics v0.30.2-0.20240809125122-4c04e13dfc80 h1:0fOJLpzMFZbk3PGAQdlZNvhpIBEyZMN1823U9wa/lG0=
kmodules.xyz/resource-metrics v0.30.2-0.20240809125122-4c04e13dfc80/go.mod h1:UYcQQLN+3o8rNPQJwJa2D9bt5ihJCeo5bCDuQ4O3MPY=
kmodules.xyz/schema-checker v0.4.1 h1:V5UEjR6UMAXf307lTgw+9rDRfHLTNA8g/q9DngqYI9M=
kmodules.xyz/schema-checker v0.4.1/go.mod h1:BRXLB3Osuc9raHRJxHOgZFGecZ2aZumLXCHAOa5NPdA=
sigs.k8s.io/cli-utils v0.34.0 h1:zCUitt54f0/MYj/ajVFnG6XSXMhpZ72O/3RewIchW8w=
Expand Down
37 changes: 37 additions & 0 deletions hub/resourcedashboards/kubedb.com/v1/elasticsearches.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apiVersion: ui.k8s.appscode.com/v1alpha1
kind: ResourceDashboard
metadata:
creationTimestamp: null
labels:
k8s.io/group: kubedb.com
k8s.io/kind: Elasticsearch
k8s.io/resource: elasticsearches
k8s.io/version: v1
name: kubedb.com-v1-elasticsearches
spec:
dashboards:
- title: KubeDB / Elasticsearch / Summary
vars:
- name: namespace
value: '{{ .metadata.namespace }}'
- name: app
value: '{{ .metadata.name }}'
- title: KubeDB / Elasticsearch / Database
vars:
- name: namespace
value: '{{ .metadata.namespace }}'
- name: app
value: '{{ .metadata.name }}'
- title: KubeDB / Elasticsearch / Pod
vars:
- name: namespace
value: '{{ .metadata.namespace }}'
- name: app
value: '{{ .metadata.name }}'
provider: Grafana
resource:
group: kubedb.com
kind: Elasticsearch
name: elasticsearches
scope: Namespaced
version: v1
19 changes: 19 additions & 0 deletions hub/resourcedashboards/kubedb.com/v1/etcds.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: ui.k8s.appscode.com/v1alpha1
kind: ResourceDashboard
metadata:
creationTimestamp: null
labels:
k8s.io/group: kubedb.com
k8s.io/kind: Etcd
k8s.io/resource: etcds
k8s.io/version: v1
name: kubedb.com-v1-etcds
spec:
dashboards: null
provider: Grafana
resource:
group: kubedb.com
kind: Etcd
name: etcds
scope: Namespaced
version: v1
25 changes: 25 additions & 0 deletions hub/resourcedashboards/kubedb.com/v1/kafkas.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: ui.k8s.appscode.com/v1alpha1
kind: ResourceDashboard
metadata:
creationTimestamp: null
labels:
k8s.io/group: kubedb.com
k8s.io/kind: Kafka
k8s.io/resource: kafkas
k8s.io/version: v1
name: kubedb.com-v1-kafkas
spec:
dashboards:
- title: KubeDB / Kafka / Database
vars:
- name: namespace
value: '{{ .metadata.namespace }}'
- name: service
value: '{{ .metadata.name }}'
provider: Grafana
resource:
group: kubedb.com
kind: Kafka
name: kafkas
scope: Namespaced
version: v1
45 changes: 45 additions & 0 deletions hub/resourcedashboards/kubedb.com/v1/mariadbs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
apiVersion: ui.k8s.appscode.com/v1alpha1
kind: ResourceDashboard
metadata:
creationTimestamp: null
labels:
k8s.io/group: kubedb.com
k8s.io/kind: MariaDB
k8s.io/resource: mariadbs
k8s.io/version: v1
name: kubedb.com-v1-mariadbs
spec:
dashboards:
- title: KubeDB / MariaDB / Summary
vars:
- name: namespace
value: '{{ .metadata.namespace }}'
- name: app
value: '{{ .metadata.name }}'
- if:
condition: '{{- if eq .spec.replicas 1 }}false{{ else }}true{{ end -}}'
title: KubeDB / MariaDB / Galera-Cluster
vars:
- name: namespace
value: '{{ .metadata.namespace }}'
- name: app
value: '{{ .metadata.name }}'
- title: KubeDB / MariaDB / Database
vars:
- name: namespace
value: '{{ .metadata.namespace }}'
- name: app
value: '{{ .metadata.name }}'
- title: KubeDB / MariaDB / Pod
vars:
- name: namespace
value: '{{ .metadata.namespace }}'
- name: app
value: '{{ .metadata.name }}'
provider: Grafana
resource:
group: kubedb.com
kind: MariaDB
name: mariadbs
scope: Namespaced
version: v1
19 changes: 19 additions & 0 deletions hub/resourcedashboards/kubedb.com/v1/memcacheds.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: ui.k8s.appscode.com/v1alpha1
kind: ResourceDashboard
metadata:
creationTimestamp: null
labels:
k8s.io/group: kubedb.com
k8s.io/kind: Memcached
k8s.io/resource: memcacheds
k8s.io/version: v1
name: kubedb.com-v1-memcacheds
spec:
dashboards: null
provider: Grafana
resource:
group: kubedb.com
kind: Memcached
name: memcacheds
scope: Namespaced
version: v1
39 changes: 39 additions & 0 deletions hub/resourcedashboards/kubedb.com/v1/mongodbs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apiVersion: ui.k8s.appscode.com/v1alpha1
kind: ResourceDashboard
metadata:
creationTimestamp: null
labels:
k8s.io/group: kubedb.com
k8s.io/kind: MongoDB
k8s.io/resource: mongodbs
k8s.io/version: v1
name: kubedb.com-v1-mongodbs
spec:
dashboards:
- title: KubeDB / MongoDB / Summary
vars:
- name: namespace
value: '{{ .metadata.namespace }}'
- name: app
value: '{{ .metadata.name }}'
- if:
condition: '{{- if or (hasKey .spec "replicaSet") (hasKey .spec "shardTopology") }}true{{ else }}false{{ end -}}'
title: KubeDB / MongoDB / Database / ReplicaSet
vars:
- name: namespace
value: '{{ .metadata.namespace }}'
- name: app
value: '{{ .metadata.name }}'
- title: KubeDB / MongoDB / Pod
vars:
- name: namespace
value: '{{ .metadata.namespace }}'
- name: app
value: '{{ .metadata.name }}'
provider: Grafana
resource:
group: kubedb.com
kind: MongoDB
name: mongodbs
scope: Namespaced
version: v1
45 changes: 45 additions & 0 deletions hub/resourcedashboards/kubedb.com/v1/mysqls.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
apiVersion: ui.k8s.appscode.com/v1alpha1
kind: ResourceDashboard
metadata:
creationTimestamp: null
labels:
k8s.io/group: kubedb.com
k8s.io/kind: MySQL
k8s.io/resource: mysqls
k8s.io/version: v1
name: kubedb.com-v1-mysqls
spec:
dashboards:
- title: KubeDB / MySQL / Summary
vars:
- name: namespace
value: '{{ .metadata.namespace }}'
- name: app
value: '{{ .metadata.name }}'
- if:
condition: '{{- if or (eq .spec.topology.mode "GroupReplication") (eq .spec.topology.mode "InnoDBCluster") }}true{{ else }}false{{ end -}}'
title: KubeDB / MySQL / Group-Replication-Summary
vars:
- name: namespace
value: '{{ .metadata.namespace }}'
- name: app
value: '{{ .metadata.name }}'
- title: KubeDB / MySQL / Database
vars:
- name: namespace
value: '{{ .metadata.namespace }}'
- name: app
value: '{{ .metadata.name }}'
- title: KubeDB / MySQL / Pod
vars:
- name: namespace
value: '{{ .metadata.namespace }}'
- name: app
value: '{{ .metadata.name }}'
provider: Grafana
resource:
group: kubedb.com
kind: MySQL
name: mysqls
scope: Namespaced
version: v1
19 changes: 19 additions & 0 deletions hub/resourcedashboards/kubedb.com/v1/perconaxtradbs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: ui.k8s.appscode.com/v1alpha1
kind: ResourceDashboard
metadata:
creationTimestamp: null
labels:
k8s.io/group: kubedb.com
k8s.io/kind: PerconaXtraDB
k8s.io/resource: perconaxtradbs
k8s.io/version: v1
name: kubedb.com-v1-perconaxtradbs
spec:
dashboards: null
provider: Grafana
resource:
group: kubedb.com
kind: PerconaXtraDB
name: perconaxtradbs
scope: Namespaced
version: v1
19 changes: 19 additions & 0 deletions hub/resourcedashboards/kubedb.com/v1/pgbouncers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: ui.k8s.appscode.com/v1alpha1
kind: ResourceDashboard
metadata:
creationTimestamp: null
labels:
k8s.io/group: kubedb.com
k8s.io/kind: PgBouncer
k8s.io/resource: pgbouncers
k8s.io/version: v1
name: kubedb.com-v1-pgbouncers
spec:
dashboards: null
provider: Grafana
resource:
group: kubedb.com
kind: PgBouncer
name: pgbouncers
scope: Namespaced
version: v1
19 changes: 19 additions & 0 deletions hub/resourcedashboards/kubedb.com/v1/pod/elasticsearches.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: ui.k8s.appscode.com/v1alpha1
kind: ResourceDashboard
metadata:
creationTimestamp: null
name: kubedb.com-v1-elasticsearches-pod
spec:
dashboards:
- title: KubeDB / Elasticsearch / Pod
vars:
- name: namespace
value: '{{ .metadata.namespace }}'
- name: app
value: '{{ .metadata.name }}'
- name: pod
type: Target
value: '{{ .metadata.name }}'
provider: Grafana
resource:
group: ""
19 changes: 19 additions & 0 deletions hub/resourcedashboards/kubedb.com/v1/pod/mariadbs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: ui.k8s.appscode.com/v1alpha1
kind: ResourceDashboard
metadata:
creationTimestamp: null
name: kubedb.com-v1-mariadbs-pod
spec:
dashboards:
- title: KubeDB / MariaDB / Pod
vars:
- name: namespace
value: '{{ .metadata.namespace }}'
- name: app
value: '{{ .metadata.name }}'
- name: pod
type: Target
value: '{{ .metadata.name }}'
provider: Grafana
resource:
group: ""
19 changes: 19 additions & 0 deletions hub/resourcedashboards/kubedb.com/v1/pod/mongodbs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: ui.k8s.appscode.com/v1alpha1
kind: ResourceDashboard
metadata:
creationTimestamp: null
name: kubedb.com-v1-mongodbs-pod
spec:
dashboards:
- title: KubeDB / MongoDB / Pod
vars:
- name: namespace
value: '{{ .metadata.namespace }}'
- name: app
value: '{{ .metadata.name }}'
- name: pod
type: Target
value: '{{ .metadata.name }}'
provider: Grafana
resource:
group: ""
19 changes: 19 additions & 0 deletions hub/resourcedashboards/kubedb.com/v1/pod/mysqls.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: ui.k8s.appscode.com/v1alpha1
kind: ResourceDashboard
metadata:
creationTimestamp: null
name: kubedb.com-v1-mysqls-pod
spec:
dashboards:
- title: KubeDB / MySQL / Pod
vars:
- name: namespace
value: '{{ .metadata.namespace }}'
- name: app
value: '{{ .metadata.name }}'
- name: pod
type: Target
value: '{{ .metadata.name }}'
provider: Grafana
resource:
group: ""
19 changes: 19 additions & 0 deletions hub/resourcedashboards/kubedb.com/v1/pod/postgreses.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: ui.k8s.appscode.com/v1alpha1
kind: ResourceDashboard
metadata:
creationTimestamp: null
name: kubedb.com-v1-postgreses-pod
spec:
dashboards:
- title: KubeDB / Postgres / Pod
vars:
- name: namespace
value: '{{ .metadata.namespace }}'
- name: app
value: '{{ .metadata.name }}'
- name: pod
type: Target
value: '{{ .metadata.name }}'
provider: Grafana
resource:
group: ""
Loading

0 comments on commit 751fb74

Please sign in to comment.