A handler which accepts metrics metadata queries via http query strings and returns
json encoded metrics with the metadata contained in their MetricSchemas, as well as an indicator
of whether or not counters are latched.
Note
When passing an explicit histogram metric via ?name=, users must provide the raw histogram
name, no percentile (eg, .p99) appended.
Example Request:
http://$HOST:$PORT/admin/metric_metadata?name=my/cool/counter&name=your/fine/gauge&name=my/only/histo
Response:
{
"@version" : 2.0,
"counters_latched" : false,
"metrics" : [
{
"name" : "my/cool/counter",
"relative_name" : ["cool","counter"],
"kind" : "counter",
"source" : {
"class": "finagle.stats.cool",
"category": "Server",
"process_path": "dc/role/zone/service"
},
"description" : "Counts how many cools are seen",
"unit" : "Requests",
"verbosity": "Verbosity(default)",
"key_indicator" : true
},
{
"name" : "your/fine/gauge",
"relative_name" : ["fine","gauge"],
"kind" : "gauge",
"source" : {
"class": "finagle.stats.your",
"category": "Client",
"process_path": "dc/your_role/zone/your_service"
},
"description" : "Measures how fine the downstream system is",
"unit" : "Percentage",
"verbosity": "Verbosity(debug)",
"key_indicator" : false
},
{
"name" : "my/only/histo",
"relative_name" : ["histo"],
"kind" : "histogram",
"source" : {
"class": "Unspecified",
"category": "NoRoleSpecified",
"process_path": "Unspecified"
},
"description" : "No description provided",
"unit" : "Unspecified",
"verbosity": "Verbosity(default)",
"key_indicator" : false,
"buckets" : [
0.5,
0.9,
0.99,
0.999,
0.9999
]
}
]}
Linear Supertypes
Service[Request, Response], Closable, (Request) ⇒ Future[Response], AnyRef, Any
A handler which accepts metrics metadata queries via http query strings and returns json encoded metrics with the metadata contained in their MetricSchemas, as well as an indicator of whether or not counters are latched.
When passing an explicit histogram metric via ?name=, users must provide the raw histogram name, no percentile (eg, .p99) appended. Example Request: http://$HOST:$PORT/admin/metric_metadata?name=my/cool/counter&name=your/fine/gauge&name=my/only/histo Response: { "@version" : 2.0, "counters_latched" : false, "metrics" : [ { "name" : "my/cool/counter", "relative_name" : ["cool","counter"], "kind" : "counter", "source" : { "class": "finagle.stats.cool", "category": "Server", "process_path": "dc/role/zone/service" }, "description" : "Counts how many cools are seen", "unit" : "Requests", "verbosity": "Verbosity(default)", "key_indicator" : true }, { "name" : "your/fine/gauge", "relative_name" : ["fine","gauge"], "kind" : "gauge", "source" : { "class": "finagle.stats.your", "category": "Client", "process_path": "dc/your_role/zone/your_service" }, "description" : "Measures how fine the downstream system is", "unit" : "Percentage", "verbosity": "Verbosity(debug)", "key_indicator" : false }, { "name" : "my/only/histo", "relative_name" : ["histo"], "kind" : "histogram", "source" : { "class": "Unspecified", "category": "NoRoleSpecified", "process_path": "Unspecified" }, "description" : "No description provided", "unit" : "Unspecified", "verbosity": "Verbosity(default)", "key_indicator" : false, "buckets" : [ 0.5, 0.9, 0.99, 0.999, 0.9999 ] } ]}