Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions k8s/signoz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,41 @@ otelAgent:
endpoint: http://apm.elastic-system.svc:8200
tls:
insecure: true
processors:
filter/drop_unused_metrics:
error_mode: ignore
metrics:
metric:
- 'name == "http.client.request.duration"'
- 'name == "http.client.request.time_in_queue"'
- 'name == "http.client.connection.duration"'
- 'name == "http.client.open_connections"'
- 'name == "http.client.active_requests"'
- 'name == "dns.lookup.duration"'
- 'name == "kestrel.connection.duration"'
- 'name == "aspnetcore.authentication.authenticate.duration"'
- 'name == "aspnetcore.routing.match_attempts"'
- 'name == "dotnet.exceptions"'
- 'name == "dotnet.gc.collections"'
- 'name == "dotnet.gc.last_collection.heap.size"'
- 'name == "dotnet.gc.last_collection.heap.fragmentation.size"'
- 'name == "dotnet.process.cpu.time"'
- 'name == "foundatio.lock.wait.time"'
- 'name == "ex.posts.size"'
- 'name == "ex.events.parse.jsoneventparserplugin"'
- 'name == "ex.events.field.count"'
- 'name == "ex.eventpipeline.markascriticalaction"'
filter/drop_cache_spans:
error_mode: ignore
traces:
span:
- 'attributes["db.system"] == "redis" and status.code != STATUS_CODE_ERROR and (resource.attributes["service.name"] == "exceptionless-web" or resource.attributes["service.name"] == "job-event-posts")'
Comment thread
ejsmith marked this conversation as resolved.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore the prefixed event-post service matcher

Fresh evidence after the prior thread is that fb99bd9 reverted 12111d8's correction in the reviewed target tree. The production job loads Apm.ServiceName: exceptionless from src/Exceptionless.Job/appsettings.yml, while Program.cs passes job-event-posts to ApmConfig, whose concatenation emits service.name=exceptionless-job-event-posts; therefore successful Redis spans from this high-volume worker never match this predicate and continue to both exporters. Restore the prefixed matcher.

Useful? React with 👍 / 👎.

- 'name == "Message: EntityChanged"'
service:
pipelines:
traces:
processors: [filter/drop_cache_spans, batch]
exporters: [otlp, otlp/elastic]
metrics:
processors: [filter/drop_unused_metrics, batch]
Comment thread
ejsmith marked this conversation as resolved.
exporters: [otlp, otlp/elastic]
6 changes: 6 additions & 0 deletions src/Exceptionless.Web/ApmExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ public static IHostBuilder AddApm(this IHostBuilder builder, ApmConfig config)
b.AddMeter("System.Runtime");
b.AddRuntimeInstrumentation();
b.AddProcessInstrumentation();
b.AddView(
"http.server.request.duration",
new ExplicitBucketHistogramConfiguration
{
Boundaries = [0.005, 0.025, 0.1, 0.5, 1, 5]
});

if (config.Console)
b.AddConsoleExporter((_, metricReaderOptions) =>
Expand Down
Loading