sealed abstract class MetricFactory[F[_]] extends AnyRef
- Alphabetic
- By Inheritance
- MetricFactory
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type CounterDsl[MDsl[_[_], _, _[_[_], _, _]], A] = HelpStep[MDsl[F, A, Counter]]
- type GaugeDsl[MDsl[_[_], _, _[_[_], _, _]], A] = HelpStep[MDsl[F, A, Gauge]]
- type HistogramDsl[MDsl[_[_], _, _[_[_], _, _]], A] = HelpStep[BucketDsl[MDsl[F, A, Histogram], A]]
- type SummaryDslLambda[A] = HelpStep[Base[F, A]]
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val commonLabels: CommonLabels
-
def
counter(name: Name): TypeStep[[β$2$]HelpStep[MetricDsl[F, β$2$, Counter]]]
Starts creating a "counter" metric.
Starts creating a "counter" metric.
- name
Counter.Name value
- returns
Counter builder
metrics.counter("my_counter").ofLong.help("my counter help") .label[Int]("first_label") .label[String]("second_label") .label[Boolean]("third_label") .build
Example: -
def
dropCommonLabels: MetricFactory[F]
Creates a new instance of MetricFactory with any Metric.CommonLabels
-
def
dropPrefix: MetricFactory[F]
Creates a new instance of MetricFactory without a Metric.Prefix set
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
gauge(name: Name): TypeStep[[β$0$]HelpStep[MetricDsl[F, β$0$, Gauge]]]
Starts creating a "gauge" metric.
Starts creating a "gauge" metric.
- name
Gauge.Name value
- returns
Gauge builder
metrics.gauge("my_gauge").ofDouble.help("my gauge help").label[Int]("first_label") .label[String]("second_label").label[Boolean]("third_label") .build
Example: -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
histogram(name: Name): TypeStep[[β$4$]HelpStep[BucketDsl[MetricDsl[F, β$4$, Histogram], β$4$]]]
Starts creating a "histogram" metric.
Starts creating a "histogram" metric.
- name
Histogram.Name value
- returns
Histogram builder
metrics.histogram("my_histogram").ofDouble.help("my counter help").buckets(1.0, 2.0) .label[Int]("first_label").label[String]("second_label").label[Boolean]("third_label") .build
Example: -
def
info(name: Name): HelpStep[BuildStep[F, Info[F, Map[Name, String]]]]
Starts creating an "info" metric.
Starts creating an "info" metric.
- name
Info.Name value
- returns
Info builder
metrics.info("app_info").help("my counter help").build
Example: -
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mapK[G[_]](fk: ~>[F, G])(implicit F: MonadCancel[F, _], G: MonadCancel[G, _]): MetricFactory[G]
Given a natural transformation from
F
toG
, transforms this MetricFactory from effectF
to effectG
.Given a natural transformation from
F
toG
, transforms this MetricFactory from effectF
to effectG
. The G constraint can also be satisfied by requiring a Functor[G]. -
val
metricRegistry: MetricRegistry[F]
- Attributes
- protected[prometheus4cats]
-
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()
- val prefix: Option[Prefix]
- def summary(name: Name): TypeStep[SummaryDslLambda]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
withCommonLabels(commonLabels: CommonLabels): MetricFactory[F]
Creates a new instance of MetricFactory with the provided Metric.CommonLabels
-
def
withPrefix(prefix: Prefix): MetricFactory[F]
Creates a new instance of MetricFactory with the given Metric.Prefix set