-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
config.yaml
91 lines (75 loc) · 2.41 KB
/
config.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# default configuration
spanmetrics/default:
# default configuration with explicit buckets histogram
spanmetrics/default_explicit_histogram:
histogram:
explicit:
# configuration with all possible parameters
spanmetrics/full:
histogram:
unit: "s"
explicit:
buckets: [ 10ms, 100ms, 250ms ]
exemplars:
enabled: true
dimensions_cache_size: 1500
resource_metrics_cache_size: 1600
# Additional list of dimensions on top of:
# - service.name
# - span.name
# - span.kind
# - status.code
dimensions:
# If the span is missing http.method, the connector will insert
# the http.method dimension with value 'GET'.
- name: http.method
default: GET
# If a default is not provided, the http.status_code dimension will be omitted
# if the span does not contain http.status_code.
- name: http.status_code
# The aggregation temporality of the generated metrics.
# Default: "AGGREGATION_TEMPORALITY_CUMULATIVE"
aggregation_temporality: "AGGREGATION_TEMPORALITY_DELTA"
# The period on which all metrics (whose dimension keys remain in cache) will be emitted.
# Default: 60s.
metrics_flush_interval: 30s
# default configuration with exponential buckets histogram
spanmetrics/exponential_histogram:
histogram:
exponential:
max_size: 10
# invalid histogram configuration
spanmetrics/exponential_and_explicit_histogram:
histogram:
exponential:
max_size: 10
explicit:
buckets: [ 10ms, 100ms, 250ms ]
spanmetrics/invalid_histogram_unit:
histogram:
unit: "h"
spanmetrics/invalid_metrics_expiration:
metrics_expiration: -20s
# exemplars enabled
spanmetrics/exemplars_enabled:
exemplars:
enabled: true
# exemplars enabled with max per datapoint configured
spanmetrics/exemplars_enabled_with_max_per_datapoint:
exemplars:
enabled: true
max_per_data_point: 5
# resource metrics key attributes filter
spanmetrics/resource_metrics_key_attributes:
resource_metrics_key_attributes:
- service.name
- telemetry.sdk.language
- telemetry.sdk.name
spanmetrics/custom_delta_timestamp_cache_size:
aggregation_temporality: "AGGREGATION_TEMPORALITY_DELTA"
metric_timestamp_cache_size: 123
spanmetrics/invalid_delta_timestamp_cache_size:
aggregation_temporality: "AGGREGATION_TEMPORALITY_DELTA"
metric_timestamp_cache_size: 0
spanmetrics/default_delta_timestamp_cache_size:
aggregation_temporality: "AGGREGATION_TEMPORALITY_DELTA"