mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-22 01:23:18 +00:00
switch our usage of expfmt.TextParser
This commit is contained in:
@@ -722,7 +722,7 @@ type consistencyCheckStatus struct {
|
||||
}
|
||||
|
||||
func parseMetric(r io.Reader, name string) (*dto.MetricFamily, error) {
|
||||
var parser expfmt.TextParser
|
||||
parser := expfmt.NewTextParser(model.UTF8Validation)
|
||||
mfs, err := parser.TextToMetricFamilies(r)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user