Prometheus + Grafana - RabbitMQ ๊ตฌ์ถ•

2023. 7. 31. 10:41ใ†๊ฐœ๋ฐœ/Monitoring

728x90
๋ฐ˜์‘ํ˜•
๐Ÿ’ก ์ค€๋น„๋ฌผ : ubuntu, rabbitmq 3.8 ์ด์ƒ, Prometheus, Grafana

๋ชจ๋‹ˆํ„ฐ๋ง ๋Œ€์ƒ ์„ค์ •

RabbitMQ Plugin ํ™œ์„ฑํ™”

# rabbitmq_prometheus plugin ์„ ํ™œ์„ฑํ™”์‹œํ‚ค๋ฉฐ exporter ํฌํŠธ๋Š” 15692 ์ด๋‹ค
sudo rabbitmq-plugins list
sudo rabbitmq-plugins enable rabbitmq_prometheus

์„ค์ •

prometheus.yml ์„ค์ • ํŒŒ์ผ ์ˆ˜์ •

scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: "prometheus"
 
    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.
 
    static_configs:
      - targets: ["localhost:9090"]
 
  - job_name: "broker"
    static_configs:
      - targets: ["localhost:15692"]

RabbitMQ ์—ฐ๊ฒฐ ํ™•์ธ

Prometheus ํ™•์ธ

๋Œ€์‹œ๋ณด๋“œ ๊ตฌ์„ฑ

๋Œ€์‹œ๋ณด๋“œ ์ƒ์„ฑ

Panel ์ถ”๊ฐ€

์ œ๋ชฉ๊ณผ Time series ๋ณ€๊ฒฝ

New dashboard ⇒ Broker ๋ช… ๋ณ€๊ฒฝ

Time series ⇒ Stat๋กœ ๋ณ€๊ฒฝ

 

๊ทธ๋ž˜ํ”„ ์ถœ๋ ฅ

์ฟผ๋ฆฌ ์ž…๋ ฅํ›„ Run Query

rabbitmq_queue_messages_ready : ๋Œ€๊ธฐ์ค‘์ธ ๋ฉ”์‹œ์ง€ ์ˆ˜

๋ฉ”์‹œ์ง€ ์ˆ˜๋Ÿ‰ ํ‘œ์‹œ

728x90
๋ฐ˜์‘ํ˜•

'๊ฐœ๋ฐœ > Monitoring' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

Prometheus + Grafana - ์—ฐ๊ฒฐ  (0) 2023.07.31
Prometheus + Grafana - Redis ๊ตฌ์ถ•  (0) 2023.07.31
Prometheus, Grafana - ์ด๋ก   (0) 2023.07.31