Skip to content

Commit

Permalink
Bug 2242324: avoid fetching performance metrics from mgr/prometheus
Browse files Browse the repository at this point in the history
Avoid fetching performance counters of ceph daemons in prometheus module
by setting `exclude_perf_counters` to true, given ceph-exporter takes of it in 4.14

Signed-off-by: Avan Thakkar <[email protected]>
  • Loading branch information
avanthakkar committed Feb 1, 2024
1 parent 29e71f9 commit ef0ea9f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/operator/ceph/cluster/mgr/mgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,12 @@ func (c *Cluster) configurePrometheusModule() error {
logger.Infof("prometheus config will change, interval: %v", interval)
}

// Disable fetching of performance counters from the prometheus exporter as ceph-exporter is enabled for 4.14
err = monStore.Set("mgr", "mgr/prometheus/exclude_perf_counters", "true")
if err != nil {
return errors.Wrapf(err, "failed to enable exclude_perf_counters")
}

if portHasChanged || intervalHasChanged {
logger.Info("prometheus config has changed. restarting the prometheus module")
return c.restartMgrModule(PrometheusModuleName)
Expand Down

0 comments on commit ef0ea9f

Please sign in to comment.