Skip to content

Commit

Permalink
exporter: fetch performance metrics from prometheus exporter for 4.13
Browse files Browse the repository at this point in the history
Enable functionality for fetching performance counters of ceph daemons in
prometheus module by setting `exclude_perf_counters` to false

Signed-off-by: Avan Thakkar <[email protected]>
  • Loading branch information
avanthakkar committed Feb 1, 2024
1 parent 42f4376 commit c5b2662
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/operator/ceph/cluster/mgr/mgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,13 @@ func (c *Cluster) Start() error {

// configure the mgr modules
c.configureModules(daemonIDs)

// Fetch performance counters from the prometheus exporter as ceph-exporter is disabled for 4.13
monStore := config.GetMonStore(c.context, c.clusterInfo)
err = monStore.Set("mgr", "mgr/prometheus/exclude_perf_counters", "false")
if err != nil {
return errors.Wrapf(err, "failed to disable exclude_perf_counters")
}
return nil
}

Expand Down

0 comments on commit c5b2662

Please sign in to comment.