pkg/naming: add non-namespace resources

This is a merge commit back-porting PR #179
This commit is contained in:
Sergiusz Urbaniak 2019-03-28 13:26:58 +01:00 committed by John Delivuk
parent e103a8eed2
commit d447eb1ec2
No known key found for this signature in database
GPG key ID: 8597474A0655625E
2 changed files with 5 additions and 3 deletions

View file

@ -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
}