by shigemk2

当面は技術的なことしか書かない

Datadog

新着順 人気順

Datadog DORA Metrics 自体に料金設定はない

DORA Metrics は専用 SKU のないプラットフォーム機能で、有効化自体は無料。課金されるのはデータソース側(APM はホスト単位、CI Visibility はコミッター単位、Incident Management はユーザー単位)。デプロイ・障害イベントを API 経由で直接送信する構成…

Datadog のロールは加算式

複数ロールを持つ場合、権限は全ロールの和になり、最も広いものが有効。狭いロールが Admin の権限を打ち消すことはない。「Admin なのに billing だけ見えない」ときに疑うべきは、SAML マッピングで紐づいているのが managed の Admin Role ではなく、bil…

Datadog のパイプライン fingerprint は name + provider で決まる

カスタム送信(Pipelines API)で「同じ名前のパイプラインなのに別 CI としてカウントされる」場合、原因はペイロードの name か provider_name の揺れ。Datadog は provider_name + name から fingerprint を生成してグルーピングする。name に build ID の…

CI Visibility の span 数の estimated usage メトリクスはない

課金監視用の estimated usage メトリクスは committer 数(datadog.estimated_usage.ci_visibility.pipeline.committers など)のみで、span 数は提供されていない。span 数を監視したいなら CI/CD モニターの event count で数える。正確な請求値は Plan & U…

Datadog CI Visibility の author は Git のコミットメタデータ

CI Visibility の author は Datadog アカウントの登録メールではなく、コミットの git.commit.author.email(ローカルの git config user.email)から取られる。GitHub の「メール非公開」設定だと noreply アドレスがコミットに付き、別ユーザーのように見え…

Datadog API Key と Application Key

権限(スコープ)を設定できるのは Application Key のみ。API Key は権限設定不可なので用途ごとに分けて管理する。読み取り専用にしたいなら Application Key に *_read 系スコープだけ付ける。 docs.datadoghq.com

DORA Metricsセットアップ APM

APM入っていることが前提として、この辺をなぞっていく docs.datadoghq.com

DORA Metrics Calculation Change lead time stages

内部的にAPMがいい感じに各種時間を取得してるっぽい Time to PR Ready Time from the commit’s creation until the PR is ready for review. This metric is only available for commits made before the PR is marked as ready for review. Review Time Ti…

Continuous Delivery Visibility

ArgoCDとか使えるけどまだPreview Datadog Continuous Delivery (CD) Visibility は、デプロイメントに関する可観測性を提供します。CD Visibility を使用すると、デプロイメントのメトリクスやデータを Datadog に取り込み、デプロイメントの健全性を伝えら…

datadog-ci sourcemaps upload disable-gitオプション

--disable-git(デフォルト: false)は、コマンドが現在の作業ディレクトリで git を実行するのを防ぎ、リポジトリ関連のデータ(コミットハッシュ、リモート URL、ソースマップで参照されているソースのリポジトリ内パス)を Datadog に送信しないようにす…

Datadog ソースマップ

フロントエンドの JavaScript ソースコードが縮小化されている場合、Datadog にソースマップをアップロードして、異なるスタックトレースの難読化を解除します。 とのこと webpack.config.js で devtool: 'hidden-source-map' を設定 本番ビルドを実行 → dis…

new_host_delay renotify_interval メモ

new_host_delay Deprecated(非推奨): 代わりに new_group_delay を使用してください。 新しいホストが追加された際に、ホストの起動とアプリケーションの完全な起動を待ってからモニター評価を開始するまでの遅延時間(秒)。 項目 内容 型 Number 単位 秒…

Datadog Monitor クエリの time_window(last_)仕様メモ

クエリ構文 time_aggr(time_window):space_aggr:metric{tags} [by {key}] operator # time_window に設定できる値 通常の time_aggr(avg, sum, max, min) フォーマット 範囲 備考 last_#m 1〜10080 モニタータイプにより異なる last_#h 1〜168 モニタータ…

Datadog watchdog terraform

resource "datadog_monitor" "watchdog_monitor" { name = "Watchdog detected an anomaly: {{event.title}}" type = "event-v2 alert" message = "Watchdog monitor created from Terraform" query = "events(\"source:watchdog story_category:apm env:tes…

APIキー / アプリケーションキー

Datadogには2種類のキーがあり、権限を設定できるのはアプリケーションキーのみ。 2種類のキーの違い キー 用途 権限設定 API Key データの送信(Agent、メトリクス投入など) 設定不可 Application Key データの読み取り・API操作 設定可能(スコープ) す…

wiror30版mcp-server-datadog RUM ツールまとめ

参考: https://github.com/winor30/mcp-server-datadog RUM関連ツール一覧 ツール名 説明 get_rum_applications 組織内のすべてのRUMアプリケーションを取得 get_rum_events RUMイベントを検索・取得 get_rum_grouped_event_count 指定したディメンションでR…

Devin Datadog MCP

公式のMCPを使っていないのでその点は注意 github.com docs.devin.ai

Datadog RUM 権限

ぱっと見read only/standard/adminの標準ロールで対応できそう Name Description Default Role RUM Apps Write(rum_apps_write) Create, edit, and delete RUM applications. Creating a RUM application automatically generates a Client Token. In order …

Datadog RUM セッション

real user monitoring 定義 セッションとは、ウェブアプリケーションまたはモバイルアプリケーションでユーザーが行う操作 (カスタマージャーニー) ユーザーがウェブアプリケーション上で行う継続的な操作期間を1セッションとしてカウント 計測条件 終了条件…

Datadog organization情報の取得

organization情報の取得 organizationについてのおおまかな情報が取れる # Curl command curl -X GET "https://api.datadoghq.com/api/v1/org" \ -H "Accept: application/json" \ -H "DD-API-KEY: ${DD_API_KEY}" \ -H "DD-APPLICATION-KEY: ${DD_APP_KEY}"…

Datadog 前週と比較

先週と比較する compare value to last week的な感じ ダッシュボードも作れる docs.datadoghq.com

EventBridgeのDatadog Monitor event.text

EventBridgeルールの通知をDatadog Eventに流してモニターしたい場合には、イベントテキストは勝手に流れてくる monitor messageが先で、イベントテキストが後のようで、必ずイベントテキストがmessageの後についてくるので、{{ event.text }} をmessageに追…

argocd.app_controller.app.info

Information about Applications. It contains tags such as sync_status and health_status that reflect the application state in Argo CD. The metric value is constant sync_statusは特にドキュメントないけど普通にoutofsyncとかunknownとかArgoCDのs…

datadog_monitor type

type (String) The type of the monitor. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Note: The monitor type cannot be changed after a monitor is created. Valid val…

default_zero

default_zero() 関数は、値 0 を使用して空の間隔を埋めます。 式同士で計算する時とかに便利 docs.datadoghq.com

Google Cloud Datadog SIEMメモ

ログシンク→Pub/Sub(プルサブスクリプション)→Dataflow ログシンク→Pub/Sub(プッシュサブスクリプション)は非推奨 ログシンクはOrganiztionで作成できて、Projectを横断検索できる Pub/Sub Dataflowは特定のProjectでしか作れない cloud.google.com cloud.go…

Datadog SIEM memo

基本的な部分は、ログ→Lambda pub/sub Functions→Datadog Google Cloudだとこんな構成 docs.datadoghq.com ちゃんと構成が載っているのはGoogle Cloudだけで、AWS/Azureは雰囲気で読み取れって感じだった cloud.google.com

datadog_monitor

パラメータの詳細はDatadogのドキュメントに 気になるパラメータ new_group_delay 新しく作成されたアプリケーションまたはコンテナを完全に開始できるようにするための、新しいグループのアラートを開始するまでの時間 (秒単位)。負でない整数である必要が…

Datadog メトリクスの小数点

0.001が1e-3になる 見た目的にギョッとする メトリクスのユニット

k6 Datadog tag

第二引数のjsonのkeyvalueで放り込む import http from 'k6/http'; export default function () { const res = http.get('https://test.k6.io'); console.log(JSON.stringify(res.headers)); } grafana.com grafana.com docs.datadoghq.com