Simple steps setting up Prometheus

Madhavi Kulkarni
2 min readApr 6, 2020

--

Hi Everyone,

Lets understand the Prometheus and set it up and start working on it further.

Introduction

Prometheus is an open-source systems monitoring and alerting toolkit originally built at SoundCloud. Since its inception in 2012, many companies and organizations have adopted Prometheus, and the project has a very active developer and user community. It is now a standalone open source project and maintained independently of any company. To emphasize this, and to clarify the project’s governance structure, Prometheus joined the Cloud Native Computing Foundation in 2016 as the second hosted project, after Kubernetes.

Prometheus is an Open Source monitoring and alerting toolkit, but I would like to point out that this is not like ordinary monitoring and alerting toolkits that you might be familiar with. Instead of using protocols such as SMNP or some sort of agent service, Prometheus pulls (scrape) metrics from a client (target) over http and places the data into its time series database that you can query using its own DSL.

Steps to setup Prometheus:

  1. Clone Prometheus repository from Git

git clone https://github.com/prometheus/prometheus.git

2. Now enter the below command to make the server ready to receive requests from the server.

docker run -p 9090:9090 prom/prometheus

Now server is ready to receive Web requests.

Now open the URL http://localhost:9090 or replace Ip address with localhost in the browser if you are running the above application on Vm.

Classic UI
Experimental react UI

You can use the below document as a reference:

Hope you are able to setup… Thank you.. Happy learning.

--

--