0% found this document useful (0 votes)
151 views

(Prometheus & Grafana) Use and Create Own Performance Dashboard

Prometheus is an open source monitoring tool that collects metrics from configured endpoints using a pull-based model. It stores metrics in a multidimensional data model. Grafana is a visualization tool that queries metrics stored in Prometheus and other sources to create dynamic dashboards with visualizations. It allows monitoring of real-time data collected by Prometheus. To use them, Prometheus is installed and configured to scrape endpoints, then Grafana is installed. A Prometheus data source is configured in Grafana to connect the tools and build dashboards.

Uploaded by

PRATEEK
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
151 views

(Prometheus & Grafana) Use and Create Own Performance Dashboard

Prometheus is an open source monitoring tool that collects metrics from configured endpoints using a pull-based model. It stores metrics in a multidimensional data model. Grafana is a visualization tool that queries metrics stored in Prometheus and other sources to create dynamic dashboards with visualizations. It allows monitoring of real-time data collected by Prometheus. To use them, Prometheus is installed and configured to scrape endpoints, then Grafana is installed. A Prometheus data source is configured in Grafana to connect the tools and build dashboards.

Uploaded by

PRATEEK
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

(Prometheus & Grafana)

For understanding I used this youtube link-


https://youtu.be/9DqOMZrc4PA
➢ This is a monitoring tool. Prometheus is collection agent & Grafana is
visualisation agent.
➢ They initiate a dashboard where we see performance of software through
different metrics.
(What is Prometheus)
➢ Prometheus is an open source tool that is primarily used for metrics
monitoring and alerting. It was developed in 2012 to fulfil soundcloud’s
need of having a multidimensional data model, scaling and simplicity in
their monitoring capabilities. It makes use of PromQL, a very powerful
querying language. Prometheus is a pull based metrics monitoring
system which needs the location of specific endpoints.
(Prometheus features)
➢ [Multidimensional Data model]- It uses enough complex model
for storing data.It stores data efficiently. We can pull data for
visualisation.
➢ [Prom QL]- It uses the query language itself promQL . If you
know about data, you can start querying data through promQL.
➢ [Service Discovery]- If you are not identifying any service. It
helps to search and expose inpoint and collect data.
➢ [Time series collection via pull model]- It collects time series
collection with the help of pull model.
➢ [No reliance on distributed storage]- It can not store data on
distributed storage.
(Architecture)
(What is Grafana)
➢ Grafana is an Open source monitoring solution that allows us to monitor real
time data collected using collection agents like Prometheus using beautiful
visualisation that give us in depth insights.
(Grafana features)
➢ [Visualise]- Visualise querying.
➢ [Dynamic Dashboards]- It shows a real time dashboard, visitor location and all types
of changes.
➢ [Explore metrics & logs]- We can explore metrics and logs. If we are collecting
metrics the visualise metrics or collecting logs then visualise logs also. But we can
use different types of tools. Like Prometheus for metrics same for logs any other.
➢ [Allerting]
➢ [Mixed Data sources]- It collects different types of sources through data.
Installation of Prometheus
I am using this link to complete this task- https://jhooq.com/prometheous-grafan-setup/
Goto Download Page of Prometheus and select the prometheus-x.xx.x.linux-amd64.tar.gz
file for download.
Extract the download binary file.
Go into the extracted directory
Start the prometheus server with the command ./prometheus

The Prometheus server should start on port 9090


access the Prometheus graph UI by visint http://localhost:9090/graph

(Grafana Installation)
1. Update the package info -

#sudo apt-get install -y apt-transport-https


#sudo apt-get install -y software-properties-common wget
#wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
echo "deb https://packages.grafana.com/enterprise/deb stable main" | sudo tee -a
/etc/apt/sources.list.d/grafana.list

bash
3. Update repository and Install Grafana

sudo apt-get update


sudo apt-get install grafana-enterprise

bash

4. Start the Grafana Server -

sudo systemctl daemon-reload


sudo systemctl start grafana-server
sudo systemctl status grafana-server

5. Configure Grafana to run at boot time-

sudo systemctl enable grafana-server.service

(Login)- Username- admin


Password- admin
(create a Prometheus Datasource inside Grafana Dashboard )
Go to console.cloud.google.com

Create a credential
Create credential and then create api and edit and select restrict to googlesheet
Then Copy api and go to grafana dashboard and paste it will view then create google
sheet and

Copy and paste spread sheet ID

You might also like