Class/Object

io.chrisdavenport.epimetheus

CollectorRegistry

Related Docs: object CollectorRegistry | package epimetheus

Permalink

final class CollectorRegistry[F[_]] extends AnyRef

A CollectorRegistry is a registry of Collectors.

It represents the concurrently shared state which holds the information of the metrics in question.

On Creation

Due to how prometheus scraping occurs, only one CollectorRegistry is generally useful per application. There are generally 2 approaches.

1. Create your own registry. Register Metrics with it. Expose that. Advantages: Full Control Of the Code 2. Use the global defaultRegistry Advantages: Easier Interop with Java libraries that may not give an option for interaction with arbitrary CollectorRegistries.

Source
CollectorRegistry.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CollectorRegistry
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. def register(c: Collector): F[Unit]

    Permalink

    Register A Collector with this Collector Registory

  16. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  17. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  18. def unregister(c: Collector): F[Unit]

    Permalink

    Unregister A Collector with this CollectorRegistry

  19. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. def write004: F[String]

    Permalink

    Write out the text version 0.0.4 of the given MetricFamilySamples contained in the CollectorRegistry.

    Write out the text version 0.0.4 of the given MetricFamilySamples contained in the CollectorRegistry.

    See http://prometheus.io/docs/instrumenting/exposition_formats/ for the output format specification

Inherited from AnyRef

Inherited from Any

Ungrouped