-
Notifications
You must be signed in to change notification settings - Fork 53
/
metrics.yaml
44 lines (42 loc) · 1.13 KB
/
metrics.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
39
40
41
42
43
44
groups:
- id: metric.foo
prefix: bar
type: metric_group
brief: "This document defines foo."
note: >
Details about foo.
attributes:
- id: egg.type
type: string
brief: 'Type of egg.'
examples: ["chicken", "emu", "dragon"]
note: >
Some notes on attribute
- id: metric.foo.size
prefix: foo
type: metric
metric_name: foo.size
brief: "Measures the size of foo."
instrument: histogram
unit: "{bars}"
note: >
Some notes on metric.foo.size
attributes:
- ref: http.method
requirement_level: required
- ref: http.status_code
requirement_level:
conditionally_required: "if and only if one was received/sent."
- id: metric.foo.active_eggs
prefix: foo
type: metric
metric_name: foo.active_eggs
brief: "Measures how many eggs are currently active."
instrument: updowncounter
unit: "{cartons}"
attributes:
- ref: http.method
requirement_level: opt_in
- ref: bar.egg.type
requirement_level:
conditionally_required: "if available to instrumentation."