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:
likhita-809 2021-05-11 17:58:47 +05:30 committed by GitHub
parent 3a774cf0d1
commit 28c2ce0b53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

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

View File

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