Slackbot
11/03/2022, 7:49 AMShivvinay Kanswal
11/03/2022, 7:50 AMexporters:
clickhouselogsexporter:
dsn: tcp://${CLICKHOUSE_HOST}:${CLICKHOUSE_PORT}/?username=${CLICKHOUSE_USER}&password=${CLICKHOUSE_PASSWORD}
retry_on_failure:
enabled: true
initial_interval: 5s
max_elapsed_time: 300s
max_interval: 30s
sending_queue:
queue_size: 100
timeout: 10s
clickhousemetricswrite:
endpoint: tcp://${CLICKHOUSE_HOST}:${CLICKHOUSE_PORT}/?database=${CLICKHOUSE_DATABASE}&username=${CLICKHOUSE_USER}&password=${CLICKHOUSE_PASSWORD}
resource_to_telemetry_conversion:
enabled: true
clickhousetraces:
datasource: tcp://${CLICKHOUSE_HOST}:${CLICKHOUSE_PORT}/?database=${CLICKHOUSE_TRACE_DATABASE}&username=${CLICKHOUSE_USER}&password=${CLICKHOUSE_PASSWORD}
prometheus:
endpoint: 0.0.0.0:8889
extensions:
health_check:
endpoint: 0.0.0.0:13133
pprof:
endpoint: localhost:1777
zpages:
endpoint: localhost:55679
processors:
batch:
send_batch_size: 1000
timeout: 10s
resourcedetection:
detectors:
- env
- system
timeout: 2s
signozspanmetrics/prometheus:
dimensions:
- default: default
name: service.namespace
- default: default
name: deployment.environment
dimensions_cache_size: 10000
latency_histogram_buckets:
- 100us
- 1ms
- 2ms
- 6ms
- 10ms
- 50ms
- 100ms
- 250ms
- 500ms
- 1000ms
- 1400ms
- 2000ms
- 5s
- 10s
- 20s
- 40s
- 60s
metrics_exporter: prometheus
receivers:
fluentforward:
endpoint: 0.0.0.0:24224
hostmetrics:
collection_interval: 30s
scrapers:
cpu: {}
disk: {}
filesystem: {}
load: {}
memory: {}
network: {}
jaeger:
protocols:
grpc:
endpoint: 0.0.0.0:14250
thrift_http:
endpoint: 0.0.0.0:14268
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
otlp/spanmetrics:
protocols:
grpc:
endpoint: localhost:12345
prometheus:
config:
global:
scrape_interval: 30s
scrape_configs:
- job_name: otel-collector
static_configs:
- targets:
- ${MY_POD_IP}:8888
service:
extensions:
- health_check
- zpages
pipelines:
logs:
exporters:
- clickhouselogsexporter
processors:
- batch
receivers:
- otlp
- fluentforward
metrics:
exporters:
- clickhousemetricswrite
processors:
- batch
receivers:
- otlp
metrics/generic:
exporters:
- clickhousemetricswrite
processors:
- resourcedetection
- batch
receivers:
- hostmetrics
- prometheus
metrics/spanmetrics:
exporters:
- prometheus
receivers:
- otlp/spanmetrics
traces:
exporters:
- clickhousetraces
processors:
- signozspanmetrics/prometheus
- batch
receivers:
- jaeger
- otlp
telemetry:
metrics:
address: 0.0.0.0:8888
Shivvinay Kanswal
11/03/2022, 7:54 AM#[INPUT]
# name cpu
# tag cpu.local
#
# # Read interval (sec) Default: 1
# interval_sec 1
[INPUT]
Name tail
Path <path-to-log-file>/file.log
[OUTPUT]
Name forward
Match *
Host signozoteldns
Port 24224
Shared_Key secret
Self_Hostname HOSTNAME
#[OUTPUT]
# Name opentelemetry
# Match *
# Host signozoteldns
# Port 4318
# Metrics_uri /v1/metrics
# Logs_uri /v1/logs
# Log_response_payload True
# add_label app fluent-bit
# add_label color blue
Shivvinay Kanswal
11/03/2022, 7:55 AM{
"event": "127.0.0.1 - - [03/Nov/2022:07:54:53 +0000] \"POST /v3/get_animation_presets_unauthenticated HTTP/1.0\" 200 458704 \"-\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36\"",
"level": "info",
"timestamp": "2022-11-03T07:54:53.133360Z",
"pid": 3156,
"thread": "ThreadPoolExecutor-1_3",
"logger": "gunicorn.glogging",
"file": "/home/runner/work/backend/backend/.venv/lib/python3.8/site-packages/gunicorn/glogging.py",
"lineno": 344,
"func": "access",
"dd.trace_id": 0,
"dd.span_id": 0,
"dd.env": "stage",
"dd.service": "servicename",
"dd.version": ""
}
Shivvinay Kanswal
11/03/2022, 8:01 AMShivvinay Kanswal
11/03/2022, 8:01 AMPrashant Shahi
11/03/2022, 8:09 AMnitya-signoz
11/03/2022, 8:45 AMnitya-signoz
11/03/2022, 8:48 AMShivvinay Kanswal
11/03/2022, 8:58 AMShivvinay Kanswal
11/03/2022, 9:00 AMnitya-signoz
11/03/2022, 9:05 AMShivvinay Kanswal
11/03/2022, 9:13 AM.Values.otelCollector.ports
to expose the ports:Shivvinay Kanswal
11/03/2022, 9:14 AMports:
fluentforward:
# -- Whether to enable service port for OTLP gRPC
enabled: true
# -- Container port for OTLP gRPC
containerPort: 24224
# -- Service port for OTLP gRPC
servicePort: 24224
# -- Node port for OTLP gRPC
nodePort: ""
# -- Protocol to use for OTLP gRPC
protocol: TCP
Prashant Shahi
11/03/2022, 9:31 AMfluentforward
is included in .Values.otelCollector.config.receivers
In the shared image, it looks like you added it to otelAgent
instead.
https://signoz-community.slack.com/files/U048R5RLN6A/F049ABNSBNX/image.png▾
Shivvinay Kanswal
11/03/2022, 9:40 AMShivvinay Kanswal
11/03/2022, 9:41 AM❯ kubectl exec signoz-otel-collector-6459d64598-668wn -- cat conf/otel-collector-config.yaml
Defaulted container "signoz-otel-collector" out of: signoz-otel-collector, signoz-otel-collector-init (init)
exporters:
clickhouselogsexporter:
dsn: tcp://${CLICKHOUSE_HOST}:${CLICKHOUSE_PORT}/?username=${CLICKHOUSE_USER}&password=${CLICKHOUSE_PASSWORD}
retry_on_failure:
enabled: true
initial_interval: 5s
max_elapsed_time: 300s
max_interval: 30s
sending_queue:
queue_size: 100
timeout: 10s
clickhousemetricswrite:
endpoint: tcp://${CLICKHOUSE_HOST}:${CLICKHOUSE_PORT}/?database=${CLICKHOUSE_DATABASE}&username=${CLICKHOUSE_USER}&password=${CLICKHOUSE_PASSWORD}
resource_to_telemetry_conversion:
enabled: true
clickhousetraces:
datasource: tcp://${CLICKHOUSE_HOST}:${CLICKHOUSE_PORT}/?database=${CLICKHOUSE_TRACE_DATABASE}&username=${CLICKHOUSE_USER}&password=${CLICKHOUSE_PASSWORD}
prometheus:
endpoint: 0.0.0.0:8889
extensions:
health_check:
endpoint: 0.0.0.0:13133
pprof:
endpoint: localhost:1777
zpages:
endpoint: localhost:55679
processors:
batch:
send_batch_size: 1000
timeout: 10s
resourcedetection:
detectors:
- env
- system
timeout: 2s
signozspanmetrics/prometheus:
dimensions:
- default: default
name: service.namespace
- default: default
name: deployment.environment
dimensions_cache_size: 10000
latency_histogram_buckets:
- 100us
- 1ms
- 2ms
- 6ms
- 10ms
- 50ms
- 100ms
- 250ms
- 500ms
- 1000ms
- 1400ms
- 2000ms
- 5s
- 10s
- 20s
- 40s
- 60s
metrics_exporter: prometheus
receivers:
fluentforward:
endpoint: 0.0.0.0:24224
hostmetrics:
collection_interval: 30s
scrapers:
cpu: {}
disk: {}
filesystem: {}
load: {}
memory: {}
network: {}
jaeger:
protocols:
grpc:
endpoint: 0.0.0.0:14250
thrift_http:
endpoint: 0.0.0.0:14268
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
otlp/spanmetrics:
protocols:
grpc:
endpoint: localhost:12345
prometheus:
config:
global:
scrape_interval: 30s
scrape_configs:
- job_name: otel-collector
static_configs:
- targets:
- ${MY_POD_IP}:8888
service:
extensions:
- health_check
- zpages
pipelines:
logs:
exporters:
- clickhouselogsexporter
processors:
- batch
receivers:
- otlp
- fluentforward
metrics:
exporters:
- clickhousemetricswrite
processors:
- batch
receivers:
- otlp
metrics/generic:
exporters:
- clickhousemetricswrite
processors:
- resourcedetection
- batch
receivers:
- hostmetrics
- prometheus
metrics/spanmetrics:
exporters:
- prometheus
receivers:
- otlp/spanmetrics
traces:
exporters:
- clickhousetraces
processors:
- signozspanmetrics/prometheus
- batch
receivers:
- jaeger
- otlp
telemetry:
metrics:
address: 0.0.0.0:8888
nitya-signoz
11/03/2022, 10:12 AMShivvinay Kanswal
11/03/2022, 10:19 AMBunty Manchundiya
11/03/2022, 10:45 AMPrashant Shahi
11/03/2022, 11:03 AMShivvinay Kanswal
11/03/2022, 11:03 AMPrashant Shahi
11/03/2022, 11:04 AMPrashant Shahi
11/03/2022, 11:05 AMPrashant Shahi
11/03/2022, 11:05 AMPrashant Shahi
11/03/2022, 11:06 AMhashfyre
11/03/2022, 12:24 PMPrashant Shahi
11/03/2022, 2:26 PMhashfyre
11/03/2022, 4:20 PMhashfyre
11/03/2022, 4:20 PMPrashant Shahi
11/03/2022, 4:47 PMAnkit Nayan
Shivvinay Kanswal
11/07/2022, 9:27 AMShivvinay Kanswal
11/07/2022, 9:27 AMnitya-signoz
11/07/2022, 9:28 AM