Slackbot
06/10/2022, 8:26 AMValentin Baert
06/10/2022, 8:26 AMValentin Baert
06/10/2022, 8:26 AMreceivers:
otlp/spanmetrics:
protocols:
grpc:
endpoint: localhost:12345
jaeger:
protocols:
grpc:
endpoint: 0.0.0.0:14250
thrift_http:
endpoint: 0.0.0.0:14268
hostmetrics:
collection_interval: 30s
scrapers:
cpu: {}
load: {}
memory: {}
disk: {}
filesystem: {}
network: {}
otlp/auth:
protocols:
http:
endpoint: 0.0.0.0:4317
auth:
authenticator: oidc
processors:
batch:
send_batch_size: 1000
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
extensions:
health_check: {}
zpages: {}
oidc:
issuer_url: <https://auth.review.mydomain.com/>
audience: <https://api.mydomain.com/>
exporters:
clickhouse:
datasource: tcp://${CLICKHOUSE_HOST}:${CLICKHOUSE_PORT}/?database=${CLICKHOUSE_TRACE_DATABASE}&username=${CLICKHOUSE_USER}&password=${CLICKHOUSE_PASSWORD}
clickhousemetricswrite:
endpoint: tcp://${CLICKHOUSE_HOST}:${CLICKHOUSE_PORT}/?database=${CLICKHOUSE_DATABASE}&username=${CLICKHOUSE_USER}&password=${CLICKHOUSE_PASSWORD}
resource_to_telemetry_conversion:
enabled: true
prometheus:
endpoint: "0.0.0.0:8889"
service:
extensions: [health_check, zpages, oidc]
pipelines:
traces:
receivers: [otlp/auth, jaeger]
processors: [signozspanmetrics/prometheus, batch]
exporters: [clickhouse]
metrics:
receivers: [otlp/auth, hostmetrics]
processors: [batch]
exporters: [clickhousemetricswrite]
metrics/spanmetrics:
receivers: [otlp/spanmetrics]
exporters: [prometheus]
Valentin Baert
06/10/2022, 8:27 AMValentin Baert
06/10/2022, 8:27 AMextensions:
oauth2client:
client_id: ${MYDOMAIN_OTEL_CLIENT_ID}
client_secret: ${MYDOMAIN_OTEL_CLIENT_SECRET}
token_url: ${MYDOMAIN_OTEL_TOKEN_URL}
receivers:
otlp:
protocols:
grpc:
endpoint: localhost:4317
exporters:
otlp/auth:
endpoint: <http://signoz-otel-collector.apm.svc.cluster.local:4317>
auth:
authenticator: oauth2client
service:
extensions:
- oauth2client
pipelines:
traces:
receivers:
- otlp
processors: []
exporters:
- otlp/auth
Valentin Baert
06/10/2022, 8:27 AM[OkHttp <http://localhost:4317/...>] ERROR io.opentelemetry.exporter.internal.grpc.OkHttpGrpcExporter - Failed to export spans. The request could not be executed. Full error message: Failed to connect to localhost/0:0:0:0:0:0:0:1:4317
Do you have any idea why ? Could you point me towards what I am doing wrong ?Prashant Shahi
06/10/2022, 8:33 AMValentin Baert
06/10/2022, 10:04 AMSrikanth Chekuri
06/10/2022, 12:25 PMotlp/auth:
protocols:
http:
endpoint: 0.0.0.0:4317
auth:
authenticator: oidc
@Valentin Baert Why are using the 4317 (which is for gRPC) in http endpoint? When you say agent are you referring to java agent? I couldn't really follow. What is working and what is not working?Valentin Baert
06/10/2022, 1:29 PMValentin Baert
06/10/2022, 1:32 PMexport OTEL_METRICS_EXPORTER=none
export OTEL_RESOURCE_ATTRIBUTES='service.name=myapp'
export OTEL_JAVAAGENT_CONFIGURATION_FILE='/path/to/opentelemetry.yaml'
java \
-javaagent:/path/to/opentelemetry-javaagent.jar \
-Dotel.metrics.exporter=none \
-jar \
myapp.jar
and the following opentelemetry.yaml for the java agent (as explained in the doc at https://opentelemetry.io/docs/collector/configuration/#authentication under the sentence "On the agent side, this is an example (...)" ) :
extensions:
oauth2client:
client_id: xxxxx
client_secret: xxxxxx
token_url: <https://xxxxxxx/oauth/token>
receivers:
otlp:
protocols:
grpc:
endpoint: localhost:4317
exporters:
otlp/auth:
endpoint: remotecollectorxxxxx:4317
auth:
authenticator: oauth2client
service:
extensions:
- oauth2client
pipelines:
traces:
receivers:
- otlp
processors: []
exporters:
- otlp/auth
Valentin Baert
06/10/2022, 1:34 PMSrikanth Chekuri
06/10/2022, 1:46 PMValentin Baert
06/10/2022, 1:47 PMSrikanth Chekuri
06/10/2022, 1:50 PMValentin Baert
06/10/2022, 1:52 PMValentin Baert
06/10/2022, 1:56 PMSrikanth Chekuri
06/10/2022, 1:58 PMValentin Baert
06/10/2022, 2:13 PMValentin Baert
06/10/2022, 2:14 PMValentin Baert
06/10/2022, 2:14 PM