]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: use PRIO_INTERESTING as daemonperf threshold
authorJohn Spray <john.spray@redhat.com>
Mon, 11 Sep 2017 13:12:25 +0000 (09:12 -0400)
committerJohn Spray <john.spray@redhat.com>
Wed, 27 Sep 2017 18:20:20 +0000 (14:20 -0400)
Using PRIO_USEFUL as the threshold for what goes into
time series databases.  I'm claiming that we have
more "useful" counters than fit on the screen,
so daemonperf's "a screen's worth" threshold
should be at the "interesting" level.

Signed-off-by: John Spray <john.spray@redhat.com>
src/ceph.in
src/common/perf_counters.h

index e96eca568202a540b5a49c6c59f6b356b5a42fad..daec2993764504c0070fc58a98400962e95e0594 100755 (executable)
@@ -48,7 +48,7 @@ PRIO_USEFUL = 5
 PRIO_UNINTERESTING = 2
 PRIO_DEBUGONLY = 0
 
-PRIO_DEFAULT = PRIO_USEFUL
+PRIO_DEFAULT = PRIO_INTERESTING
 
 # Make life easier on developers:
 # If our parent dir contains CMakeCache.txt and bin/init-ceph,
index ec81de4f3595f6839c6b83de726f328444998fd8..27fc5f071ae1ae5aa4924b742e1eb573b7ef9ab4 100644 (file)
@@ -279,9 +279,14 @@ public:
 
   // prio values: higher is better, and higher values get included in
   // 'ceph daemonperf' (and similar) results.
+  // Use of priorities enables us to add large numbers of counters
+  // internally without necessarily overwhelming consumers.
   enum {
     PRIO_CRITICAL = 10,
+    // 'interesting' is the default threshold for `daemonperf` output
     PRIO_INTERESTING = 8,
+    // `useful` is the default threshold for transmission to ceph-mgr
+    // and inclusion in prometheus/influxdb plugin output
     PRIO_USEFUL = 5,
     PRIO_UNINTERESTING = 2,
     PRIO_DEBUGONLY = 0,