Project

General

Profile

Actions

Feature #22747

closed

Add units to performance counters

Added by John Spray over 6 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
MgrClient
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
luminous
Reviewed:
Affected Versions:
Pull request ID:

Description

Currently, our performance counters don't indicate whether they are just generic counts (e.g. number of requests), or something with a unit (e.g. number of bytes).

It would be neat to add this in perf_counters.h and then expose it in "perf schema dump" and all the way up the ceph-mgr stack, so that consumers like the dashboard can know how to display things nicely.

The path that stats take to the manager starts in MgrClient::send_report, where a PerfCounterType is composed and inserted into the ::declare_types field of MMgrReport. Then when DaemonServer is handling the report, it passes the message through DaemonPerfCounters::update, which stashes the PerfCounterType.

So: the performance counter definitions in perf_counters.h will need a unit field, as will PerfCounterType, and PerfCounterType's encode/decode member functions will need to include the unit field. (Note on encode/decode functions: the ENCODE_START/DECODE_START functions take a version, which will need to be incremented from its current value of 2. Then you can add a new field to the end of encode, and in the end of decode. The decode of the new field should be conditional on the version, the same as the "priority" field in PerfCounterType currently is).


Related issues 1 (0 open1 closed)

Copied to mgr - Backport #25117: luminous: mgr: add units to performance counters (dashboard_v2 req.)ResolvedErnesto PuertaActions
Actions #1

Updated by John Spray about 6 years ago

  • Status changed from New to Fix Under Review
  • Assignee set to Rubab Syed
Actions #2

Updated by John Spray about 6 years ago

  • Status changed from Fix Under Review to Resolved
Actions #3

Updated by Ernesto Puerta over 5 years ago

  • Status changed from Resolved to Pending Backport
  • Backport set to luminous
Actions #4

Updated by Ernesto Puerta over 5 years ago

  • Related to Backport #25117: luminous: mgr: add units to performance counters (dashboard_v2 req.) added
Actions #6

Updated by Nathan Cutler over 5 years ago

  • Related to deleted (Backport #25117: luminous: mgr: add units to performance counters (dashboard_v2 req.))
Actions #7

Updated by Nathan Cutler over 5 years ago

  • Copied to Backport #25117: luminous: mgr: add units to performance counters (dashboard_v2 req.) added
Actions #8

Updated by Nathan Cutler over 5 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF