Skip to content

A short demonstration about how to use custom metrics in Prometheus and monitor them using Grafana

Notifications You must be signed in to change notification settings

Jigar3/Prometheus-Grafana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prometheus Monitoring Server With Grafana Dashboard

Prometheus is metrics-based monitoring & alerting stack made for dynamic cloud environments.

Grafana is open-source visualization and analytics software. It allows you to query, visualize, alert on, and explore your metrics no matter where they are stored.

You need to install the below-mentioned tools to be able to run this program.

  1. Grafana
  2. Prometheus
  3. Vegeta

To install dependencies, do

go mod tidy

To run the server, do

go run main.go	# start the API server
prometheus --config.file=./prometheus.yml	# start the prometheus server
grafana-server	# start the grafana server

# To create artificial traffic
echo "GET http://localhost:9000/api/v2" | vegeta attack -duration=600s | tee results.bin | vegeta report


More information can be accessed via a blog written for the same. https://medium.com/@chavada.jigar.3/configure-a-prometheus-monitoring-server-with-a-grafana-dashboard-59faa4a42ef6

About

A short demonstration about how to use custom metrics in Prometheus and monitor them using Grafana

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published