diff --git a/hub/resourcedashboards/kafka.kubedb.com/v1alpha1/connectclusters.yaml b/hub/resourcedashboards/kafka.kubedb.com/v1alpha1/connectclusters.yaml new file mode 100644 index 0000000000..fb7816df8f --- /dev/null +++ b/hub/resourcedashboards/kafka.kubedb.com/v1alpha1/connectclusters.yaml @@ -0,0 +1,36 @@ +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: ResourceDashboard +metadata: + labels: + k8s.io/group: kafka.kubedb.com + k8s.io/kind: ConnectCluster + k8s.io/resource: connectclusters + k8s.io/version: v1alpha1 + name: kafka.kubedb.com-v1alpha1-connectclusters +spec: + dashboards: + - title: KubeDB / Kafka / ConnectCluster / Summary + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - title: KubeDB / Kafka / ConnectCluster / Connect + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - title: KubeDB / Kafka / ConnectCluster / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + provider: Grafana + resource: + group: kafka.kubedb.com + kind: ConnectCluster + name: connectclusters + scope: Namespaced + version: v1alpha1 diff --git a/hub/resourcedashboards/kubedb.com/v1/kafkas.yaml b/hub/resourcedashboards/kubedb.com/v1/kafkas.yaml index 280b2f3aa7..a4f994352c 100644 --- a/hub/resourcedashboards/kubedb.com/v1/kafkas.yaml +++ b/hub/resourcedashboards/kubedb.com/v1/kafkas.yaml @@ -9,11 +9,23 @@ metadata: name: kubedb.com-v1-kafkas spec: dashboards: + - title: KubeDB / Kafka / Summary + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' - title: KubeDB / Kafka / Database vars: - name: namespace value: '{{ .metadata.namespace }}' - - name: service + - name: app + value: '{{ .metadata.name }}' + - title: KubeDB / Kafka / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app value: '{{ .metadata.name }}' provider: Grafana resource: diff --git a/hub/resourcedashboards/kubedb.com/v1/mariadbs.yaml b/hub/resourcedashboards/kubedb.com/v1/mariadbs.yaml index dbd041bcfd..445dd0371e 100644 --- a/hub/resourcedashboards/kubedb.com/v1/mariadbs.yaml +++ b/hub/resourcedashboards/kubedb.com/v1/mariadbs.yaml @@ -16,13 +16,21 @@ spec: - name: app value: '{{ .metadata.name }}' - if: - condition: '{{- if eq .spec.replicas 1 }}false{{ else }}true{{ end -}}' + condition: '{{- if and (ne .spec.replicas 1) (ne (dig "topology" "mode" "GaleraCluster" .spec) "MariaDBReplication") }}true{{ else }}false{{ end -}}' title: KubeDB / MariaDB / Galera-Cluster vars: - name: namespace value: '{{ .metadata.namespace }}' - name: app value: '{{ .metadata.name }}' + - if: + condition: '{{- if eq (dig "topology" "mode" "" .spec) "MariaDBReplication" }}true{{ else }}false{{ end -}}' + title: KubeDB / MariaDB / Standard Replication + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' - title: KubeDB / MariaDB / Database vars: - name: namespace diff --git a/hub/resourcedashboards/kubedb.com/v1/memcacheds.yaml b/hub/resourcedashboards/kubedb.com/v1/memcacheds.yaml index 9525e6cfdc..f3373b57a5 100644 --- a/hub/resourcedashboards/kubedb.com/v1/memcacheds.yaml +++ b/hub/resourcedashboards/kubedb.com/v1/memcacheds.yaml @@ -8,7 +8,15 @@ metadata: k8s.io/version: v1 name: kubedb.com-v1-memcacheds spec: - dashboards: null + dashboards: + - title: KubeDB / Memcached / Summary + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - title: KubeDB / Memcached / Database + - title: KubeDB / Memcached / Pod provider: Grafana resource: group: kubedb.com diff --git a/hub/resourcedashboards/kubedb.com/v1/perconaxtradbs.yaml b/hub/resourcedashboards/kubedb.com/v1/perconaxtradbs.yaml index 89c6b6c033..e48b37cf95 100644 --- a/hub/resourcedashboards/kubedb.com/v1/perconaxtradbs.yaml +++ b/hub/resourcedashboards/kubedb.com/v1/perconaxtradbs.yaml @@ -8,7 +8,33 @@ metadata: k8s.io/version: v1 name: kubedb.com-v1-perconaxtradbs spec: - dashboards: null + dashboards: + - title: KubeDB / PerconaXtraDB / 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 / PerconaXtraDB / Galera-Cluster + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - title: KubeDB / PerconaXtraDB / Database + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - title: KubeDB / PerconaXtraDB / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' provider: Grafana resource: group: kubedb.com diff --git a/hub/resourcedashboards/kubedb.com/v1/pgbouncers.yaml b/hub/resourcedashboards/kubedb.com/v1/pgbouncers.yaml index f0afcba6e2..aa336c2ec4 100644 --- a/hub/resourcedashboards/kubedb.com/v1/pgbouncers.yaml +++ b/hub/resourcedashboards/kubedb.com/v1/pgbouncers.yaml @@ -8,7 +8,25 @@ metadata: k8s.io/version: v1 name: kubedb.com-v1-pgbouncers spec: - dashboards: null + dashboards: + - title: KubeDB / PgBouncer / Summary + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - title: KubeDB / PgBouncer / Database + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - title: KubeDB / PgBouncer / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' provider: Grafana resource: group: kubedb.com diff --git a/hub/resourcedashboards/kubedb.com/v1/pod/perconaxtradbs.yaml b/hub/resourcedashboards/kubedb.com/v1/pod/perconaxtradbs.yaml new file mode 100644 index 0000000000..f6a1300e61 --- /dev/null +++ b/hub/resourcedashboards/kubedb.com/v1/pod/perconaxtradbs.yaml @@ -0,0 +1,18 @@ +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: ResourceDashboard +metadata: + name: kubedb.com-v1-perconaxtradbs-pod +spec: + dashboards: + - title: KubeDB / PerconaXtraDB / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - name: pod + type: Target + value: '{{ .metadata.name }}' + provider: Grafana + resource: + group: "" diff --git a/hub/resourcedashboards/kubedb.com/v1/pod/pgbouncers.yaml b/hub/resourcedashboards/kubedb.com/v1/pod/pgbouncers.yaml new file mode 100644 index 0000000000..79a6d2865c --- /dev/null +++ b/hub/resourcedashboards/kubedb.com/v1/pod/pgbouncers.yaml @@ -0,0 +1,18 @@ +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: ResourceDashboard +metadata: + name: kubedb.com-v1-pgbouncers-pod +spec: + dashboards: + - title: KubeDB / PgBouncer / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - name: pod + type: Target + value: '{{ .metadata.name }}' + provider: Grafana + resource: + group: "" diff --git a/hub/resourcedashboards/kubedb.com/v1/postgreses.yaml b/hub/resourcedashboards/kubedb.com/v1/postgreses.yaml index 907c03ad80..051be1840f 100644 --- a/hub/resourcedashboards/kubedb.com/v1/postgreses.yaml +++ b/hub/resourcedashboards/kubedb.com/v1/postgreses.yaml @@ -15,6 +15,14 @@ spec: value: '{{ .metadata.namespace }}' - name: app value: '{{ .metadata.name }}' + - if: + condition: '{{- if hasKey .spec "remoteReplica" }}true{{ else }}false{{ end -}}' + title: KubeDB / Postgres / Remote Replica + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' - title: KubeDB / Postgres / Database vars: - name: namespace diff --git a/hub/resourcedashboards/kubedb.com/v1/redissentinels.yaml b/hub/resourcedashboards/kubedb.com/v1/redissentinels.yaml index 4add9829fd..1aeb514ef3 100644 --- a/hub/resourcedashboards/kubedb.com/v1/redissentinels.yaml +++ b/hub/resourcedashboards/kubedb.com/v1/redissentinels.yaml @@ -8,7 +8,19 @@ metadata: k8s.io/version: v1 name: kubedb.com-v1-redissentinels spec: - dashboards: null + dashboards: + - title: KubeDB / RedisSentinel / Summary + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - title: KubeDB / RedisSentinel / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' provider: Grafana resource: group: kubedb.com diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/cassandra.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/cassandra.yaml index f72d404d4c..9541f867a9 100644 --- a/hub/resourcedashboards/kubedb.com/v1alpha2/cassandra.yaml +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/cassandra.yaml @@ -16,17 +16,7 @@ spec: - name: app value: '{{ .metadata.name }}' - title: KubeDB / Cassandra / Database - vars: - - name: namespace - value: '{{ .metadata.namespace }}' - - name: app - value: '{{ .metadata.name }}' - title: KubeDB / Cassandra / Pod - vars: - - name: namespace - value: '{{ .metadata.namespace }}' - - name: app - value: '{{ .metadata.name }}' provider: Grafana resource: group: kubedb.com diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/hanadbs.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/hanadbs.yaml index 7c60986dc4..181d0c9e1b 100644 --- a/hub/resourcedashboards/kubedb.com/v1alpha2/hanadbs.yaml +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/hanadbs.yaml @@ -16,17 +16,6 @@ spec: - name: app value: '{{ .metadata.name }}' - title: KubeDB / HanaDB / Database - vars: - - name: namespace - value: '{{ .metadata.namespace }}' - - name: app - value: '{{ .metadata.name }}' - - title: KubeDB / HanaDB / Pod - vars: - - name: namespace - value: '{{ .metadata.namespace }}' - - name: app - value: '{{ .metadata.name }}' provider: Grafana resource: group: kubedb.com diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/ignites.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/ignites.yaml index 47059ff5ca..a5b84481b6 100644 --- a/hub/resourcedashboards/kubedb.com/v1alpha2/ignites.yaml +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/ignites.yaml @@ -17,16 +17,9 @@ spec: value: '{{ .metadata.name }}' - title: KubeDB / Ignite / Database vars: - - name: namespace - value: '{{ .metadata.namespace }}' - name: app value: '{{ .metadata.name }}' - title: KubeDB / Ignite / Pod - vars: - - name: namespace - value: '{{ .metadata.namespace }}' - - name: app - value: '{{ .metadata.name }}' provider: Grafana resource: group: kubedb.com diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/kafkas.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/kafkas.yaml index 0e80023552..43cd6d952c 100644 --- a/hub/resourcedashboards/kubedb.com/v1alpha2/kafkas.yaml +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/kafkas.yaml @@ -9,11 +9,23 @@ metadata: name: kubedb.com-v1alpha2-kafkas spec: dashboards: + - title: KubeDB / Kafka / Summary + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' - title: KubeDB / Kafka / Database vars: - name: namespace value: '{{ .metadata.namespace }}' - - name: service + - name: app + value: '{{ .metadata.name }}' + - title: KubeDB / Kafka / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app value: '{{ .metadata.name }}' provider: Grafana resource: diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/mariadbs.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/mariadbs.yaml index 165f8f5fcf..60c621f34a 100644 --- a/hub/resourcedashboards/kubedb.com/v1alpha2/mariadbs.yaml +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/mariadbs.yaml @@ -16,13 +16,21 @@ spec: - name: app value: '{{ .metadata.name }}' - if: - condition: '{{- if eq .spec.replicas 1 }}false{{ else }}true{{ end -}}' + condition: '{{- if and (ne .spec.replicas 1) (ne (dig "topology" "mode" "GaleraCluster" .spec) "MariaDBReplication") }}true{{ else }}false{{ end -}}' title: KubeDB / MariaDB / Galera-Cluster vars: - name: namespace value: '{{ .metadata.namespace }}' - name: app value: '{{ .metadata.name }}' + - if: + condition: '{{- if eq (dig "topology" "mode" "" .spec) "MariaDBReplication" }}true{{ else }}false{{ end -}}' + title: KubeDB / MariaDB / Standard Replication + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' - title: KubeDB / MariaDB / Database vars: - name: namespace diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/memcacheds.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/memcacheds.yaml index 903162eee3..964ec3a1ab 100644 --- a/hub/resourcedashboards/kubedb.com/v1alpha2/memcacheds.yaml +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/memcacheds.yaml @@ -8,7 +8,15 @@ metadata: k8s.io/version: v1alpha2 name: kubedb.com-v1alpha2-memcacheds spec: - dashboards: null + dashboards: + - title: KubeDB / Memcached / Summary + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - title: KubeDB / Memcached / Database + - title: KubeDB / Memcached / Pod provider: Grafana resource: group: kubedb.com diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/milvuses.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/milvuses.yaml index 259fcfd904..2b2c97adb9 100644 --- a/hub/resourcedashboards/kubedb.com/v1alpha2/milvuses.yaml +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/milvuses.yaml @@ -19,14 +19,6 @@ spec: vars: - name: namespace value: '{{ .metadata.namespace }}' - - name: app - value: '{{ .metadata.name }}' - - title: KubeDB / Milvus / Pod - vars: - - name: namespace - value: '{{ .metadata.namespace }}' - - name: app - value: '{{ .metadata.name }}' provider: Grafana resource: group: kubedb.com diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/perconaxtradbs.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/perconaxtradbs.yaml index e4c6d52d86..f018fd66d6 100644 --- a/hub/resourcedashboards/kubedb.com/v1alpha2/perconaxtradbs.yaml +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/perconaxtradbs.yaml @@ -8,7 +8,33 @@ metadata: k8s.io/version: v1alpha2 name: kubedb.com-v1alpha2-perconaxtradbs spec: - dashboards: null + dashboards: + - title: KubeDB / PerconaXtraDB / 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 / PerconaXtraDB / Galera-Cluster + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - title: KubeDB / PerconaXtraDB / Database + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - title: KubeDB / PerconaXtraDB / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' provider: Grafana resource: group: kubedb.com diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/pgbouncers.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/pgbouncers.yaml index e133269ab1..68d5900f82 100644 --- a/hub/resourcedashboards/kubedb.com/v1alpha2/pgbouncers.yaml +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/pgbouncers.yaml @@ -8,7 +8,25 @@ metadata: k8s.io/version: v1alpha2 name: kubedb.com-v1alpha2-pgbouncers spec: - dashboards: null + dashboards: + - title: KubeDB / PgBouncer / Summary + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - title: KubeDB / PgBouncer / Database + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - title: KubeDB / PgBouncer / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' provider: Grafana resource: group: kubedb.com diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/pod/cassandras.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/cassandras.yaml new file mode 100644 index 0000000000..19631e72be --- /dev/null +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/cassandras.yaml @@ -0,0 +1,14 @@ +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: ResourceDashboard +metadata: + name: kubedb.com-v1alpha2-cassandras-pod +spec: + dashboards: + - title: KubeDB / Cassandra / Pod + vars: + - name: pod + type: Target + value: '{{ .metadata.name }}' + provider: Grafana + resource: + group: "" diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/pod/clickhouses.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/clickhouses.yaml new file mode 100644 index 0000000000..3c49e9b959 --- /dev/null +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/clickhouses.yaml @@ -0,0 +1,18 @@ +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: ResourceDashboard +metadata: + name: kubedb.com-v1alpha2-clickhouses-pod +spec: + dashboards: + - title: KubeDB / ClickHouse / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - name: pod + type: Target + value: '{{ .metadata.name }}' + provider: Grafana + resource: + group: "" diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/pod/druids.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/druids.yaml new file mode 100644 index 0000000000..eacd7cdae4 --- /dev/null +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/druids.yaml @@ -0,0 +1,18 @@ +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: ResourceDashboard +metadata: + name: kubedb.com-v1alpha2-druids-pod +spec: + dashboards: + - title: KubeDB / Druid / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - name: pod + type: Target + value: '{{ .metadata.name }}' + provider: Grafana + resource: + group: "" diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/pod/hazelcasts.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/hazelcasts.yaml new file mode 100644 index 0000000000..d130e39d4a --- /dev/null +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/hazelcasts.yaml @@ -0,0 +1,18 @@ +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: ResourceDashboard +metadata: + name: kubedb.com-v1alpha2-hazelcasts-pod +spec: + dashboards: + - title: KubeDB / Hazelcast / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - name: pod + type: Target + value: '{{ .metadata.name }}' + provider: Grafana + resource: + group: "" diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/pod/ignites.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/ignites.yaml new file mode 100644 index 0000000000..e0cf267e5f --- /dev/null +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/ignites.yaml @@ -0,0 +1,10 @@ +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: ResourceDashboard +metadata: + name: kubedb.com-v1alpha2-ignites-pod +spec: + dashboards: + - title: KubeDB / Ignite / Pod + provider: Grafana + resource: + group: "" diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/pod/mssqlservers.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/mssqlservers.yaml new file mode 100644 index 0000000000..84cd52efd5 --- /dev/null +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/mssqlservers.yaml @@ -0,0 +1,18 @@ +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: ResourceDashboard +metadata: + name: kubedb.com-v1alpha2-mssqlservers-pod +spec: + dashboards: + - title: KubeDB / MSSQLServer / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - name: pod + type: Target + value: '{{ .metadata.name }}' + provider: Grafana + resource: + group: "" diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/pod/neo4js.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/neo4js.yaml new file mode 100644 index 0000000000..af512af53c --- /dev/null +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/neo4js.yaml @@ -0,0 +1,18 @@ +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: ResourceDashboard +metadata: + name: kubedb.com-v1alpha2-neo4js-pod +spec: + dashboards: + - title: KubeDB / Neo4j / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - name: pod + type: Target + value: '{{ .metadata.name }}' + provider: Grafana + resource: + group: "" diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/pod/oracles.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/oracles.yaml new file mode 100644 index 0000000000..267ab03c4c --- /dev/null +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/oracles.yaml @@ -0,0 +1,18 @@ +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: ResourceDashboard +metadata: + name: kubedb.com-v1alpha2-oracles-pod +spec: + dashboards: + - title: KubeDB / Oracle / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - name: pod + type: Target + value: '{{ .metadata.name }}' + provider: Grafana + resource: + group: "" diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/pod/perconaxtradbs.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/perconaxtradbs.yaml new file mode 100644 index 0000000000..0a263cc1bc --- /dev/null +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/perconaxtradbs.yaml @@ -0,0 +1,18 @@ +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: ResourceDashboard +metadata: + name: kubedb.com-v1alpha2-perconaxtradbs-pod +spec: + dashboards: + - title: KubeDB / PerconaXtraDB / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - name: pod + type: Target + value: '{{ .metadata.name }}' + provider: Grafana + resource: + group: "" diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/pod/pgbouncers.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/pgbouncers.yaml new file mode 100644 index 0000000000..1d79d1405a --- /dev/null +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/pgbouncers.yaml @@ -0,0 +1,18 @@ +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: ResourceDashboard +metadata: + name: kubedb.com-v1alpha2-pgbouncers-pod +spec: + dashboards: + - title: KubeDB / PgBouncer / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - name: pod + type: Target + value: '{{ .metadata.name }}' + provider: Grafana + resource: + group: "" diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/pod/pgpools.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/pgpools.yaml new file mode 100644 index 0000000000..4df209f8e6 --- /dev/null +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/pgpools.yaml @@ -0,0 +1,18 @@ +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: ResourceDashboard +metadata: + name: kubedb.com-v1alpha2-pgpools-pod +spec: + dashboards: + - title: KubeDB / Pgpool / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - name: pod + type: Target + value: '{{ .metadata.name }}' + provider: Grafana + resource: + group: "" diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/pod/qdrants.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/qdrants.yaml new file mode 100644 index 0000000000..e770ee5108 --- /dev/null +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/qdrants.yaml @@ -0,0 +1,18 @@ +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: ResourceDashboard +metadata: + name: kubedb.com-v1alpha2-qdrants-pod +spec: + dashboards: + - title: KubeDB / Qdrant / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - name: pod + type: Target + value: '{{ .metadata.name }}' + provider: Grafana + resource: + group: "" diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/pod/rabbitmqs.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/rabbitmqs.yaml new file mode 100644 index 0000000000..15e8240901 --- /dev/null +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/rabbitmqs.yaml @@ -0,0 +1,18 @@ +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: ResourceDashboard +metadata: + name: kubedb.com-v1alpha2-rabbitmqs-pod +spec: + dashboards: + - title: KubeDB / RabbitMQ / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - name: pod + type: Target + value: '{{ .metadata.name }}' + provider: Grafana + resource: + group: "" diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/pod/singlestores.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/singlestores.yaml new file mode 100644 index 0000000000..738302eccb --- /dev/null +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/singlestores.yaml @@ -0,0 +1,18 @@ +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: ResourceDashboard +metadata: + name: kubedb.com-v1alpha2-singlestores-pod +spec: + dashboards: + - title: KubeDB / Singlestore / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - name: pod + type: Target + value: '{{ .metadata.name }}' + provider: Grafana + resource: + group: "" diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/pod/solrs.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/solrs.yaml new file mode 100644 index 0000000000..6abc157d54 --- /dev/null +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/solrs.yaml @@ -0,0 +1,18 @@ +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: ResourceDashboard +metadata: + name: kubedb.com-v1alpha2-solrs-pod +spec: + dashboards: + - title: KubeDB / Solr / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - name: pod + type: Target + value: '{{ .metadata.name }}' + provider: Grafana + resource: + group: "" diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/pod/weaviates.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/weaviates.yaml new file mode 100644 index 0000000000..5609cb6d63 --- /dev/null +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/weaviates.yaml @@ -0,0 +1,18 @@ +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: ResourceDashboard +metadata: + name: kubedb.com-v1alpha2-weaviates-pod +spec: + dashboards: + - title: KubeDB / Weaviate / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - name: pod + type: Target + value: '{{ .metadata.name }}' + provider: Grafana + resource: + group: "" diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/pod/zookeepers.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/zookeepers.yaml new file mode 100644 index 0000000000..b1127860ce --- /dev/null +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/pod/zookeepers.yaml @@ -0,0 +1,18 @@ +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: ResourceDashboard +metadata: + name: kubedb.com-v1alpha2-zookeepers-pod +spec: + dashboards: + - title: KubeDB / ZooKeeper / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - name: pod + type: Target + value: '{{ .metadata.name }}' + provider: Grafana + resource: + group: "" diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/postgreses.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/postgreses.yaml index 27be113312..480455e4ce 100644 --- a/hub/resourcedashboards/kubedb.com/v1alpha2/postgreses.yaml +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/postgreses.yaml @@ -15,6 +15,14 @@ spec: value: '{{ .metadata.namespace }}' - name: app value: '{{ .metadata.name }}' + - if: + condition: '{{- if hasKey .spec "remoteReplica" }}true{{ else }}false{{ end -}}' + title: KubeDB / Postgres / Remote Replica + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' - title: KubeDB / Postgres / Database vars: - name: namespace diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/redissentinels.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/redissentinels.yaml index df06960b7a..fc9cd4e9cc 100644 --- a/hub/resourcedashboards/kubedb.com/v1alpha2/redissentinels.yaml +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/redissentinels.yaml @@ -8,7 +8,19 @@ metadata: k8s.io/version: v1alpha2 name: kubedb.com-v1alpha2-redissentinels spec: - dashboards: null + dashboards: + - title: KubeDB / RedisSentinel / Summary + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - title: KubeDB / RedisSentinel / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' provider: Grafana resource: group: kubedb.com diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/weaviates.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/weaviates.yaml index c6162c081b..07a9c5d2ee 100644 --- a/hub/resourcedashboards/kubedb.com/v1alpha2/weaviates.yaml +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/weaviates.yaml @@ -8,7 +8,25 @@ metadata: k8s.io/version: v1alpha2 name: kubedb.com-v1alpha2-weaviates spec: - dashboards: null + dashboards: + - title: KubeDB / Weaviate / Summary + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - title: KubeDB / Weaviate / Database + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' + - title: KubeDB / Weaviate / Pod + vars: + - name: namespace + value: '{{ .metadata.namespace }}' + - name: app + value: '{{ .metadata.name }}' provider: Grafana resource: group: kubedb.com diff --git a/hub/resourcedashboards/kubedb.com/v1alpha2/zookeeper.yaml b/hub/resourcedashboards/kubedb.com/v1alpha2/zookeeper.yaml index 1f8fd66f32..c24595dca6 100644 --- a/hub/resourcedashboards/kubedb.com/v1alpha2/zookeeper.yaml +++ b/hub/resourcedashboards/kubedb.com/v1alpha2/zookeeper.yaml @@ -15,7 +15,7 @@ spec: value: '{{ .metadata.namespace }}' - name: app value: '{{ .metadata.name }}' - - title: KubeDB / ZooKeeper / Database + - title: KubeDB / ZooKeeper / Ensemble vars: - name: namespace value: '{{ .metadata.namespace }}' diff --git a/hub/resourcetabledefinitions/core.k8s.appscode.com/v1alpha1/kubedb/podviews-db2s.yaml b/hub/resourcetabledefinitions/core.k8s.appscode.com/v1alpha1/kubedb/podviews-db2s.yaml index 036d3746e5..5c594e4709 100644 --- a/hub/resourcetabledefinitions/core.k8s.appscode.com/v1alpha1/kubedb/podviews-db2s.yaml +++ b/hub/resourcetabledefinitions/core.k8s.appscode.com/v1alpha1/kubedb/podviews-db2s.yaml @@ -68,12 +68,6 @@ spec: template: '{{ .metadata.creationTimestamp | toDate "2006-01-02T15:04:05Z07:00" | unixEpoch }}' type: integer type: date - - dashboard: - name: kubedb.com-v1alpha2-db2s-pod - name: Dashboard - priority: 4 - textAlign: center - type: string - exec: {} name: Connect pathTemplate: '{{ .metadata.name }}' diff --git a/hub/resourcetabledefinitions/core.k8s.appscode.com/v1alpha1/kubedb/podviews-documentdbs.yaml b/hub/resourcetabledefinitions/core.k8s.appscode.com/v1alpha1/kubedb/podviews-documentdbs.yaml index 98343e4df7..aaad5e04c2 100644 --- a/hub/resourcetabledefinitions/core.k8s.appscode.com/v1alpha1/kubedb/podviews-documentdbs.yaml +++ b/hub/resourcetabledefinitions/core.k8s.appscode.com/v1alpha1/kubedb/podviews-documentdbs.yaml @@ -68,12 +68,6 @@ spec: template: '{{ .metadata.creationTimestamp | toDate "2006-01-02T15:04:05Z07:00" | unixEpoch }}' type: integer type: date - - dashboard: - name: kubedb.com-v1alpha2-documentdbs-pod - name: Dashboard - priority: 4 - textAlign: center - type: string - exec: {} name: Connect pathTemplate: '{{ .metadata.name }}' diff --git a/hub/resourcetabledefinitions/core.k8s.appscode.com/v1alpha1/kubedb/podviews-hanadbs.yaml b/hub/resourcetabledefinitions/core.k8s.appscode.com/v1alpha1/kubedb/podviews-hanadbs.yaml index 90fae53ac2..ae368363c9 100644 --- a/hub/resourcetabledefinitions/core.k8s.appscode.com/v1alpha1/kubedb/podviews-hanadbs.yaml +++ b/hub/resourcetabledefinitions/core.k8s.appscode.com/v1alpha1/kubedb/podviews-hanadbs.yaml @@ -68,12 +68,6 @@ spec: template: '{{ .metadata.creationTimestamp | toDate "2006-01-02T15:04:05Z07:00" | unixEpoch }}' type: integer type: date - - dashboard: - name: kubedb.com-v1alpha2-hanadbs-pod - name: Dashboard - priority: 4 - textAlign: center - type: string - exec: {} name: Connect pathTemplate: '{{ .metadata.name }}' diff --git a/hub/resourcetabledefinitions/core.k8s.appscode.com/v1alpha1/kubedb/podviews-milvuses.yaml b/hub/resourcetabledefinitions/core.k8s.appscode.com/v1alpha1/kubedb/podviews-milvuses.yaml index ce0fae746b..ec53208859 100644 --- a/hub/resourcetabledefinitions/core.k8s.appscode.com/v1alpha1/kubedb/podviews-milvuses.yaml +++ b/hub/resourcetabledefinitions/core.k8s.appscode.com/v1alpha1/kubedb/podviews-milvuses.yaml @@ -68,12 +68,6 @@ spec: template: '{{ .metadata.creationTimestamp | toDate "2006-01-02T15:04:05Z07:00" | unixEpoch }}' type: integer type: date - - dashboard: - name: kubedb.com-v1alpha2-milvuses-pod - name: Dashboard - priority: 4 - textAlign: center - type: string - exec: {} name: Connect pathTemplate: '{{ .metadata.name }}'