by shigemk2

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

EnvoyメトリクスのDatadog取得

エンドポイントがstats/prometheusになったのはDatadog Agent 7.36からで、それまではstatsだった (ポートは任意)

instances:
  - openmetrics_endpoint: localhost:15090/stats/prometheus

タスク定義ではアプリケーションコンテナのところに以下記載しておく あと%%じゃなくて%にするとURLパースエラーになるから注意

"dockerLabels": {
    "com.datadoghq.ad.init_configs": "[{}]",
    "com.datadoghq.ad.instances": "[{\"openmetrics_endpoint\": \"http://%%host%%:15090/stats/prometheus\"}]",
    "com.datadoghq.ad.check_names": "[\"envoy\"]"
},

docs.datadoghq.com

github.com