Edit this page on GitHub

Metric Configuration

Here is a simple example for a metric configuration:

metric disk_space_used {
  kind gauge(uint64)
  unit byte

This is the list of valid stanzas within the metric block:

Stanza Description
kind Set the metric's type. See Metric Types
unit Set the metric's unit. See Units of Measurement
granularity Set the storage granularity
rate Optionally enable rate calculation for this metric
label Optionall add one or more label names to this metric
label_set Set the (default) value for one of the label names