KingPin
12/07/2024, 1:46 AMcollector | 2024-12-06T19:08:32.119Z info MetricsExporter {"kind": "exporter", "data_type": "metrics", "name": "logging", "resource metrics": 1, "metrics": 24, "data points": 6386}
collector | 2024-12-06T19:08:32.136Z info MetricsExporter {"kind": "exporter", "data_type": "metrics", "name": "logging", "resource metrics": 164, "metrics": 495, "data points": 1015}
collector | 2024-12-06T19:08:42.093Z info MetricsExporter {"kind": "exporter", "data_type": "metrics", "name": "logging", "resource metrics": 1, "metrics": 24, "data points": 6386}
collector | 2024-12-06T19:08:52.098Z info MetricsExporter {"kind": "exporter", "data_type": "metrics", "name": "logging", "resource metrics": 1, "metrics": 24, "data points": 6386}
collector | 2024-12-06T19:09:02.103Z info MetricsExporter {"kind": "exporter", "data_type": "metrics", "name": "logging", "resource metrics": 164, "metrics": 495, "data points": 1015}
collector | 2024-12-06T19:09:02.105Z info MetricsExporter {"kind": "exporter", "data_type": "metrics", "name": "logging", "resource metrics": 1, "metrics": 24, "data points": 6386}
collector | 2024-12-06T19:09:12.093Z info MetricsExporter {"kind": "exporter", "data_type": "metrics", "name": "logging", "resource metrics": 1, "metrics": 24, "data points": 6386}
Srikanth Chekuri
12/07/2024, 5:17 PMKingPin
12/08/2024, 5:19 PMreceivers:
hostmetrics:
collection_interval: 30s
root_path: /hostfs
scrapers:
cpu: {}
disk: {}
load: {}
filesystem: {}
memory: {}
network: {}
paging: {}
process:
mute_process_name_error: true
# mute_process_user_error: true
mute_process_exe_error: true
mute_process_io_error: true
processes: {}
filelog/XX:
include: [ "/hostfs/home/XX/run/*/log/terminal.txt" ]
start_at: end
include_file_path: true
filelog/containers:
include: [ "/hostfs/var/lib/docker/containers//.log" ]
start_at: end
include_file_path: true
include_file_name: false
operators:
# Find out which format is used by docker
- type: router
id: get-format
routes:
- output: parser-docker
expr: 'body matches "^\\{"'
# Parse Docker format
- type: json_parser
id: parser-docker
output: extract_metadata_from_filepath
timestamp:
parse_from: attributes.time
layout: '%Y-%m-%dT%H:%M:%S.%LZ'
# Extract metadata from file path
- type: regex_parser
id: extract_metadata_from_filepath
regex: '^.*containers/(?P<container_id>[^_]+)/.*log$'
parse_from: attributes["log.file.path"]
output: parse_body
- type: move
- type: move
id: parse_body
from: attributes.log
to: body
output: add_source
- type: add
id: add_source
field: resource["source"]
value: "docker"
filelog/syslog:
include: [ "/hostfs/var/log/*log" ]
start_at: end
include_file_path: true
include_file_name: false
processors:
batch:
send_batch_size: 1000
timeout: 10s
resourcedetection:
detectors: [env, system]
timeout: 2s
system:
hostname_sources: [os] # alternatively, use [dns,os] for setting FQDN as host.name and os as fallback
extensions:
health_check: {}
zpages: {}
bearertokenauth:
token: "XXXXX"
exporters:
otlphttp:
endpoint: "<https://XXX.YYY.com:443>"
auth:
authenticator: bearertokenauth
otlp:
endpoint: "X.X.X.X:4317"
tls:
insecure: true
insecure_skip_verify: true
auth:
authenticator: bearertokenauth
logging:
# verbosity of the logging export: detailed, normal, basic
verbosity: normal
service:
telemetry:
metrics:
address: 0.0.0.0:8888
extensions: [health_check, zpages, bearertokenauth]
pipelines:
metrics/internal:
receivers: [hostmetrics]
processors: [resourcedetection, batch]
exporters: [ otlphttp, logging]
logs:
receivers: [filelog/syslog, filelog/containers, filelog/XX]
processors: [batch]
exporters: [ otlphttp ]
@Srikanth Chekuri thank you for the info, here is the config and the version is otelcol-contrib version 0.88.0 and I have also tested it with docker signoz/signoz-otel-collector:0.111.14KingPin
12/09/2024, 12:53 AMreceivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
include_metadata: true
auth:
request_params:
- token
authenticator: bearertokenauth
cors:
allowed_origins:
- "https://*"
- "http://*"
max_age: 7200
compression_algorithms: ["", "gzip"]
extensions:
health_check:
endpoint: 0.0.0.0:13133
zpages:
endpoint: 0.0.0.0:55679
pprof:
endpoint: 0.0.0.0:1777
bearertokenauth:
token: "XXXXXX"
exporters:
clickhousetraces:
datasource: <tcp://clickhouse:9000/signoz_traces>
low_cardinal_exception_grouping: ${env:LOW_CARDINAL_EXCEPTION_GROUPING}
clickhousemetricswrite:
endpoint: <tcp://clickhouse:9000/signoz_metrics>
resource_to_telemetry_conversion:
enabled: true
clickhousemetricswrite/prometheus:
endpoint: <tcp://clickhouse:9000/signoz_metrics>
clickhouselogsexporter:
dsn: <tcp://clickhouse:9000/signoz_logs>
timeout: 10s
use_new_schema: true
service:
telemetry:
logs:
encoding: json
metrics:
address: 0.0.0.0:8888
extensions:
- health_check
- zpages
- pprof
- bearertokenauth
pipelines:
traces:
receivers: [jaeger, otlp]
processors: [signozspanmetrics/cumulative, signozspanmetrics/delta, batch]
exporters: [clickhousetraces]
metrics:
receivers: [otlp, httpcheck]
processors: [resourcedetection/ec2, resourcedetection/docker, resourcedetection/env, resourcedetection/system, batch]
exporters: [clickhousemetricswrite]
metrics/generic:
receivers: [hostmetrics]
processors: [resourcedetection/ec2, resourcedetection/docker, resourcedetection/env, resourcedetection/system, batch]
exporters: [clickhousemetricswrite]
metrics/prometheus:
receivers: [prometheus]
processors: [batch]
exporters: [clickhousemetricswrite/prometheus]
metrics/hostmetrics:
receivers: [hostmetrics]
processors: [resourcedetection]
exporters: [clickhousemetricswrite]
logs:
receivers: [otlp, syslog, tcplog/docker]
processors: [batch]
exporters: [clickhouselogsexporter]
Srikanth Chekuri
12/09/2024, 1:57 AMKingPin
12/09/2024, 2:29 AMKingPin
12/09/2024, 2:30 AMSrikanth Chekuri
12/09/2024, 3:19 AMbut sadly there are no entries for this host on the signoz sideHow are you confirming this? What do you expect and what is there?
KingPin
12/09/2024, 3:34 PMSrikanth Chekuri
12/10/2024, 1:50 AMKingPin
12/10/2024, 2:17 AMKingPin
12/10/2024, 2:20 AMSrikanth Chekuri
12/10/2024, 2:28 AMmetrics:
receivers: [otlp, httpcheck]
processors: [resourcedetection/ec2, resourcedetection/docker, resourcedetection/env, resourcedetection/system, batch]
exporters: [clickhousemetricswrite]
Why do you have resource detection for otlp data which already has the resource detection set on test hostKingPin
12/10/2024, 2:38 AMSrikanth Chekuri
12/10/2024, 2:39 AMinclude: [ "/hostfs/var/lib/docker/containers//.log" ]
Srikanth Chekuri
12/10/2024, 2:39 AMKingPin
12/10/2024, 2:40 AMKingPin
12/10/2024, 2:40 AMKingPin
12/10/2024, 2:41 AMKingPin
12/10/2024, 2:42 AMSrikanth Chekuri
12/10/2024, 2:43 AMSrikanth Chekuri
12/10/2024, 2:43 AMKingPin
12/10/2024, 2:44 AMSrikanth Chekuri
12/10/2024, 2:44 AMKingPin
12/10/2024, 2:44 AMKingPin
12/10/2024, 2:44 AMKingPin
12/10/2024, 2:45 AMSrikanth Chekuri
12/10/2024, 2:45 AMKingPin
12/10/2024, 2:45 AMvolumes:
- ./collector-config.yaml:/etc/otel-collector-config.yaml
- /:/hostfs:ro
Srikanth Chekuri
12/10/2024, 2:48 AMKingPin
12/10/2024, 2:49 AMKingPin
12/10/2024, 2:50 AMKingPin
12/10/2024, 2:20 PMSrikanth Chekuri
12/10/2024, 3:03 PMKingPin
12/10/2024, 5:39 PMKingPin
12/10/2024, 5:40 PMKingPin
12/10/2024, 5:40 PMKingPin
12/10/2024, 5:40 PMSrikanth Chekuri
12/10/2024, 5:42 PMKingPin
12/14/2024, 6:43 PM