Skip to content

Commit

Permalink
Add section hinting how to collect C++ server metrics in README.md
Browse files Browse the repository at this point in the history
Summary: Context: #389

Reviewed By: vitaut

Differential Revision: D23064586

fbshipit-source-id: 1c6193e3f1c5ce7bb249892aad6a11ab62f4d005
  • Loading branch information
zhxchen17 authored and facebook-github-bot committed Aug 12, 2020
1 parent fb75684 commit 95022ab
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,12 @@ Information regarding C++ Static Reflection support can be found under the [stat

---

## C++ Server Metrics

To collect runtime stats from a Thrift server, e.g. the number of active requests/connections, C++ Thrift server supports an observer API which installs callbacks at a set of specific execution points in the server.

To expose collected metrics out of the server process, one way is to use `fb303` interfaces, see [fb303 Github repo](https://github.com/facebook/fb303).

---

<img src="https://avatars2.githubusercontent.com/u/69631?s=200&v=4" width="50"></img>

0 comments on commit 95022ab

Please sign in to comment.