This PR adds an option to add HTTP basic authentication to the exporter endpoint. This can be useful in case you want to secure somehow the exporter.
It also switches to gin for the HTTP server. It was easier to use the basic auth implementation from gin here.
Checklist
[ ] Categorize the PR by setting a good title and adding one of the labels:
fix, enhancement, documentation, change, breaking, dependency
as they show up in the changelog
Summary
This PR adds an option to add HTTP basic authentication to the exporter endpoint. This can be useful in case you want to secure somehow the exporter.
It also switches to gin for the HTTP server. It was easier to use the basic auth implementation from gin here.
Checklist
fix
,enhancement
,documentation
,change
,breaking
,dependency
as they show up in the changelog