-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
metric-metadata.yaml
38 lines (36 loc) · 1.57 KB
/
metric-metadata.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Required: name of the receiver.
name:
# Optional: map of attribute definitions with the key being the attribute name and value
# being described below.
attributes:
<attribute.name>:
# Optional: if the attribute name as described by the key is not the actual attribute
# value to be reported that value can be overridden here.
value:
# Required: description of the attribute.
description:
# Optional: array of attribute values if they are static values.
enum:
# Required: map of metric names with the key being the metric name and value
# being described below.
metrics:
<metric.name>:
# Required: whether the metric is collected by default. Takes effect only with "--experimental-gen" mdatagen flag.
enabled: # true | false
# Required: metric description.
description:
# Optional: extended documentation of the metric.
extended_documentation:
# Required: metric unit as defined by https://ucum.org/ucum.html.
unit:
# Required: metric type with its settings.
<sum|gauge|histogram>:
# Required for sum and gauge metrics: type of number data point values.
value_type: # int | double
# Required for sum metric: whether the metric is monotonic (no negative delta values).
monotonic: # true | false
# Required for sum and histogram metrics: whether reported values incorporate previous measurements
# (cumulative) or not (delta).
aggregation: # delta | cumulative
# Optional: array of attributes that were defined in the attributes section that are emitted by this metric.
attributes: