Skip to content

Commit

Permalink
twitter-server: add documentation for multiple metrics queries
Browse files Browse the repository at this point in the history
Problem/Solution/Result

/admin/metrics allows you to query several metrics at the same time by using
multiple instances of the m query parameter unfortunately we do not document
this fact. Add some documentation around this so users know how to take
advantage of this useful trick.

Differential Revision: https://phabricator.twitter.biz/D366380
  • Loading branch information
David Rusek authored and jenkins committed Sep 5, 2019
1 parent 026cf08 commit d4c84f1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions doc/src/sphinx/Admin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,27 @@ value (instantaneous value) for the specific metric.
}
]

You may specify as many `m` parameters as you like, one fore each metric you would like to retrieve.

::

/admin/metrics?m=exceptions&m=jvm/uptime

::

[
{
"name" : "jvm/uptime",
"delta" : 8.3826464E7,
"value" : 8.3826464E7
},
{
"name" : "exceptions",
"delta" : 0.0,
"value" : 0.0
}
]

/admin/metrics.json
~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit d4c84f1

Please sign in to comment.