Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Task] VX-225: Refactor the prometheus #190

Merged
merged 7 commits into from
Jul 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/entity/metrics_container.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package entity

// ContainerResourceMetrics is the sructure for Container Resource Metrics
type ContainerResourceMetrics struct {
CPUUsagePercentage float32 `json:"cpuUsagePercentage"`
MemoryUsageBytes float32 `json:"memoryUsageBytes"`
CPUUsagePercentage float32 `json:"cpuUsagePercentage"`
MemoryUsageBytes []SamplePair `json:"memoryUsageBytes"`
}

// ContainerStatusMetrics is the sructure for Container Status Metrics
Expand Down
8 changes: 8 additions & 0 deletions src/entity/metrics_node.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
package entity

import "github.com/prometheus/common/model"

// SamplePair pairs a SampleValue with a Timestamp.
type SamplePair struct {
Timestamp model.Time `json:"timestamp"`
Value model.SampleValue `json:"value"`
}

// NICNetworkTrafficMetrics is the structure for NIC metwork traffic metrics
type NICNetworkTrafficMetrics struct {
ReceiveBytesTotal int `json:"receiveBytesTotal"`
Expand Down
Loading