-
Notifications
You must be signed in to change notification settings - Fork 173
/
config.yaml
102 lines (102 loc) · 3.08 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
92
93
94
95
96
97
98
99
100
101
102
receivers:
# Data sources: traces
zipkin:
endpoint: '0.0.0.0:9411'
# Data sources: logs
fluentforward:
endpoint: '0.0.0.0:24225'
# Data sources: traces, metrics, logs
otlp:
protocols:
grpc:
include_metadata: true
endpoint: '0.0.0.0:4317'
http:
cors:
allowed_origins: ['*']
allowed_headers: ['*']
include_metadata: true
endpoint: '0.0.0.0:4318'
processors:
resourcedetection:
detectors:
- env
- system
- docker
timeout: 5s
override: false
attributes/attachHdxKey:
actions:
- key: __HDX_API_KEY
from_context: authorization
action: upsert
# TODO: use transform to attach __HDX_API_KEY attribute to spans/metrics/logs
transform:
error_mode: ignore
metric_statements:
- context: resource
statements:
# map metrics context to resource context (so splunk_hec will capture it)
- set(attributes["metric_aggregation_temporality"], "0")
- set(attributes["metric_unit"], "")
- set(attributes["metric_is_monotonic"], false)
- context: metric
statements:
- set(resource.attributes["metric_aggregation_temporality"],
aggregation_temporality)
- set(resource.attributes["metric_unit"], unit)
- set(resource.attributes["metric_is_monotonic"], is_monotonic)
batch:
memory_limiter:
# 80% of maximum memory up to 2G
limit_mib: 1500
# 25% of limit up to 2G
spike_limit_mib: 512
check_interval: 5s
exporters:
logging:
loglevel: ${env:HYPERDX_LOG_LEVEL}
logzio/traces:
account_token: 'X' # required but we don't use it
endpoint: '${env:INGESTOR_API_URL}?hdx_platform=otel-traces'
logzio/logs:
account_token: 'X' # required but we don't use it
endpoint: '${env:INGESTOR_API_URL}?hdx_platform=otel-logs'
# https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/splunkhecexporter
splunk_hec:
token: 'X' # required but we don't use it
# endpoint: 'http://ingestor:8002?hdx_platform=otel-metrics'
endpoint: '${env:INGESTOR_API_URL}?hdx_platform=otel-metrics'
# HTTP timeout when sending data. Defaults to 10s.
timeout: 10s
max_content_length_logs: 0
extensions:
health_check:
endpoint: :13133
pprof:
endpoint: :1888
zpages:
endpoint: :55679
memory_ballast:
# Memory Ballast size should be max 1/3 to 1/2 of memory.
size_mib: 683
service:
telemetry:
metrics:
address: ':8888'
logs:
level: ${env:HYPERDX_LOG_LEVEL}
extensions: [health_check, zpages, memory_ballast]
pipelines:
traces:
receivers: [otlp, zipkin]
processors: [attributes/attachHdxKey, memory_limiter, batch]
exporters: [logzio/traces, logging]
metrics:
receivers: [otlp]
processors: [attributes/attachHdxKey, transform, memory_limiter, batch]
exporters: [splunk_hec, logging]
logs:
receivers: [otlp, fluentforward]
processors: [attributes/attachHdxKey, memory_limiter, batch]
exporters: [logzio/logs, logging]