Whamcloud - gitweb
LU-17005 obdclass: allow jobstats histogram to be disabled
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 16 Aug 2023 23:49:43 +0000 (17:49 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 21 Aug 2023 08:45:11 +0000 (08:45 +0000)
Allow the jobstats IO size histogram to be disabled with the
"enable_stats_header" tunable parameter.  This maintains
compatibility with older collectd and other stats-scraping
scripts that do not understand these new fields.

Default to disabled for EXA6.2.1, since it is new for this release.

Test-Parameters: trivial
Fixes: fde40ce32c ("LU-16087 lprocfs: add histogram to stats counter")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ie8bff8ef033f0b6e28c19548b7302d0913ddf905
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51966
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Nathaniel Clark <nclark@whamcloud.com>
lustre/obdclass/lprocfs_jobstats.c

index 26b2056..3c078fd 100644 (file)
@@ -547,7 +547,7 @@ static int lprocfs_jobstats_seq_show(struct seq_file *p, void *v)
 
                /* show obd_histogram */
                hist = s->ls_cnt_header[i].lc_hist;
-               if (hist != NULL) {
+               if (hist != NULL && obd_enable_stats_header) {
                        bool first = true;
                        int j;