]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
telemetry/module.py: update gather_perf_counters to emit values of labeled counters 61997/head
authorNaveen Naidu <naveennaidu479@gmail.com>
Tue, 25 Feb 2025 17:36:26 +0000 (17:36 +0000)
committerNaveen Naidu <naveennaidu479@gmail.com>
Tue, 8 Apr 2025 02:26:46 +0000 (07:56 +0530)
commit859ab966367327533ffd82fd4a0463854c29e6ed
tree032aa8804c39ed3d539b6dcd2d0cdca78dfb0092
parent21d35918fe0968818991b0498063ef8e78e5ac3f
telemetry/module.py: update gather_perf_counters to emit values of labeled counters

Until now, gather_perf_counters only included the values of unlabeled
counters. We update the API to include the values of labeled counters.
This change also updates the format of how these values are now emitted.

The perf counters in the telemetry report are now shows as below:
```
"perf_counters": {
        "mon.239f8ba73d60451130f972fcd40d9b409b1bfb66": {
            "AsyncMessenger::Worker": [
                {
                    "counters": {
                        "msgr_connection_idle_timeouts": {
                            "value": 0
                        },
                        "msgr_connection_ready_timeouts": {
                            "value": 0
                        }
                    },
                    "labels": {
                        "id": "0"
                    }
                }
            ],
```

Notice that each counter now has two new subfields: 'counters' and
'labels'.

Signed-off-by: Naveen Naidu <naveen.naidu@ibm.com>
src/pybind/mgr/telemetry/module.py