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

Add new metrics and add documentation for metrics exported by GoBGP #2845

Merged
merged 3 commits into from
Oct 19, 2024

Conversation

SkalaNetworks
Copy link
Contributor

This PR adds:

  • a documentation for the previously undocumented metrics exported through Prometheus by GoBGP
  • new metrics exported to have better feature parity between the GoBGP metrics and this project https://github.com/greenpau/gobgp_exporter

Essentially, https://github.com/greenpau/gobgp_exporter becomes redundant as GoBGP gains pretty much the same metrics.

There are no modification to old metrics beside a single helper sligthly changed because of a typo (will not cause any issue for anybody)

This commit adds new metrics to GoBGP, inspired by https://github.com/greenpau/gobgp_exporter
It also uses Prometheus namespaces for cleaner refactors and the possibility of overriding the metric prefix to accomodate possible conflict with a generic one like "bgp"

Signed-off-by: SkalaNetworks <contact@skala.network>
Signed-off-by: SkalaNetworks <contact@skala.network>
@fujita
Copy link
Member

fujita commented Oct 16, 2024

Add more metrics without breaking the current one, right?
What's your use case?

@SkalaNetworks
Copy link
Contributor Author

SkalaNetworks commented Oct 16, 2024

@fujita no it doesn't change anything to the previous metrics, they will continue to work as expected, prometheus alerts will continue to work as expected, same for the existing Grafana panels.

The use case is monitoring GoBGP through automatic alerting rules (to know when things go wrong, and to assess the health of GoBGP), and display everything on a Grafana panel.

@fujita fujita merged commit 4b5e025 into osrg:master Oct 19, 2024
39 checks passed
@fujita
Copy link
Member

fujita commented Oct 19, 2024

Understood, thanks!

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.

2 participants