Intermediate progress.

Working through some of the result conversions.
I want to use this code in a harness project to exercise some of it, but there are some versioning issues around my modified code vs. the current version of the real project. The easiest way to work around them at the moment is to push this.
This commit is contained in:
Tony Compton 2018-06-29 09:46:26 -04:00
parent a69a5cbbcc
commit d90012439c
6 changed files with 68 additions and 37 deletions

View file

@ -78,7 +78,11 @@ func (p *externalPrometheusProvider) GetExternalMetric(namespace string, metricN
return nil, err
}
return p.metricConverter.Convert(queryResults)
queryMetadata := conv.QueryMetadata{
MetricName: metricName,
WindowInSeconds: 0,
}
return p.metricConverter.Convert(queryMetadata, queryResults)
}
func (p *externalPrometheusProvider) ListAllExternalMetrics() []provider.ExternalMetricInfo {