mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-07 02:07:58 +00:00
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:
parent
a69a5cbbcc
commit
d90012439c
6 changed files with 68 additions and 37 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue