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

[feature/monitoring] Implement /metrics for the operator. #4

Merged
merged 62 commits into from Sep 7, 2023

Conversation

Cellebyte
Copy link
Collaborator

@Cellebyte Cellebyte commented Jan 19, 2023

  • Implement netlink route information.
  • Implement frr route information
  • implement frr bgp information

Some information on exported metrics and how they are exported.

metrics.txt

Copy link
Contributor

Choose a reason for hiding this comment

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

Great work overall!

Most of the issues are cosmetic changes.
I did not list some issues found with linter, as those can be always checked by running the scan.

Other things that should be fixed would be to add proper error wrapping (not sure if I found all the places where that should be done), add comments to the exported structs/functions etc. and remove redundant code that is commented out.

pkg/monitoring/collector.go Outdated Show resolved Hide resolved
pkg/monitoring/frr.go Show resolved Hide resolved
pkg/monitoring/frr.go Outdated Show resolved Hide resolved
pkg/monitoring/frr.go Outdated Show resolved Hide resolved
pkg/monitoring/frr.go Outdated Show resolved Hide resolved
pkg/nl/layer2.go Outdated Show resolved Hide resolved
pkg/nl/list.go Outdated Show resolved Hide resolved
pkg/nl/list.go Outdated Show resolved Hide resolved
pkg/nl/list.go Outdated Show resolved Hide resolved
pkg/nl/route.go Outdated Show resolved Hide resolved
Cellebyte and others added 5 commits August 30, 2023 09:00
Co-authored-by: p-strusiewiczsurmacki-mobica <137421299+p-strusiewiczsurmacki-mobica@users.noreply.github.com>
Co-authored-by: p-strusiewiczsurmacki-mobica <137421299+p-strusiewiczsurmacki-mobica@users.noreply.github.com>
Co-authored-by: p-strusiewiczsurmacki-mobica <137421299+p-strusiewiczsurmacki-mobica@users.noreply.github.com>
@Cellebyte
Copy link
Collaborator Author

Cellebyte commented Sep 4, 2023

The only thing which currently does not work is the end2end route export stuff in the lab which is provided with this Pull Request. For that I would need @chdxD1 to check and fix. But this could also be done later.

@Cellebyte Cellebyte changed the title Feature/monitoring Implement /metrics for the operator. [feature/monitoring] Implement /metrics for the operator. Sep 5, 2023
pkg/frr/cli.go Outdated Show resolved Hide resolved
pkg/frr/cli.go Outdated Show resolved Hide resolved
pkg/frr/utils.go Outdated Show resolved Hide resolved
pkg/frr/utils.go Outdated Show resolved Hide resolved
pkg/monitoring/bpf.go Show resolved Hide resolved
pkg/monitoring/collector.go Outdated Show resolved Hide resolved
pkg/nl/route.go Outdated Show resolved Hide resolved
pkg/frr/utils.go Outdated Show resolved Hide resolved
@Cellebyte Cellebyte merged commit df0c5e4 into main Sep 7, 2023
3 checks passed
@Cellebyte Cellebyte deleted the feature/monitoring branch September 7, 2023 07:47
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.

None yet

3 participants