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 |