You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Docker Compose to start the container for tests, and a .NET app to send the OpenTelemetry (OTel) data to the collector. However, when I try to see the data in Grafana, it does not appear
I got some logs in Docker
logger=authn.service t=2025-02-27T20:45:01.98711316Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"
I am using Docker Compose to start the container for tests, and a .NET app to send the OpenTelemetry (OTel) data to the collector. However, when I try to see the data in Grafana, it does not appear
I got some logs in Docker
logger=authn.service t=2025-02-27T20:45:01.98711316Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"
And this is my docker compose
services: grafana: container_name: grafana image: grafana/otel-lgtm:latest ports: - "3111:3000" - "4317:4317" - "4318:4318" environment: ENABLE_LOGS_ALL: "true" OTEL_METRIC_EXPORT_INTERVAL: 1000 healthcheck: test: test -e /tmp/ready interval: 5s timeout: 2s retries: 20
And my .net code
`Action configureResource = r => r.AddService(
serviceName: appBuilder.Configuration.GetValue("ServiceName", defaultValue: "otel-test")!,
serviceVersion: typeof(Program).Assembly.GetName().Version?.ToString() ?? "unknown",
serviceInstanceId: Environment.MachineName);
//var serviceName = "AppTest";
var otelUrl = "http://localhost:4317";
appBuilder.Logging.AddOpenTelemetry(options =>
{
var resourceBuilder = ResourceBuilder.CreateDefault();
configureResource(resourceBuilder);
options.SetResourceBuilder(resourceBuilder);
});
appBuilder.Services.AddOpenTelemetry()
.ConfigureResource(configureResource)
.WithTracing(tracing => tracing
.AddAspNetCoreInstrumentation()
.AddHttpClientInstrumentation()
.AddConsoleExporter()
.AddOtlpExporter(x =>
{
x.Endpoint = new Uri(otelUrl);
x.Protocol = OtlpExportProtocol.Grpc;
})
).WithMetrics(metrics => metrics
//.AddRuntimeInstrumentation()
.AddProcessInstrumentation()
.AddHttpClientInstrumentation()
//.AddAWSInstrumentation()
.AddMeter()
//.AddPrometheusExporter()
.AddAspNetCoreInstrumentation()
.AddConsoleExporter()
.AddOtlpExporter(x =>
{
x.Endpoint = new Uri(otelUrl);
x.Protocol = OtlpExportProtocol.Grpc;
})
);`
The text was updated successfully, but these errors were encountered: