LoginSignup
1
0

はじめに

DataDogのterafformを書くのに躓いたのでまとめます

問題

以下のようなSLOを書きました

metric.tf
resource "datadog_logs_metric" "sample" {
  name = "cloudfront.requests.duration.get_sample"
  compute {
    aggregation_type = "count"
  }

しかしなぜかCountByが使えませんでした

解決方法

metric.tf
resource "datadog_logs_metric" "sample" {
  name = "cloudfront.requests.duration.get_sample"
  compute {
    aggregation_type = "distribution"
  }

このようにすることでCountByが利用できました

おわりに

2回目だったのでメモ程度に残しておきます

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0