mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chun-Hung Hsiao <chhs...@apache.org>
Subject Review Request 67255: Added per-CSI-call RPC metrics for SLRP.
Date Tue, 22 May 2018 23:36:55 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/67255/
-----------------------------------------------------------

Review request for mesos, Benjamin Bannier, Greg Mann, Jie Yu, and Jan Schlicht.


Bugs: MESOS-8943
    https://issues.apache.org/jira/browse/MESOS-8943


Repository: mesos


Description
-------

For each CSI call, e.g., `csi.v0.Identity.Probe`, we the following
metrics for SLRP:
`csi_plugin/rpcs/csi.v0.Identity.Probe/pending`
`csi_plugin/rpcs/csi.v0.Identity.Probe/successes`
`csi_plugin/rpcs/csi.v0.Identity.Probe/errors`
`csi_plugin/rpcs/csi.v0.Identity.Probe/discarded`

To add these per-CSI-call metrics, we introduced class template
`messo::csi::v0::Client::MethodName` to translate RPC methods of the CSI
client into string names, and added the `call` helper function in SLRP
to intercept CSI calls and update the corresponding metrics.


Diffs
-----

  src/csi/client.hpp 5d846740f72125efb3654e14d763bd24634367b9 
  src/csi/client.cpp 559e8057eccce5bf758918c24e5ca8c561af6592 
  src/resource_provider/storage/provider.cpp 63b5d7e5f10d6ad02b5cd11b119def3b4abf4180 


Diff: https://reviews.apache.org/r/67255/diff/1/


Testing
-------

sudo make check

A unit test for the metrics will be introduced in the next patch.


Thanks,

Chun-Hung Hsiao


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message