mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-06 01:38:10 +00:00
pkg/naming: add non-namespace resources
This is a merge commit back-porting PR #179
This commit is contained in:
parent
e103a8eed2
commit
d447eb1ec2
2 changed files with 5 additions and 3 deletions
|
|
@ -99,8 +99,8 @@ func (r *basicSeriesRegistry) SetSeries(newSeriesSlices [][]prom.Series, namers
|
|||
Metric: name,
|
||||
}
|
||||
|
||||
// namespace metrics aren't counted as namespaced
|
||||
if resource == naming.NsGroupResource {
|
||||
// some metrics aren't counted as namespaced
|
||||
if resource == naming.NsGroupResource || resource == naming.NodeGroupResource || resource == naming.PVGroupResource {
|
||||
info.Namespaced = false
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue