-
Notifications
You must be signed in to change notification settings - Fork 1
/
sidecar.example.yaml
133 lines (107 loc) · 3.75 KB
/
sidecar.example.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# Destination parameters, where the sidecar will send metrics:
destination:
# Endpoint should be a HTTP or HTTPS address that accepts
# OpenTelemetry Metrics v0.5 (or later) over gRPC:
endpoint: https://otlp.io:443
# Headers are included as gRPC metadata, represented as HTTP
# request headers when exporting metric data:
headers:
Access-Token: aabbccdd...wwxxyyzz
# Attributes are applied as OpenTelemetry resources on exporter
# metrics, which are typically treated like constant labels in
# downstream systems:
attributes:
# See the well-known semantic conventions for system resources:
# https://github.com/open-telemetry/opentelemetry-specification/tree/master/specification/resource/semantic_conventions
service.name: demo
environment: public
timeout: 2m
# Compression format to be used, if any. Defaults to snappy:
compression: snappy
# Prometheus configuration:
prometheus:
# The primary HTTP endpoint:
endpoint: http://127.0.0.1:19090
# Location of the write-ahead-log directory.
wal: /volume/wal
# Skip points older than this
max_point_age: 72h
# OpenTelemetry settings:
opentelemetry:
# Send at most this number of bytes per request
max_bytes_per_request: 1500
# Min number of shards, i.e. amount of concurrency
min_shards: 100
# Max number of shards, i.e. amount of concurrency
max_shards: 200
# Metrics prefix is prepended to all exported metric names:
metrics_prefix: prefix.
# Outbound queue size limit
queue_size: 100001
# Administrative settings:
admin:
# Listen address of the sidecar's http server (e.g., for healtchecks)
listen_ip: 0.0.0.0
port: 10000
# Controls how often the health check status is updated. This must
# be raised for Prometheus configurations that scrape infrequently.
# Default: 1m
health_check_period: 20s
# Controls the threshold ratio used to determine if the check
# should pass or fail based on the number of success or failure to
# send metrics via OTLP
health_check_threshold_ratio: 0.5
# Security settings:
security:
# Root certificates used in TLS settings:
root_certificates:
- /certs/root1.crt
- /certs/root2.crt
# Diagnostics parameters, where the sidecar will send its own diagnostic
# data. This is structurally the same as destination, above. If this is
# not configured and disable_diagnostics is also not set, this section
# will be auto-configured to match the primary destination.
diagnostics:
endpoint: https://otlp.io:443
headers:
Access-Token: wwxxyyzz...aabbccdd
attributes:
environment: internal
# Set this to prevent auto-configuring diagnostics.
disable_diagnostics: false
# Filters expressed as Prometheus series expressions. If any of these
# are configured, at least one must match for the timeseries be
# exported:
filters:
- metric{label=value}
- other{l1=v1,l2=v2}
# Metric renamings:
metric_renames:
- from: old_metric
to: new_metric
- from: mistake
to: correct
# Static metadata configures the kind of metric (counter, gauge,
# histogram, summary), the value type (int64, double), and the
# help string used for exporting metrics. These settings override
# metadata discovered via Prometheus:
static_metadata:
- metric: network_bps
type: counter
value_type: int64
help: Number of bits transferred by this process.
# Startup timeout determines how long to wait for the endpoint to
# become available once before entering the initial run state.
startup_timeout: 300s
# Control the format and level of console-logging output:
log:
level: debug
format: json
verbose: 1
# Control whether to use leadership election, which prevents bulk
# duplication of data in a Promtheus HA environment.
leader_election:
enabled: true
# k8s leader election settings:
k8s:
namespace: tools