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
|
||||
}
|
||||
|
||||
// GatherResponse is the response type of registered metrics
|
||||
type GatherResponse struct {
|
||||
Metrics []byte
|
||||
ContentType string
|
||||
}
|
||||
|
||||
// New creates a new instance of Metrics
|
||||
func New(cfg Config) (*Metrics, error) {
|
||||
if !cfg.Enabled {
|
||||
return nil, nil
|
||||
|
|
|
@ -13,6 +13,7 @@ const (
|
|||
MetricLabelNameModule = "module"
|
||||
)
|
||||
|
||||
// NewLabel creates a new instance of Label with name and value
|
||||
func NewLabel(name, value string) metrics.Label {
|
||||
return metrics.Label{Name: name, Value: value}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue