MacrocosmMetrics

An object that does metrics for Macrocosm

Functions

Link copied to clipboard
fun counter(id: String, description: String? = null): Counter

Constructs or gets a counter from cache with provided configuration

Link copied to clipboard
fun gauge(id: String, description: String? = null): Gauge

Constructs or gets a gauge from cache with provided configuration

Link copied to clipboard
fun histogram(id: String, description: String? = null): Histogram

Constructs or gets a histogram from cache with provided configuration

Link copied to clipboard
fun init()

Initializes Metrics on port 3438

Link copied to clipboard
fun shutdown()

Shuts down Metrics server

Link copied to clipboard
fun summary(id: String, description: String? = null, quantile: Double? = null, error: Double? = null): Summary

Constructs or gets a summary from cache with provided configuration

Properties

Link copied to clipboard
val logger: Logger

Metrics logger

Link copied to clipboard

Metrics thread executor