-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[8.2](backport #31785) Feature/cache expiration #31977
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,7 +75,7 @@ func New(base mb.BaseMetricSet) (mb.MetricSet, error) { | |
return &MetricSet{ | ||
BaseMetricSet: base, | ||
http: http, | ||
enricher: util.NewContainerMetadataEnricher(base, true), | ||
enricher: util.NewContainerMetadataEnricher(base, mod.GetPerfMetricsCache(), true), | ||
mod: mod, | ||
}, nil | ||
} | ||
|
@@ -93,7 +93,11 @@ func (m *MetricSet) Fetch(reporter mb.ReporterV2) { | |
return | ||
} | ||
|
||
<<<<<<< HEAD | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Conflict I guess. |
||
events, err := eventMapping(body, util.PerfMetrics) | ||
======= | ||
events, err := eventMapping(body, m.mod.GetPerfMetricsCache(), m.Logger()) | ||
>>>>>>> 4b625fc411 (Feature/cache expiration (#31785)) | ||
if err != nil { | ||
m.Logger().Error(err) | ||
reporter.Error(err) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,7 +76,7 @@ func New(base mb.BaseMetricSet) (mb.MetricSet, error) { | |
return &MetricSet{ | ||
BaseMetricSet: base, | ||
http: http, | ||
enricher: util.NewResourceMetadataEnricher(base, &kubernetes.Pod{}, true), | ||
enricher: util.NewResourceMetadataEnricher(base, &kubernetes.Pod{}, mod.GetPerfMetricsCache(), true), | ||
mod: mod, | ||
}, nil | ||
} | ||
|
@@ -94,7 +94,11 @@ func (m *MetricSet) Fetch(reporter mb.ReporterV2) { | |
return | ||
} | ||
|
||
<<<<<<< HEAD | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Another one. |
||
events, err := eventMapping(body, util.PerfMetrics) | ||
======= | ||
events, err := eventMapping(body, m.mod.GetPerfMetricsCache(), m.Logger()) | ||
>>>>>>> 4b625fc411 (Feature/cache expiration (#31785)) | ||
if err != nil { | ||
m.Logger().Error(err) | ||
reporter.Error(err) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,7 +89,11 @@ func New(base mb.BaseMetricSet) (mb.MetricSet, error) { | |
return &MetricSet{ | ||
BaseMetricSet: base, | ||
prometheus: prometheus, | ||
<<<<<<< HEAD | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ^ |
||
enricher: util.NewResourceMetadataEnricher(base, &kubernetes.ReplicaSet{}, false), | ||
======= | ||
enricher: util.NewResourceMetadataEnricher(base, &kubernetes.DaemonSet{}, mod.GetPerfMetricsCache(), false), | ||
>>>>>>> 4b625fc411 (Feature/cache expiration (#31785)) | ||
mod: mod, | ||
}, nil | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,5 +97,4 @@ func (m *ResourceQuotaMetricSet) Fetch(reporter mb.ReporterV2) { | |
return | ||
} | ||
} | ||
return | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,5 +99,4 @@ func (m *StorageClassMetricSet) Fetch(reporter mb.ReporterV2) { | |
return | ||
} | ||
} | ||
return | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need fix. The backport script usually mess thing up in changelogs.