A handler which accepts metrics metadata queries via http query strings and returns
json encoded metrics with their types and an indicator of whether or not counters are latched.
This is a temporary endpoint which will be replaced by a more fleshed out metadata endpoint.
Note
When passing an explicit histogram metric via ?m=, users must provide the raw histogram
name, no percentile (eg, .p99) appended.
Example Request:
http://$HOST:$PORT/admin/exp/metric_metadata?m=srv/http/requests&m=srv/http/pending&m=srv/mux/framer/write_stream_bytes
Response:
{
"latched" : true,
"metrics" : [
{
"name" : "srv/http/requests",
"kind" : "counter"
},
{
"name" : "srv/http/pending",
"kind" : "gauge"
},
{
"name" : "srv/mux/framer/write_stream_bytes",
"kind" : "histogram"
}
]
}
Linear Supertypes
Service[Request, Response], Closable, (Request) ⇒ Future[Response], AnyRef, Any
Ordering
Alphabetic
By Inheritance
Inherited
MetricTypeQueryHandler
Service
Closable
Function1
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
newMetricTypeQueryHandler(source: MetricSource = new MetricSource, details: Option[WithHistogramDetails] = None)
A handler which accepts metrics metadata queries via http query strings and returns json encoded metrics with their types and an indicator of whether or not counters are latched.
This is a temporary endpoint which will be replaced by a more fleshed out metadata endpoint.
When passing an explicit histogram metric via ?m=, users must provide the raw histogram name, no percentile (eg, .p99) appended. Example Request: http://$HOST:$PORT/admin/exp/metric_metadata?m=srv/http/requests&m=srv/http/pending&m=srv/mux/framer/write_stream_bytes Response: { "latched" : true, "metrics" : [ { "name" : "srv/http/requests", "kind" : "counter" }, { "name" : "srv/http/pending", "kind" : "gauge" }, { "name" : "srv/mux/framer/write_stream_bytes", "kind" : "histogram" } ] }