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

Create optional ServiceMonitor for Netbox #116

Merged
merged 2 commits into from
Feb 12, 2023

Conversation

rjhenry
Copy link
Contributor

@rjhenry rjhenry commented Sep 26, 2022

The Prometheus-Operator is a popular choice for collecting metrics, and many other projects (such as External-DNS [1]) have a pre-configured ServiceMonitor resource ready to be enabled; this does the same for Netbox.

The template is very heavily inspired by the External-DNS one.

1: https://github.com/kubernetes-sigs/external-dns/blob/master/charts/external-dns/templates/servicemonitor.yaml

@rjhenry rjhenry marked this pull request as ready for review September 26, 2022 12:23
@rjhenry rjhenry marked this pull request as draft September 26, 2022 12:24
The Prometheus-Operator is a popular choice for collecting metrics, and
many other projects (such as External-DNS [1]) have a pre-configured
ServiceMonitor resource ready to be enabled; this does the same for
Netbox.

The template is very heavily inspired by the External-DNS one.

1: https://github.com/kubernetes-sigs/external-dns/blob/master/charts/external-dns/templates/servicemonitor.yaml
@rjhenry rjhenry marked this pull request as ready for review September 26, 2022 12:31
@rjhenry
Copy link
Contributor Author

rjhenry commented Sep 26, 2022

Tested with local rendering of templates then applying to a given cluster - this is doing the trick for me, so hopefully it'll be helpful for others, too.

@rjhenry
Copy link
Contributor Author

rjhenry commented Sep 26, 2022

D'oh, didn't see #92 which does functionally the same thing. However, this doesn't introduce a breaking change, so might be preferred - feel free to approve/comment/close/other as you see fit, Chris.

@bootc bootc merged commit 7d67770 into netbox-community:develop Feb 12, 2023
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

2 participants