metric 관련 코드 수정

This commit is contained in:
2025-07-01 18:50:03 +09:00
parent 219e627539
commit d77fa2108a
2 changed files with 44 additions and 109 deletions

View File

@ -29,7 +29,6 @@ type MetricDescription struct {
type Exporter interface {
RegisterMetric(*MetricDescription)
UpdateMetric(string, float64)
Shutdown()
}
type MetricWriter interface {
@ -118,18 +117,6 @@ func NewMetric(mt MetricType, name string, help string, constLabels map[string]s
return impl
}
func ReadMetricValue(line []byte) (string, float64) {
if len(line) < 16 {
return "", 0
}
key := string(line[0:8])
valbits := binary.LittleEndian.Uint64(line[8:])
val := math.Float64frombits(valbits)
return key, val
}
var metricEnabled = false
func init() {