Not able to send correct data to metrices in aws cloudwatch in web api signalR .net core application #3854
Unanswered
rajumakade
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Please help with this issue, more details are as follows
The otel collector configuration is
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
processors:
batch:
timeout: 30s
send_batch_size: 10000
exporters:
logging:
loglevel: info
awsemf:
log_group_name: "log_group_name"
log_stream_name: "TestEvenService_23"
region: "us-west-2"
#endpoint: "logs.us-west-2.amazonaws.com"
namespace: "TestEvenService"
output_destination: "cloudwatch"
awscloudwatchlogs:
log_group_name: "log_group_name"
log_stream_name: "TestEvenService_23"
region: "us-west-2"
#endpoint: "logs.us-west-2.amazonaws.com"
sending_queue:
queue_size: 50
retry_on_failure:
enabled: false
initial_interval: 10ms
file:
path: /etc/output/logs.json
service:
pipelines:
metrics:
receivers:
exporters:
processors:
logs:
receivers:
exporters:
in . net web api project
Startup class
in signalR hub class
Method- OnConnectedAsync
System.Diagnostics.Metrics.Counter.Add(1)
Request you to please help us with this as we are able to send correct data to metrices in aws cloudwatch in web api .net core project.
By default, otel sending data after every 1 min which is maintained until next counter add in cloudwatch logs
But in signal R otel sending data after every 1 min which is resetting to zero in cloudwatch logs
Beta Was this translation helpful? Give feedback.
All reactions