Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MetricOptions

Options needed for metric creation

Hierarchy

  • MetricOptions

Index

Properties

Optional absolute

absolute: undefined | false | true

(Measure only, default true) Asserts that this metric will only accept non-negative values (e.g. disk usage).

Optional component

component: undefined | string

The name of the component that reports the Metric.

Optional constantLabels

constantLabels: Map<string, string>

The map of constant labels for the Metric.

Optional description

description: undefined | string

The description of the Metric.

default

''

Optional disabled

disabled: undefined | false | true

Indicates the metric is a verbose metric that is disabled by default

default

false

Optional unit

unit: undefined | string

The unit of the Metric values.

default

'1'

Optional valueType

valueType: ValueType

Indicates the type of the recorded value.

default

ValueType.DOUBLE