Configure and Run Prometheus on windows

1,909 views
Skip to first unread message

parth....@parlamind.com

unread,
Aug 20, 2018, 8:10:01 AM8/20/18
to Prometheus Users
Hello all,

I am new to Prometheus. I want to install and configure Prometheus locally on my desktop. 

But, I am unable to navigate any proper documentation or video tutorial to proceed with the installation and configuration. 

Any assistance in this matter wiil be highly appreciable. 

Thanks!

Best regards,
Parth

von Neudeck, Nicolai

unread,
Aug 20, 2018, 9:40:26 AM8/20/18
to Prometheus Users
Hi Parth!

Installation and configuration are explained here:
https://prometheus.io/docs/prometheus/latest/installation/
https://prometheus.io/docs/prometheus/latest/configuration/configuration/
Installing Prometheus on a server should not be different from installing it locally on a desktop.
Where exactly are you stuck?

Have a nice day!

Nicolai von Neudeck


-----Ursprüngliche Nachricht-----
Von: <promethe...@googlegroups.com> im Auftrag von "parth....@parlamind.com" <parth....@parlamind.com>
Datum: Montag, 20. August 2018 um 14:10
An: Prometheus Users <promethe...@googlegroups.com>
Betreff: [prometheus-users] Configure and Run Prometheus on windows
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
prometheus-use...@googlegroups.com.
To post to this group, send email to
promethe...@googlegroups.com <mailto:promethe...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/99cf11a4-b91d-4f9b-8b97-879f6de88108%40googlegroups.com <https://groups.google.com/d/msgid/prometheus-users/99cf11a4-b91d-4f9b-8b97-879f6de88108%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.


parth....@parlamind.com

unread,
Aug 20, 2018, 9:51:16 AM8/20/18
to Prometheus Users
Hi Nicolai,

I have tried both the mentioned link to install and configure prometheus but I am unable to to run it completly. 

For eg: once I download the pre compiled libraries, what is the next step I have to follow in order to proceed with using prometheus?

FYI, I wanted to use Grafana and prometheus together, so please guide in that direction. 

Thanks!!

Regards,

Parth

Nicolai von Neudeck

unread,
Aug 20, 2018, 10:18:42 AM8/20/18
to Prometheus Users
Hi Parth!

To run the Prometheus server you need to start the prometheus.exe that you find in the tar.gz.
Tar.gz is a compressed archive format (similar to zip), you will need some tool to open it, e.g. 7zip (https://www.7-zip.org/). This is not mentioned in the docs because these formats are very common and also supported by default in MacOS, Linux and *BSD operating systems.
Run the prometheus.exe in a shell so that you see possible errors and warnings. So that if it does not start or crash, you get an idea why.

You mentioned compiled libraries which is a bit confusing to me, as the libraries are usually loaded when you program your own applications and you want to instrument them with Prometheus to make them export their own metrics.
This should not be different when developing under Windows at all as it usually depends on the programming language and not on the OS used.
Are you actually trying to do this or is this just a misunderstanding?

For Grafana, look here
https://grafana.com/grafana/download?platform=windows

Please bear in mind that I do not have a Windows machine and all my windows specific advice has not been tried by myself. So if something does not make sense, please say so.

Don’t give up, Prometheus is a quite nice metric system.
It is just using a lot of concepts from a non Windows environment, so it might feel a bit foreign first if you come from a Windows only world.

I hope this helps you a bit further. Don’t hesitate to ask follow up questions.

Nicolai

Parth Bhagat

unread,
Aug 20, 2018, 11:17:56 AM8/20/18
to Nicolai von Neudeck, Prometheus Users
Hi Nicolai,

Thanks for the detailed explanation. 

As per your instruction, I am trying to run the prometheus.exe file directly, it is getting crashed, any suggestions on what to do in this situation?

And regarding the compiled library it was my misunderstanding, sorry for the inconvenience.

Thanks!

Regards,
Parth  

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/d43c7c4f-4a8e-4141-8d08-c62e2f9aacb3%40googlegroups.com.

Nicolai von Neudeck

unread,
Aug 20, 2018, 11:26:32 AM8/20/18
to Prometheus Users
This is the same in all operating systems.

Run Prometheus from a shell and look what error it gives you when it crashes.
Usually the errors are quite informative and tell you what is wrong.

You can get a shell by pressing Win+R and enter "Powershell". Alternatively you can also press Win+R and enter "CMD"
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.

Parth Bhagat

unread,
Aug 21, 2018, 3:41:10 AM8/21/18
to Nicolai von Neudeck, Prometheus Users
Hi Nicolai,

Good morning.

Thanks for the information. Finally, I was able to run the prometheus instance on the localhost:9090. 

Will get back to you in future for further guidance, if required.

Regards,
Parth

To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/737e29a1-7762-4197-aa73-8ef877a25fe2%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages