IPアドレス管理ツールメモ
「Prometheus」を触ってみる
アーキテクチャ
https://prometheus.io/docs/introduction/overview/#architecture
ハードウェア要件
- CPU
情報が見つからず。。 Memory
参考になりそうな情報
How much RAM does Prometheus 2.x need for cardinality and ingestion? – Robust Perception | Prometheus Monitoring Experts
後は動かしてみて、見積もる感じになるのかなぁ容量
needed_disk_space = retention_time_seconds * ingested_samples_per_second * bytes_per_sample
retention_time_seconds:保持期間(秒)
ingested_samples_per_second:1秒あたりに取得するサンプル数
bytes_per_sample: サンプルあたりのバイト数(平均1-2byte)
チュートリアルをやってみる
Getting Started with Prometheus | Prometheus
バイナリをここからダウンロードして、解凍
# wget -O - 'https://github.com/prometheus/prometheus/releases/download/v2.35.0/prometheus-2.35.0.linux-amd64.tar.gz' | tar zxvf -
コンフィグファイルを用意
global: scrape_interval: 15s scrape_configs: - job_name: prometheus static_configs: - targets: ["localhost:9090"]
Prometheusを起動する
# cd prometheus-2.35.0.linux-amd64/ # ./prometheus --config.file=prometheus.yml
PrometheusのWebUIにブラウザを開いてアクセスする。
http://<ホストのIP アドレス>:9090/
以下のような画面が表示される。
本日はここまで~