https://tracker.ceph.com/https://tracker.ceph.com/favicon.ico2018-06-19T15:50:07ZCeph mgr - Bug #24151: ceph-mgr have lost prio=0 perf counters? get_counter seem to ignore themhttps://tracker.ceph.com/issues/24151?journal_id=1152882018-06-19T15:50:07ZJohn Sprayjcspray@gmail.com
<ul></ul><p>Performance counters are indeed filtered by priority, this is controlled by a ceph-mgr setting called mgr_stats_threshold</p>
<p>If you set it to zero then you'll get everything -- a pretty huge number of counters, but on a smaller cluster that won't hurt too badly.</p> mgr - Bug #24151: ceph-mgr have lost prio=0 perf counters? get_counter seem to ignore themhttps://tracker.ceph.com/issues/24151?journal_id=1152892018-06-19T15:50:17ZJohn Sprayjcspray@gmail.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li></ul> mgr - Bug #24151: ceph-mgr have lost prio=0 perf counters? get_counter seem to ignore themhttps://tracker.ceph.com/issues/24151?journal_id=1154142018-06-20T14:48:32ZPeter Gervaigrin@grin.hu
<ul></ul><p>Thanks!</p>
<p>This is dangerously underdocumented to the point that I don't even have an immediate idea how to set it (apart from <em>guessing</em> the GLOBAL section of the ceph.conf). I usually prefer issues to be converted to documentation problems when there exists a good, working but completely hidden answer. (Try to google for "mgr_stats_threshold" or "ceph-mgr setting" and you probably see what I mean: no nothing.) And this have changed behaviour between updates (and conversely stomped on lots of graphs which were collected but not anymore).</p>
<p>I am not sure whether it could be set in a mgr module, or is it a global-only flag. Or else. So I would rather prefer a few words about this entering the docs before closing this issue into oblivion. (Until then I'll try to guess how it ought to work.)</p> mgr - Bug #24151: ceph-mgr have lost prio=0 perf counters? get_counter seem to ignore themhttps://tracker.ceph.com/issues/24151?journal_id=1155062018-06-21T15:27:35ZJohn Sprayjcspray@gmail.com
<ul></ul><p>It might be a bit of an overstatement to call this dangerous -- data loss is dangerous, a hidden perf counter is annoying :-)</p>
<p>The reason you're not seeing the setting's documentation online is that it has a documentation string in the code, but unfortunately the work to generate the web docs from that metadata hasn't happened yet.</p>
<p>If you can work out a good place to add some words about this to the documentation then PRs are always welcome.</p>