class MetricMetadataQueryHandler extends Service[Request, Response]
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 ] } ]}
- Alphabetic
- By Inheritance
- MetricMetadataQueryHandler
- Service
- Closable
- Function1
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new MetricMetadataQueryHandler(source: MetricSchemaSource = new MetricSchemaSource)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def andThen[A](g: (Future[Response]) => A): (Request) => A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def apply(req: Request): Future[Response]
- Definition Classes
- MetricMetadataQueryHandler → Service → Function1
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def close(deadline: Time): Future[Unit]
- Definition Classes
- Service → Closable
- def close(after: Duration): Future[Unit]
- Definition Classes
- Closable
- final def close(): Future[Unit]
- Definition Classes
- Closable
- def compose[A](g: (A) => Request): (A) => Future[Response]
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isAvailable: Boolean
- Definition Classes
- Service
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[Req1](f: (Req1) => Request): Service[Req1, Response]
- Definition Classes
- Service
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def status: Status
- Definition Classes
- Service
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Service → Function1 → AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()