Code Monkey home page Code Monkey logo

Comments (7)

nishinoshake avatar nishinoshake commented on August 30, 2024

CloudWatchで発生する料金

https://aws.amazon.com/jp/cloudwatch/pricing/

メトリクス

カスタムメトリクスの数。
EC2の詳細モニタリングにもかかる。

Tiers 料金
10,000まで $0.30
次の240,000 $0.10
次の750,000 $0.05
1,000,000超 $0.02

API

メトリクス数 or リクエスト数。
GetMetricWidgetImage以外は単価が同じなのでまとめたい。

項目 料金
GetMetricData, GetInsightRuleReport $0.01/1,000メトリクス
GetMetricWidgetImage $0.02/1,000メトリクス
GetMetricStatistics、ListMetrics, ... $0.01/1,000件

Metric Streams

項目 料金
Metric Streams $0.003/1,000件

存在を知らなかった。2021年3月に発表されたみたい。
CloudWatch Metric Streams – Send AWS Metrics to Partners and to Your Apps in Real Time

DatadogやNew Relicなどで、従来はポーリングでデータを取得してたところを、Kinesis Data Firehose経由で配信することで遅延を短くできるとかそんな感じか。ここまで計算対象にしてしまうと、入力項目が増えすぎるので対象外の候補。

ダッシュボード

シンプルでよい。

項目 料金
ダッシュボード $3/個

アラーム

Compositeとはいったい、、あとで調べる。

項目 料金
Standard Resolution (60s) $0.1/個
High Resolution (10s) $0.3/個
Composite $0.5/個

ログ

項目 料金
Collect (Data Ingestion) $0.76/GB
Store (Archival) $0.033/GB
Analyze (Logs Insights queries) $0.0076/GB

イベント

項目 料金
Custom Events $1/100万件
Cross-account Events $1/100万件

その他

Contributor Insights/Synthetics/Evidently/RUM あたりは追いきれないので、最初から対象外の想定で進める。もし使ってる人が多かったら、誰かがIssuesをあげてくれるでしょう。

from aws-rough.

nishinoshake avatar nishinoshake commented on August 30, 2024

EC2のモニタリング

基本モニタリング

5 分間隔で取得される。料金は発生しない。

詳細モニタリング

1分間隔で取得される。メトリクスごとに料金が発生する。

from aws-rough.

nishinoshake avatar nishinoshake commented on August 30, 2024

GetMetricWidgetImageとはいったい

グラフのスナップショットを返すやつ。
Base64エンコードされた画像が返ってくる。
アラートが出たときにSlackにグラフを表示する、とかの用途で便利そう。

このAPIだけ料金が違ったので、入力項目を減らすために対象外にしたいところではあるが、僕の一番好きなAWSのAPIに挙げてる人がいて、実際に便利そうなので対象にする。

GetMetricWidgetImage

from aws-rough.

nishinoshake avatar nishinoshake commented on August 30, 2024

Composite alarmとはいったい

Composite alarms are alarms that determine their alarm state by watching the alarm states of other alarms.

CPU使用率とメモリ使用率のアラームが鳴ったら、複合アラームを鳴らす、みたいに組み合わせて使う。アラームのノイズを減らすのに便利。便利ではあるが、大量に使うことはなさそうなので対象外にしよう。入力項目が多くなりすぎるので。

Creating a composite alarm

from aws-rough.

nishinoshake avatar nishinoshake commented on August 30, 2024

取捨選択

対象

  • メトリクス数
  • GetMetricData
  • GetMetricWidgetImage
  • その他のAPI
  • ダッシュボード数
  • アラーム(標準)
  • アラーム(高解像度)
  • ログ(GB)
  • カスタムイベント数

対象外

  • Metric Streams
  • Compisite Alarm
  • ログのアーカイブと分析(Insights)
  • Vended Logs
  • Contributor Insights
  • Synthetics
  • Evidently
  • RUM

試しに入れてみたけどこの量。
かなり削ったつもりでも多い。

cw

from aws-rough.

nishinoshake avatar nishinoshake commented on August 30, 2024

カスタムイベント

$1.00 per million events

なので対象外にしよう。

from aws-rough.

nishinoshake avatar nishinoshake commented on August 30, 2024

一応実装できたものの、入力項目が多くてしんどい。

from aws-rough.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.