Ultimate Prometheus - vidyasekaran/current_learning GitHub Wiki
Ultimate Prometheus - Udemy Additonal Resources - https://prometheus.io/docs/prometheus/latest/querying/examples/
Starting Prometheus D:\softwares\prometheus-2.22.1.windows-amd64>prometheus.exe --config.file=prometheus.yml
Graph (menu)
-----
select : prometheus_http_requests_total and click on execute shows all metrics related to different handlers Select Graph also select : prometheus_http_requests_total[5m] and execute to see for 5 mins
up shows instances that are up
Type of Metrics
**Counter - **
Used to see total number of request a handler received Total number of Errors
Gauage
Shows value going up and down
**Example: **
Usage of CPU, Memory, hard disk Number of elements in a queue
Histograms
Used to estimate quantiles Mainly used with request latencies
Summary
More accurate quantile Calculate more quantiles on client side slows your app but lighter for prometheus
Go client Integration
Alerts Menu show alerts
Status: performance related details
Status -> Command Line Flags (commands we can run prometheus with)
Status -> Rules
Status -> Targets show all targets that we are scrapping (We only have prometheus here at the moment)
http://localhost:9090/metrics (Clicking on this shows all the metrics prometics can scrap)
Service Discovery
useful when we use kubenetes..