custom metric 추가
This commit is contained in:
@ -17,7 +17,6 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"syscall"
|
||||
"time"
|
||||
"unsafe"
|
||||
@ -64,7 +63,6 @@ func loadClientConfig() (clientConfig, error) {
|
||||
}
|
||||
|
||||
type HoustonClient interface {
|
||||
SetReportMetrics(map[string]float32)
|
||||
Shutdown()
|
||||
Start()
|
||||
}
|
||||
@ -525,7 +523,3 @@ func (hc *houstonClient) checkOperation(client *grpc.ClientConn) error {
|
||||
hc.operationChan <- update
|
||||
}
|
||||
}
|
||||
|
||||
func (hc *houstonClient) SetReportMetrics(extra map[string]float32) {
|
||||
atomic.StorePointer(&hc.extraMetrics, unsafe.Pointer(&extra))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user