mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-06 09:47:54 +00:00
Tons of movement. See notes.
* Renamed `MetricNamer` to `SeriesConverter` and renamed `MetricNameConverter` to `MetricNamer`. * Simplified the `metricConverter` code. * Greatly simplified the `externalSeriesRegistry` and removed the `externalInfoMap` code. * Fixed doc comment format. * Still several `TODO`s to address.
This commit is contained in:
parent
a94494337e
commit
d1827c5611
28 changed files with 1106 additions and 1006 deletions
|
|
@ -36,7 +36,7 @@ type DiscoveryRule struct {
|
|||
// as external or custom metrics.
|
||||
MetricType MetricType `yaml:"metricType,omitempty"`
|
||||
// ExternalMetricNamespaceLabelName identifies what Prometheus label should be examined
|
||||
// to apply a namespace to metrics creates from this rule.
|
||||
// to apply a namespace to metrics created from this rule.
|
||||
ExternalMetricNamespaceLabelName string `yaml:"externalMetricNamespaceLabelName,omitempty"`
|
||||
}
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ type NameMapping struct {
|
|||
As string `yaml:"as"`
|
||||
}
|
||||
|
||||
//MetricType identifies whether a given metric should be handled and interpreted as a Custom or External metric.
|
||||
// MetricType identifies whether a given metric should be handled and interpreted as a Custom or External metric.
|
||||
type MetricType string
|
||||
|
||||
// Operator represents a key/field's relationship to value(s).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue