Cloud Cost Sense

Google Cloud Monitoring の費用:Metrics、Prometheus、Check の計算

課金対象 metric ingestion、Prometheus sample、uptime check、synthetic monitor、API query から Cloud Monitoring 費用を見積もります。

無料の Google Cloud metric と課金対象 metric を分ける

Metrics Management で metric domain、project、billing account ごとの使用量を確認します。標準 resolution の Google Cloud system metric は通常無料ですが、custom、external、workload、user-defined logs-based metric は ingestion byte で課金される場合があります。Dashboard 数は ingestion volume を決めないため、dashboard の個数で費用を見積もらないでください。

Byte 課金の月間量は active time series、data point 数、value type で変わります。Scalar と distribution の data point には異なる billable byte の前提があります。予算にする前に Google Cloud Observability の公式料金で最新の無料枠と段階 rate を確認します。

Cloud Logging ガイドでログの保存・保持費用を見積もる

Scrape interval を変える前に Prometheus sample を数える

Managed Service for Prometheus は byte ではなく ingested sample 数で課金されます。Active time series × 1 分当たりの sample × 月間分数で sample 数を見積もり、最新の sample-based tier を適用します。Metric 名が少なくても cardinality の高い label は time series を大幅に増やします。

Alert や incident 調査に使う signal を確認してから、不要な collector、label、過剰な scrape を減らします。Metric relabeling と collection filter を意図的に使い、同等 traffic の期間を比較して workload 減少を最適化効果と混同しないようにします。

Check、synthetic monitor、query 経路を加える

Uptime check は execution ごとに課金され、選択した checker region ごとに実行されます。Synthetic monitor には独自の無料枠と rate があり、呼び出す function、logging、storage、network の料金も加わる場合があります。設定数ではなく頻度 × location × 月の日数で計算します。

Google Cloud console 外の Monitoring API read も返された time series 数に基づいて課金される場合があります。Grafana、CLI、scheduled report、custom integration の query を棚卸ししてください。Ingestion と query attribution metric を追跡し、billing threshold を設定して、変更され得る rate と effective date を最新の公式料金で検証します。