v043 audit changes for telemetry/ (#9297)
* v043 audit changes for version * v042 audit changes for telemetry * remove version changes in telemetry audit
This commit is contained in:
parent
3a774cf0d1
commit
28c2ce0b53
|
@ -64,11 +64,13 @@ type Metrics struct {
|
||||||
prometheusEnabled bool
|
prometheusEnabled bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GatherResponse is the response type of registered metrics
|
||||||
type GatherResponse struct {
|
type GatherResponse struct {
|
||||||
Metrics []byte
|
Metrics []byte
|
||||||
ContentType string
|
ContentType string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// New creates a new instance of Metrics
|
||||||
func New(cfg Config) (*Metrics, error) {
|
func New(cfg Config) (*Metrics, error) {
|
||||||
if !cfg.Enabled {
|
if !cfg.Enabled {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
|
|
|
@ -13,6 +13,7 @@ const (
|
||||||
MetricLabelNameModule = "module"
|
MetricLabelNameModule = "module"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// NewLabel creates a new instance of Label with name and value
|
||||||
func NewLabel(name, value string) metrics.Label {
|
func NewLabel(name, value string) metrics.Label {
|
||||||
return metrics.Label{Name: name, Value: value}
|
return metrics.Label{Name: name, Value: value}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue