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: implement health check and proto metrics #16

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

ihatemodels
Copy link
Member

@ihatemodels ihatemodels commented Apr 1, 2024

FEATURE: implement health check and proto metrics

Description

This PR introduces the concept of health checking the core/system/status OPNsense api, before trying to scrape any metrics. The status is reported in the opnsense_up metric which seems to be the convention naming in the Prometheus world for this kind of checks.

Bonus:

  • UDP and ICMP protocol metrics

Fixes:

  • Readme and docker cosmetics

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Checklist:

Please delete options that are not relevant.

  • I have updated the docs/metrics.md file, when I introduced new metrics
  • I have made corresponding changes to the documentation
  • New and existing unit tests pass locally with my changes

@ihatemodels ihatemodels self-assigned this Apr 1, 2024
@ihatemodels ihatemodels added enhancement New feature or request good first issue Good for newcomers labels Apr 1, 2024
@ihatemodels ihatemodels merged commit 20e6b16 into main Apr 1, 2024
4 checks passed
@ihatemodels ihatemodels deleted the feature/health-check branch April 1, 2024 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant