mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-02-14 18:09:57 +00:00
Merge pull request #1177 from hakman/depup
Some checks failed
CodeQL / Analyze (go) (push) Failing after 1m28s
Scorecard supply-chain security / Scorecard analysis (push) Failing after 54s
Some checks failed
CodeQL / Analyze (go) (push) Failing after 1m28s
Scorecard supply-chain security / Scorecard analysis (push) Failing after 54s
Update dependencies and bump Go to v1.24.10
This commit is contained in:
@@ -22,6 +22,7 @@ import (
|
||||
|
||||
pcm "github.com/prometheus/client_model/go"
|
||||
"github.com/prometheus/common/expfmt"
|
||||
"github.com/prometheus/common/model"
|
||||
"go.opencensus.io/tag"
|
||||
)
|
||||
|
||||
@@ -72,7 +73,7 @@ func getTagKeysFromNames(tagNames []string) ([]tag.Key, error) {
|
||||
func ParsePrometheusMetrics(metricsText string) ([]Float64MetricRepresentation, error) {
|
||||
var metrics []Float64MetricRepresentation
|
||||
|
||||
var textParser expfmt.TextParser
|
||||
textParser := expfmt.NewTextParser(model.UTF8Validation)
|
||||
metricsText = strings.ReplaceAll(metricsText, "\r", "")
|
||||
metricFamilies, err := textParser.TextToMetricFamilies(strings.NewReader(metricsText))
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user