letsencrypt / unbound_exporter

A Prometheus exporter for Unbound.
Apache License 2.0
179 stars 80 forks source link

Add Dockerfile, compose.yaml, and an unbound example config #66

Closed mcpherrinm closed 1 year ago

mcpherrinm commented 1 year ago

This adds a Dockerfile for unbound exporter, which we can publish in the future. An example docker compose.yml is included to demonstrate and test using it with unbound, along with a sample configuration file for unbound showing how to set up the remote-control.

The unbound example config file is based on the one inside the mvance/docker image that's used here.

A small integration test runs against the docker-compose setup to smoke-test unbound_exporter.

codecov-commenter commented 1 year ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (cbed007) 5.23% compared to head (7d40576) 5.23%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #66 +/- ## ===================================== Coverage 5.23% 5.23% ===================================== Files 1 1 Lines 191 191 ===================================== Hits 10 10 Misses 181 181 ``` | [Flag](https://app.codecov.io/gh/letsencrypt/unbound_exporter/pull/66/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=letsencrypt) | Coverage Δ | | |---|---|---| | [unbound_exporter_tests](https://app.codecov.io/gh/letsencrypt/unbound_exporter/pull/66/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=letsencrypt) | `5.23% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=letsencrypt#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

jsha commented 1 year ago

Looks good so far 👍🏻

mcpherrinm commented 1 year ago

I was thinking about adding publishing to this PR but I don't think there's any reason to block on that, so I've marked this ready to review.