This commit is contained in:
2026-11-27 21:55:47 +03:00
parent f6882a77b4
commit b6c71fd96a
67 changed files with 3770 additions and 595 deletions
+38 -21
View File
@@ -2,8 +2,7 @@ receivers:
otlp:
protocols:
http:
endpoint: 0.0.0.0:4318
endpoint: 127.0.0.1:4318
processors:
memory_limiter:
check_interval: 1s
@@ -13,17 +12,16 @@ processors:
timeout: 1s
send_batch_size: 128
send_batch_max_size: 256
exporters:
prometheus:
endpoint: 0.0.0.0:8889
endpoint: 127.0.0.1:8889
resource_to_telemetry_conversion:
enabled: true
enable_open_metrics: true
metric_expiration: 30s
translation_strategy: UnderscoreEscapingWithSuffixes
otlphttp/loki:
endpoint: http://loki:3100/otlp
endpoint: https://loki:13100/otlp
timeout: 2s
sending_queue:
queue_size: 32
@@ -33,8 +31,12 @@ exporters:
initial_interval: 1s
max_interval: 5s
max_elapsed_time: 15s
tls:
ca_file: /run/identity/ca.crt
cert_file: /run/identity/tls.crt
key_file: /run/identity/tls.key
otlphttp/tempo:
endpoint: http://tempo:4318
endpoint: https://tempo:14318
timeout: 2s
sending_queue:
queue_size: 32
@@ -44,26 +46,41 @@ exporters:
initial_interval: 1s
max_interval: 5s
max_elapsed_time: 15s
tls:
ca_file: /run/identity/ca.crt
cert_file: /run/identity/tls.crt
key_file: /run/identity/tls.key
service:
telemetry:
metrics:
readers:
- pull:
exporter:
prometheus:
host: 0.0.0.0
port: 8888
- pull:
exporter:
prometheus:
host: 127.0.0.1
port: 8888
pipelines:
metrics:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [prometheus]
receivers:
- otlp
processors:
- memory_limiter
- batch
exporters:
- prometheus
logs:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [otlphttp/loki]
receivers:
- otlp
processors:
- memory_limiter
- batch
exporters:
- otlphttp/loki
traces:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [otlphttp/tempo]
receivers:
- otlp
processors:
- memory_limiter
- batch
exporters:
- otlphttp/tempo
+14 -9
View File
@@ -1,7 +1,10 @@
auth_enabled: false
server:
http_listen_port: 3100
http_listen_address: 127.0.0.1
grpc_listen_address: 127.0.0.1
common:
instance_addr: 127.0.0.1
path_prefix: /loki
replication_factor: 1
ring:
@@ -13,13 +16,13 @@ common:
rules_directory: /loki/rules
schema_config:
configs:
- from: 2024-01-01
store: tsdb
object_store: filesystem
schema: v13
index:
prefix: index_
period: 24h
- from: 2024-01-01
store: tsdb
object_store: filesystem
schema: v13
index:
prefix: index_
period: 24h
limits_config:
allow_structured_metadata: true
retention_period: 72h
@@ -27,8 +30,10 @@ limits_config:
resource_attributes:
ignore_defaults: true
attributes_config:
- action: index_label
attributes: [service.name, deployment.environment.name]
- action: index_label
attributes:
- service.name
- deployment.environment.name
compactor:
working_directory: /loki/compactor
retention_enabled: true
+19 -7
View File
@@ -2,11 +2,23 @@ global:
scrape_interval: 5s
evaluation_interval: 5s
rule_files:
- /etc/prometheus/alerts.yaml
- /etc/prometheus/alerts.yaml
scrape_configs:
- job_name: messenger
static_configs:
- targets: ['otel-collector:8889']
- job_name: collector
static_configs:
- targets: ['otel-collector:8888']
- job_name: messenger
static_configs:
- targets:
- otel-collector:18889
scheme: https
tls_config:
ca_file: /run/identity/ca.crt
cert_file: /run/identity/tls.crt
key_file: /run/identity/tls.key
- job_name: collector
static_configs:
- targets:
- otel-collector:18888
scheme: https
tls_config:
ca_file: /run/identity/ca.crt
cert_file: /run/identity/tls.crt
key_file: /run/identity/tls.key
+5 -1
View File
@@ -1,12 +1,16 @@
server:
http_listen_port: 3200
http_listen_address: 127.0.0.1
grpc_listen_address: 127.0.0.1
distributor:
receivers:
otlp:
protocols:
http:
endpoint: 0.0.0.0:4318
endpoint: 127.0.0.1:4318
ingester:
lifecycler:
address: 127.0.0.1
trace_idle_period: 10s
max_block_duration: 5m
compactor: