-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from linkernetworks/phstsai/VX-69
DEV VX69: List handler for all resource, and get handler for pod and service.
- Loading branch information
Showing
20 changed files
with
475 additions
and
241 deletions.
There are no files selected for viewing
18 changes: 0 additions & 18 deletions
18
deploy/kubernetes/apps/monitoring/cadvisor/cadvisor-svc.yaml
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package entity | ||
|
||
type ContainerMetrics struct { | ||
ContainerName string `json:"containerName"` | ||
} |
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,10 @@ | ||
package entity | ||
|
||
type ControllerMetrics struct { | ||
ControllerName string `json:"controllerName"` | ||
Type string `json:"type"` | ||
Namespace string `json:"namespace"` | ||
Status string `json:"status"` | ||
CreateAt int `json:"createAt"` | ||
Labels map[string]string `json:"labels"` | ||
} |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package entity | ||
|
||
type PodMetrics struct { | ||
PodName string `json:"podName"` | ||
Namespace string `json:"namespace"` | ||
Node string `json:"node"` | ||
Status string `json:"status"` | ||
CreateAt int `json:"createAt"` | ||
CreateByKind string `json:"createByKind"` | ||
CreateByName string `json:"createByName"` | ||
IP string `json:"ip"` | ||
Labels map[string]string `json:"labels"` | ||
RestartCount int `json:"restartCount"` | ||
Containers []string `json:"containers"` | ||
} |
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,10 @@ | ||
package entity | ||
|
||
type ServiceMetrics struct { | ||
ServiceName string `json:"serviceName"` | ||
Namespace string `json:"namespace"` | ||
Type string `json:"type"` | ||
CreateAt int `json:"createAt"` | ||
ClusterIP string `json:"clusterIP"` | ||
Labels map[string]string `json:"labels"` | ||
} |
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
Oops, something went wrong.