https://signoz.io logo
#reactjs-config
Title
# reactjs-config
a

Ashish

10/07/2022, 7:35 AM
Hi @Palash Gupta Are you available today
p

Palash Gupta

10/07/2022, 8:04 AM
Yes sure can we connect around 2 pm ?
a

Ashish

10/07/2022, 8:05 AM
Ok
p

Palash Gupta

10/07/2022, 8:32 AM
@Ashish please join huddle
@Prashant Shahi @Ankit Nayan available?
@Prashant Shahi @Ashish is not able to connect from AWS-hosted Signoz to local running sample react app though app is throwing connection refused error
cc: @Ankit Nayan
p

Prashant Shahi

10/07/2022, 10:50 AM
@Ashish can you please share your otel-collector config?
a

Ashish

10/10/2022, 9:15 AM
Here is the config @Prashant Shahi - receivers: filelog/dockercontainers: include: [ "/var/lib/docker/containers/*/*.log" ] start_at: end include_file_path: true include_file_name: false operators: - type: json_parser id: parser-docker output: extract_metadata_from_filepath timestamp: parse_from: attributes.time layout: '%Y-%m-%dT%H:%M:%S.%LZ' - 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 id: parse_body from: attributes.log to: body output: time - type: remove id: time field: attributes.time opencensus: endpoint: 0.0.0.0:55678 otlp/spanmetrics: protocols: grpc: endpoint: localhost:12345 otlp: protocols: grpc: endpoint: 0.0.0.0:4317 http: endpoint: 0.0.0.0:4318 cors: allowed_origins: - https://app.3dcerts.tech # URL of your Frontend application - https://admin.3dcerts.tech - http://admin.3dcerts.tech - https://validation.3dcerts.tech - https://app.3dcerts.tech/react - http://172.31.52.68:3000 - http://103.212.147.18:3000 - http://10.8.0.3:3000 - http://172.19.0.1:3000 - http://10.8.0.1:3000 jaeger: protocols: grpc: endpoint: 0.0.0.0:14250 thrift_http: endpoint: 0.0.0.0:14268 # thrift_compact: # endpoint: 0.0.0.0:6831 # thrift_binary: # endpoint: 0.0.0.0:6832 hostmetrics: collection_interval: 60s scrapers: cpu: {} load: {} memory: {} disk: {} filesystem: {} network: {} processors: batch: send_batch_size: 10000 send_batch_max_size: 11000 timeout: 10s signozspanmetrics/prometheus: metrics_exporter: prometheus latency_histogram_buckets: [100us, 1ms, 2ms, 6ms, 10ms, 50ms, 100ms, 250ms, 500ms, 1000ms, 1400ms, 2000ms, 5s, 10s, 20s, 40s, 60s ] dimensions_cache_size: 10000 dimensions: - name: service.namespace default: default - name: deployment.environment default: default # memory_limiter: # # 80% of maximum memory up to 2G # limit_mib: 1500 # # 25% of limit up to 2G # spike_limit_mib: 512 # check_interval: 5s # # # 50% of the maximum memory # limit_percentage: 50 # # 20% of max memory usage spike expected # spike_limit_percentage: 20 # queued_retry: # num_workers: 4 # queue_size: 100 # retry_on_failure: true resourcedetection: # Using OTEL_RESOURCE_ATTRIBUTES envvar, env detector adds custom labels. detectors: [env, system] # include ec2 for AWS, gce for GCP and azure for Azure. timeout: 2s override: false extensions: health_check: endpoint: 0.0.0.0:13133 zpages: endpoint: 0.0.0.0:55679 pprof: endpoint: 0.0.0.0:1777 exporters: clickhousetraces: datasource: tcp://clickhouse:9000/?database=signoz_traces clickhousemetricswrite: endpoint: tcp://clickhouse:9000/?database=signoz_metrics resource_to_telemetry_conversion: enabled: true prometheus: endpoint: 0.0.0.0:8889 # logging: {} clickhouselogsexporter: dsn: tcp://clickhouse:9000/ timeout: 5s sending_queue: queue_size: 100 retry_on_failure: enabled: true initial_interval: 5s max_interval: 30s max_elapsed_time: 300s service: telemetry: metrics: address: 0.0.0.0:8888 extensions: - health_check - zpages - pprof pipelines: traces: receivers: [jaeger, otlp] processors: [signozspanmetrics/prometheus, batch] exporters: [clickhousetraces] metrics: receivers: [otlp] processors: [batch] exporters: [clickhousemetricswrite] metrics/hostmetrics: receivers: [hostmetrics] processors: [resourcedetection, batch] exporters: [clickhousemetricswrite] metrics/spanmetrics: receivers: [otlp/spanmetrics] exporters: [prometheus] logs: receivers: [otlp, filelog/dockercontainers] processors: [batch] exporters: [clickhouselogsexporter] #http: #cors: #allowed_origins: # - https://app.3dcerts.tech # URL of your Frontend application # - https://admin.3dcerts.tech # - https://validation.3dcerts.tech