Skip to content

Commit

Permalink
Wire up metrics from the otel library (#2980)
Browse files Browse the repository at this point in the history
  • Loading branch information
brancz authored Sep 10, 2024
2 parents 4c977fb + 26ad527 commit f3079f2
Show file tree
Hide file tree
Showing 6 changed files with 3,497 additions and 2 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/armon/circbuf"
"github.com/common-nighthawk/go-figure"
"github.com/open-telemetry/opentelemetry-ebpf-profiler/host"
otelmetrics "github.com/open-telemetry/opentelemetry-ebpf-profiler/metrics"
otelreporter "github.com/open-telemetry/opentelemetry-ebpf-profiler/reporter"
"github.com/open-telemetry/opentelemetry-ebpf-profiler/times"
"github.com/open-telemetry/opentelemetry-ebpf-profiler/tracehandler"
Expand Down Expand Up @@ -309,10 +310,12 @@ func mainWithExitCode() flags.ExitCode {
f.Node,
relabelConfigs,
buildInfo.VcsRevision,
reg,
)
if err != nil {
return flags.Failure("Failed to start reporting: %v", err)
}
otelmetrics.SetReporter(parcaReporter)
parcaReporter.Run(mainCtx)
var rep otelreporter.Reporter = parcaReporter

Expand Down
Loading

0 comments on commit f3079f2

Please sign in to comment.