Open Wudadada opened 2 days ago
my otelcol-contrib config:
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
prometheus:
config:
scrape_configs:
- job_name: 'otel-collector'
scrape_interval: 5s
static_configs:
- targets: ['0.0.0.0:19100']
processors:
batch:
timeout: 5s
send_batch_size: 100000
transform:
log_statements:
- context: log
statements:
- set(severity_text, "TRACE") where severity_number == 1
- set(severity_text, "DEBUG") where severity_number == 5
- set(severity_text, "INFO") where severity_number == 9
- set(severity_text, "WARN") where severity_number == 13
- set(severity_text, "ERROR") where severity_number == 17
- set(severity_text, "FATAL") where severity_number == 21
exporters:
clickhouse:
endpoint: tcp://10.105.212.248:9000?dial_timeout=10s
create_schema: true
database: otel
async_insert: true
ttl: 72h
compress: lz4
timeout: 5s
retry_on_failure:
enabled: true
initial_interval: 5s
max_interval: 30s
max_elapsed_time: 300s
username: "default"
password: "123"
cluster_name: cluster_3S_1R
table_engine:
name: "ReplicatedMergeTree"
logs_table_name: otel_logs
traces_table_name: otel_traces
metrics_tables:
gauge:
name: "otel_metrics_gauge"
sum:
name: "otel_metrics_sum"
summary:
name: "otel_metrics_summary"
histogram:
name: "otel_metrics_histogram"
exponential_histogram:
name: "otel_metrics_exp_histogram"
debug:
verbosity: detailed
extensions:
opamp:
server:
ws:
endpoint: ws://127.0.0.1:9321/v1/opamp
tls:
insecure: true
instance_uid: 01BX5ZZKBKACTAV9WEVGEMMVRZ
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [clickhouse]
logs:
receivers: [otlp]
processors: [batch, transform]
exporters: [clickhouse]
metrics:
receivers: [otlp, prometheus]
processors: [batch]
exporters: [clickhouse]
extensions: [opamp]
telemetry:
logs:
level: "debug"
What happened: My supervisor could not connect to the server
env: CentOS 8 opentelemetry-collector-contrib version: v0.112.0 opamp version: build from commit #307
my supervisor config
supervisor log: