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

fix Grafana on MacOS #2281

Merged
merged 4 commits into from
Nov 29, 2022
Merged

fix Grafana on MacOS #2281

merged 4 commits into from
Nov 29, 2022

Conversation

LesnyRumcajs
Copy link
Member

@LesnyRumcajs LesnyRumcajs commented Nov 28, 2022

Summary of changes
Changes introduced in this pull request:

  • change Grafana compose to work on both Linux and MacOS,
  • listen on all interfaces by default for metrics endpoint. Security shouldn't be a concern here; it's up to the operator to configure the firewall properly.

Reference issue to close (if applicable)

Closes #2288

Other information and links

The issue stems from the fact that MacOS uses a thin VM for running docker. This doesn't work well with host network, and the ports should be exposed explicitly (which is not possible with host network).

A way out of this is using host.docker.internal... which unfortunately exists only in Docker for MacOS (and probably in Docker for Windows). The way out of this is using a recently (2021) added host-gateway, see more docker/for-linux#264 (comment).

Tested on MacOS Ventura 13.01 and Linux Fedora Workstation 36.

@elmattic
Copy link
Contributor

When this is RFR, I can test it and review it.

@LesnyRumcajs
Copy link
Member Author

LesnyRumcajs commented Nov 29, 2022

@elmattic Feel free to test it on your end, be sure to recompile Forest to get it to listen on all interfaces for the metrics endpoint.

Copy link
Contributor

@elmattic elmattic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works perfectly now!

@LesnyRumcajs
Copy link
Member Author

Works perfectly now!

Thanks for looking into this and reporting it!

@elmattic elmattic merged commit 1492e5b into main Nov 29, 2022
@elmattic elmattic deleted the fix-grafana-macos branch November 29, 2022 13:52
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.

Grafana dashboard doesn't work on MacOS
3 participants