feat: secure telemetry ingestion and grafana data sources
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
extensions:
|
||||
health_check:
|
||||
endpoint: 0.0.0.0:13133
|
||||
bearertokenauth:
|
||||
filename: /run/tls/ingest_token
|
||||
|
||||
receivers:
|
||||
otlp:
|
||||
@@ -8,6 +8,12 @@ receivers:
|
||||
http:
|
||||
endpoint: 0.0.0.0:4318
|
||||
max_request_body_size: 4194304
|
||||
auth:
|
||||
authenticator: bearertokenauth
|
||||
tls:
|
||||
cert_file: /run/tls/otel-collector.crt
|
||||
key_file: /run/tls/otel-collector.key
|
||||
min_version: "1.2"
|
||||
|
||||
processors:
|
||||
memory_limiter:
|
||||
@@ -21,7 +27,12 @@ processors:
|
||||
|
||||
exporters:
|
||||
otlphttp/prometheus:
|
||||
endpoint: http://prometheus:9090/api/v1/otlp
|
||||
endpoint: https://prometheus:9443/api/v1/otlp
|
||||
tls: &backend-tls
|
||||
ca_file: /run/tls/ca.crt
|
||||
cert_file: /run/tls/collector.lab7.internal.crt
|
||||
key_file: /run/tls/collector.lab7.internal.key
|
||||
min_version: "1.2"
|
||||
timeout: 5s
|
||||
sending_queue:
|
||||
enabled: true
|
||||
@@ -33,7 +44,8 @@ exporters:
|
||||
max_interval: 10s
|
||||
max_elapsed_time: 60s
|
||||
otlphttp/loki:
|
||||
endpoint: http://loki:3100/otlp
|
||||
endpoint: https://loki:9443/otlp
|
||||
tls: *backend-tls
|
||||
timeout: 5s
|
||||
sending_queue:
|
||||
enabled: true
|
||||
@@ -45,7 +57,8 @@ exporters:
|
||||
max_interval: 10s
|
||||
max_elapsed_time: 60s
|
||||
otlphttp/tempo:
|
||||
endpoint: http://tempo:4318
|
||||
endpoint: https://tempo:9443
|
||||
tls: *backend-tls
|
||||
timeout: 5s
|
||||
sending_queue:
|
||||
enabled: true
|
||||
@@ -58,7 +71,7 @@ exporters:
|
||||
max_elapsed_time: 60s
|
||||
|
||||
service:
|
||||
extensions: [health_check]
|
||||
extensions: [bearertokenauth]
|
||||
telemetry:
|
||||
logs:
|
||||
level: warn
|
||||
@@ -68,7 +81,7 @@ service:
|
||||
- pull:
|
||||
exporter:
|
||||
prometheus:
|
||||
host: 0.0.0.0
|
||||
host: 127.0.0.1
|
||||
port: 8888
|
||||
pipelines:
|
||||
metrics:
|
||||
|
||||
Reference in New Issue
Block a user