Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exposing internal metrics #145

Merged
merged 7 commits into from
Jun 19, 2023
Merged

Exposing internal metrics #145

merged 7 commits into from
Jun 19, 2023

Conversation

mariomac
Copy link
Contributor

It exposes, as Prometheus metrics, a single metric: the number of flushed traces from the different eBPF traces.

It required moving the Prometheus server to another element (the connection.PrometheusManager), which will expose prometheus metrics from different places, using the same port and path, or different ones, depending on the preferences/configuration from the users.

It is still missing:

  • Configuration options documentation
  • More metrics
  • Exporting internal metrics also as OTEL

@mariomac mariomac requested a review from grcevski as a code owner June 16, 2023 10:05
@codecov-commenter
Copy link

codecov-commenter commented Jun 16, 2023

Codecov Report

Merging #145 (c72a064) into main (e6e4fa8) will increase coverage by 36.73%.
The diff coverage is 89.76%.

@@             Coverage Diff             @@
##             main     #145       +/-   ##
===========================================
+ Coverage   39.56%   76.30%   +36.73%     
===========================================
  Files          32       34        +2     
  Lines        2219     2304       +85     
===========================================
+ Hits          878     1758      +880     
+ Misses       1284      406      -878     
- Partials       57      140       +83     
Flag Coverage Δ
integration-test 76.30% <89.76%> (?)
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/pipe/config.go 28.20% <ø> (-28.21%) ⬇️
pkg/pipe/global/context.go 100.00% <ø> (ø)
pkg/connector/prommgr.go 84.21% <84.21%> (ø)
pkg/pipe/instrumenter.go 87.75% <85.71%> (+5.61%) ⬆️
pkg/ebpf/common/ringbuf.go 79.22% <100.00%> (-1.05%) ⬇️
pkg/ebpf/goruntime/goruntime.go 100.00% <100.00%> (+100.00%) ⬆️
pkg/ebpf/grpc/grpc.go 100.00% <100.00%> (+100.00%) ⬆️
pkg/ebpf/httpfltr/httpfltr.go 82.47% <100.00%> (+61.23%) ⬆️
pkg/ebpf/nethttp/nethttp.go 100.00% <100.00%> (+100.00%) ⬆️
pkg/ebpf/tracer.go 64.15% <100.00%> (+64.15%) ⬆️
... and 3 more

... and 22 files with indirect coverage changes

Copy link
Contributor

@grcevski grcevski left a comment

Choose a reason for hiding this comment

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

LGTM! Nice, scraping the scraper :)

@grcevski
Copy link
Contributor

I'm not sure about the test failures, seems like some sort of setup issue?

@mariomac mariomac merged commit 3ac9189 into grafana:main Jun 19, 2023
@mariomac mariomac deleted the metrics branch June 19, 2023 10:25
mattdurham pushed a commit to mattdurham/beyla that referenced this pull request Jan 22, 2025
* Started infrastructure for internal metrics

* Prometheus internal metrics export. Not yet tested nor documented

* integration tests

* Fix Prometheus instrumentation when Prometheus traces exporter is not set

* flaky test

* fix flaky test again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants