custom metric 추가

This commit is contained in:
2023-11-16 19:47:30 +09:00
parent 8d764c8d18
commit ba72262d50
5 changed files with 137 additions and 60 deletions

View File

@ -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))
}