Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upMake it run on MS Windows. #505
Comments
haroonabbasi
changed the title
How i can run it on windows environment.
How i can run it on windows environment. [Question]
Feb 5, 2015
This comment has been minimized.
This comment has been minimized.
|
See #503 - in short, we haven't anticipated the different ways an architecture manifests in the Makefile vs. how the Go download addresses look like. In different news, never has ever tried Prometheus on Windows. You'll probably run into other issues, too. |
beorn7
added
the
duplicate
label
Feb 5, 2015
This comment has been minimized.
This comment has been minimized.
|
Just one more Unix-specific thing I'm aware of that won't work on Windows at the moment: if you're using service discovery to discovery your targets (vs. statically configuring them), we currently hard-code |
beorn7
changed the title
How i can run it on windows environment. [Question]
Make it run on MS Windows.
Feb 5, 2015
beorn7
added
feature-request
and removed
duplicate
labels
Feb 5, 2015
This comment has been minimized.
This comment has been minimized.
|
Let's use this issue as a catch-all for things that need to be done for a Windows port. (We are completely dependent on external contributors here, though. I don't think any Windows machines exist at SoundCloud...) |
This comment has been minimized.
This comment has been minimized.
|
@haroonabbasi Given that #503 was fixed now, it would be interesting to hear whether that also fixes the Go download step for you on Windows, and whether you encouter any more errors further down the line. |
This comment has been minimized.
This comment has been minimized.
etishor
commented
May 14, 2015
|
|
This comment has been minimized.
This comment has been minimized.
|
@etishor please help us test it :) |
This comment has been minimized.
This comment has been minimized.
etishor
commented
May 14, 2015
|
Working on it :) cloned and trying to build on windows. I'm familiar with windows & unix dev environments, but i'm not familiar with go. Also "make" on windows... As a side note, i'm looking for a good place to store data from my Metrics project and I hope prometheus can be that place. |
This comment has been minimized.
This comment has been minimized.
|
As an aside, if you have a working Python environment on Windows if you could verify the fix in prometheus/client_python#28 that'd be great. |
This comment has been minimized.
This comment has been minimized.
|
One thing that would make cross-platform easier, is if you got rid of the Makefile, as that would get rid of a lot of unneeded dependencies. You could keep it for internal usage of course, but It would be better for everyone if you cold simply install with:
For commit db4df06, I tried to do some experiments with building prometheus on Windows:
This is the same result as:
I can set the hostname, and solve this buy editng Makefile.INCLUDE to call "hostname" without any parameters. However, ther are some aditional problems for me at lest, trying to use make:
I don't blame you for this, obviously if make was installed correctly, this should not have happened... Anyway, I tried building without a Makefile, to see how much needed doing to get that working.
For line 22, I presume you really meant to say "windowsLock"', so I change the code a bit. So as a next step, I wrote some go:generate code using https://github.com/jteeuwen/go-bindata instead of your shell scrip. Please see: |
This comment has been minimized.
This comment has been minimized.
|
Anyone knows about the status of this – or has a system to test it? @juliusv |
This comment has been minimized.
This comment has been minimized.
|
I do have a Windows for games lying around, but haven't tested it yet. I can give it a try sometime... |
This comment has been minimized.
This comment has been minimized.
|
Per @matthiasr on https://groups.google.com/forum/#!topic/prometheus-developers/ssKrXbSFlkE Prometheus works on Windows! |
brian-brazil
closed this
Sep 27, 2015
simonpasquier
pushed a commit
to simonpasquier/prometheus
that referenced
this issue
Oct 12, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
haroonabbasi commentedFeb 5, 2015
i tried to make a build but i got error. image attached.
