Prometheus

Registry

registerIO

register

unsafeRegisterIO

unsafeRegister

unregisterAll

collectMetrics

Exporting

exportMetricsAsText

Metrics

Counter

data Counter

counter

incCounter

addCounter

unsafeAddCounter

addDurationToCounter

getCounter

Gauge

data Gauge

gauge

incGauge

decGauge

addGauge

subGauge

setGauge

setGaugeToDuration

getGauge

Summaries and histograms

class Observer metric

observeDuration

Summary

data Summary

type Quantile

summary

defaultQuantiles

getSummary

Histogram

data Histogram

histogram

defaultBuckets

exponentialBuckets

linearBuckets

getHistogram

Vector

data Vector l m

vector

withLabel

removeLabel

clearLabels

getVectorWith

Labels

class Label l

type LabelPairs

type Label0

type Label1

type Label2

type Label3

type Label4

type Label5

type Label6

type Label7

type Label8

type Label9

Custom metrics

Instrumenting pure code

class MonadMonitor m

type Monitor a

runMonitor

data MonitorT m a

runMonitorT

Base data types

data Info

data Metric s

data Sample

data SampleGroup

data SampleType