-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feature): add support for reading dashboard configuration from YAML (#…
…26) * (feature): add support for reading dashboard configuration from YAML Signed-off-by: Bryce Palmer <[email protected]> * add test.yaml Signed-off-by: Bryce Palmer <[email protected]> --------- Signed-off-by: Bryce Palmer <[email protected]>
- Loading branch information
1 parent
512d6d9
commit 89a37a5
Showing
5 changed files
with
113 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package types | ||
|
||
type Dashboard struct { | ||
Panels []Panel `json:"panels"` | ||
Panels []Panel `json:"panels" yaml:"panels"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
panels: | ||
- name: All Pods | ||
group: "" | ||
version: v1 | ||
kind: Pod | ||
type: table | ||
columns: | ||
- header: Namespace | ||
path: metadata.namespace | ||
- header: Name | ||
path: metadata.name | ||
- header: Labels | ||
path: metadata.labels | ||
- header: Ready Condition | ||
path: status.conditions.#(type==Ready) | ||
- header: Phase | ||
path: status.phase | ||
- header: Containers | ||
path: spec.containers.#.name | ||
- name: Kube-System Pods with label tier=control-plane | ||
group: "" | ||
version: v1 | ||
kind: Pod | ||
type: table | ||
namespace: kube-system | ||
labelSelector: | ||
tier: control-plane | ||
columns: | ||
- header: Namespace | ||
path: metadata.namespace | ||
- header: Name | ||
path: metadata.name | ||
- header: Phase | ||
path: status.phase | ||
- header: PodIP | ||
path: status.podIP | ||
- header: Start Time | ||
path: status.startTime | ||
- header: UID | ||
path: metadata.uid | ||
- name: Deployments | ||
group: apps | ||
version: v1 | ||
kind: Deployment | ||
type: table | ||
columns: | ||
- header: Namespace | ||
path: metadata.namespace | ||
- header: Name | ||
path: metadata.name | ||
- header: Replicas | ||
path: status.replicas | ||
- name: Kube API Server | ||
group: "" | ||
version: v1 | ||
kind: Pod | ||
type: item | ||
key: | ||
namespace: kube-system | ||
name: kube-apiserver-kind-control-plane | ||
- name: Kube API Server Logs | ||
group: "" | ||
version: v1 | ||
kind: Pod | ||
type: logs | ||
key: | ||
namespace: kube-system | ||
name: kube-apiserver-kind-control-plane | ||
- name: Namespaces | ||
group: "" | ||
version: v1 | ||
kind: Namespace | ||
type: table | ||
columns: | ||
- header: Name | ||
path: metadata.name | ||
- name: CoreDNS Deployment Logs | ||
group: apps | ||
version: v1 | ||
kind: Deployment | ||
type: logs | ||
key: | ||
namespace: kube-system | ||
name: coredns |