Skip to content

Commit

Permalink
Fix for Cruise Control 2.5.94+ (breaking change)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartam1 authored Sep 14, 2022
1 parent 7f61591 commit 98e7bd7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
It's client library (written in Golang) for interacting with
[Linkedin Cruise Control](https://github.com/linkedin/cruise-control) using its HTTP API.

Supported _Cruise Control_ versions: **2.5.x-2.5.93** (tested with v2.5.86)
Supported _Cruise Control_ versions: **2.5.94+** (tested with v2.5.101)

## How to use it

Expand Down
4 changes: 2 additions & 2 deletions deploy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ services:
retries: 30

cruisecontrolmetrics:
image: ghcr.io/banzaicloud/cruise-control:2.5.86
image: ghcr.io/banzaicloud/cruise-control:2.5.101
restart: "on-failure"
hostname: cruisecontrolmetrics
container_name: cruisecontrolmetrics
Expand Down Expand Up @@ -223,7 +223,7 @@ services:
retries: 30

cruisecontrol:
image: ghcr.io/banzaicloud/cruise-control:2.5.86
image: ghcr.io/banzaicloud/cruise-control:2.5.101
restart: unless-stopped
hostname: cruisecontrol
container_name: cruisecontrol
Expand Down
4 changes: 2 additions & 2 deletions pkg/types/broker_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (s *BrokerState) UnmarshalText(data []byte) error {
type HostLoadStats struct {
FollowerNwInRate float64 `json:"FollowerNwInRate"`
NwOutRate float64 `json:"NwOutRate"`
NumCore int32 `json:"NumCore"`
NumCore float64 `json:"NumCore"`
Host string `json:"Host"`
CPUPct float64 `json:"CpuPct"`
Replicas int32 `json:"Replicas"`
Expand All @@ -108,7 +108,7 @@ type BrokerLoadStats struct {
BrokerState BrokerState `json:"BrokerState"`
Broker int32 `json:"Broker"`
NwOutRate float64 `json:"NwOutRate"`
NumCore int32 `json:"NumCore"`
NumCore float64 `json:"NumCore"`
Host string `json:"Host"`
CPUPct float64 `json:"CpuPct"`
Replicas int32 `json:"Replicas"`
Expand Down

0 comments on commit 98e7bd7

Please sign in to comment.