-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Can't run node_exporter docker on MacOs #610
Comments
You should omit |
Running the linux node_exporter binary (which is the one inside our Docker images) on OSX won't give you any interesting metrics. The node_exporter is a low-level exporter tightly coupled to the underlying operating system. In order to use the few collectors we have for darwin/osx you'll need to run the darwin binary. |
@grobie A lot of people use Docker for Mac to test configurations and for training purposes. Do you know why this stopped working on Mac? |
@vegasbrianc I'm not sure what you mean? There have never been many collectors to export system metrics from darwin. Most of the node_exporter collectors have only been implemented for Linux so far, including all the ones exporting metrics from the /proc filesystem, which isn't available on Mac. |
Hi @grobie disregard I used the example from the README and noticed some changes from my current configuration. Everything is working again. Thanks for getting back to me so quickly. |
Actually, this is still getting me. But it appears to be a docker compose issue rather than node-exporter. Running the command from the CLI works find. When running from compose it has all sorts of permission denied errors. |
Could you post a minimal docker-compose.yml that reproduces the issue? Do
you get the same issue if you use the same on a Linux-Docker node?
…On Tue, Oct 10, 2017 at 6:14 AM Brian Christner ***@***.***> wrote:
Actually, this is still getting me. But it appears to be a docker compose
issue rather than node-exporter. Running the command from the CLI works
find. When running from compose it has all sorts of permission denied
errors.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#610 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAICBt7lVjpkZLA2XXRY0Tpm0cSN13tSks5sqwtggaJpZM4OJQcV>
.
|
Hi @matthiasr Here is the stack - https://github.com/vegasbrianc/prometheus I am currently trying to upgrade with the latest node-exporter flags |
@matthiasr @grobie Hi was able to find the issue with this. For Mac and docker-compose, it is required to attach the node-exporter to the host network. I've tried using other networks and it fails it has to be host. However, with Linux machines it doesn't appear to cause issues which network in which it connects. If you are interested I can open a PR with the sample docker-compose which I use for anyone else wanting to use it in a compose configuration. |
I'd rather not add that. We already document the necessary |
Here is the command that worked for me on Docker for Mac:
|
@arun-gupta Thanks this has helped a ton! |
I think there is nothing to do on our side, so closing this. |
@discordianfish Thanks, I somehow missed this. |
Error: No such network: prom |
I think that means you will need some form of |
Env: Mac High Sierra 10.13.4 |
Hello @arun-gupta , Can you help to advise? thanks a lot. |
It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided. |
I am using below command to run a node_export docker container on Mac.
The container can be run but the port number 9100 is not listenning. Is there anything need to be configured on Mac? As I know, Mac doesn't have /proc directory.
The text was updated successfully, but these errors were encountered: