Skip to content

Commit

Permalink
Update adapter_coap
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffMboya committed Jan 23, 2025
1 parent a39e6d6 commit 97bf01c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
12 changes: 11 additions & 1 deletion charts/magistrala/templates/adapter_coap-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,20 @@ spec:
env:
- name: SMQ_JAEGER_URL
value: "http://{{ .Release.Name }}-jaeger-collector:{{ .Values.defaults.jaegerCollectorPort }}/v1/traces"
- name: SMQ_JAEGER_TRACE_RATIO
value: {{ default .Values.defaults.jaegerTraceRatio .Values.adapter_coap.jaegerTraceRatio | quote }}
- name: SMQ_SEND_TELEMETRY
value: {{ default .Values.defaults.sendTelemetry .Values.users.sendTelemetry | quote }}
- name: SMQ_MESSAGE_BROKER_URL
value: nats://{{ .Release.Name }}-nats:{{ .Values.defaults.natsPort }}
- name: SMQ_THINGS_AUTH_GRPC_URL
- name: SMQ_CLIENTS_AUTH_GRPC_URL
value: {{ .Release.Name }}-envoy:{{ .Values.clients.authGrpcPort }}
- name: SMQ_CLIENTS_AUTH_GRPC_TIMEOUT
value: {{ .Values.clients.grpcTimeout | quote }}
- name: SMQ_CHANNELS_GRPC_URL
value: {{ .Release.Name }}-channels:{{ .Values.channels.grpcPort }}
- name: SMQ_CHANNELS_GRPC_TIMEOUT
value: {{ .Values.channels.grpcTimeout | quote }}
- name: SMQ_COAP_ADAPTER_LOG_LEVEL
value: {{ default .Values.defaults.logLevel .Values.adapter_coap.logLevel | quote }}
- name: SMQ_COAP_ADAPTER_HTTP_HOST
Expand Down
25 changes: 23 additions & 2 deletions charts/magistrala/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,22 @@ adapter_coap:
# Options are "Always", "IfNotPresent", or "Never". "IfNotPresent" is generally used to avoid unnecessary pulls.

port: 5683
# The primary port used by the CoAP adapter for communication.
# Default: 5683 (standard CoAP UDP port).

jaegerTraceRatio: 1.0
# Defines the fraction of requests to trace using Jaeger. Distributed tracing monitors requests across services.
# Value range:
# - 1.0: Trace all requests (100% sampling)
# - 0.5: Trace 50% of requests
# - 0.0: Disable tracing (0% sampling)
# Adjust this based on your observability needs and performance considerations.

sendTelemetry: true
# Enables or disables telemetry data reporting. Telemetry collects metrics and events for monitoring.
# If true, the service will send telemetry data to the configured telemetry backend.
# Set to false if telemetry reporting is not required or should be disabled for privacy concerns.

# logLevel: "info"
# The logging level for the adapter_coap service. Common options are "debug", "info", "warn", "error".
# Adjust this based on the verbosity of logs you require.
Expand Down Expand Up @@ -162,6 +178,10 @@ adapter_http:
# affinity: {}
# tolerations: {}

channels:
grpcPort: 7005
grpcTimeout: "1s"

mqtt:
enabled: true
securityContext:
Expand Down Expand Up @@ -336,8 +356,9 @@ clients:
# repository: "supermq/clients"
# tag: "latest"
# pullPolicy: "IfNotPresent"
httpPort: 9000
authGrpcPort: 7000
httpPort: 9006
authGrpcPort: 7006
grpcTimeout: "1s"
authHttpPort: 9001
redisESPort: 6379
redisCachePort: 6379
Expand Down

0 comments on commit 97bf01c

Please sign in to comment.