ExpressJS グラフ

概要

Express インテグレーションは非推奨となり、Datadog APM に置き換わりました。Datadog APM は、Express インテグレーションと同じメトリクスを生成し、その他多くの機能とインテグレーションを備えています。Express インテグレーションは今後アップデートされないため、Datadog では APM へのアップグレードを強く推奨しています。

Datadog の Connect-Datadog ミドルウェアをアプリケーションに追加すると、以下のことができます。

  • 応答時間に関するアラートを生成できます。
  • 応答コードを監視できます。

セットアップ

Express インテグレーションは、収集したメトリクス Datadog に転送するのに Datadog Agent DogStatsD サーバーを必要とします。

ホストに Agent をインストールしたら、DogStatsD セットアップドキュメントを参照して有効にしてください。

コンフィギュレーション

  1. ミドルウェアをインストールします。

    npm install connect-datadog
    
  2. コードを変更して Datadog ミドルウェアを追加します。

    var dd_options = {
      'response_code':true,
      'tags': ['app:my_app']
    }
    
    var connect_datadog = require('connect-datadog')(dd_options);
    
    // Add your other middleware
    app.use(...);
    
    // Add the datadog-middleware before your router
    app.use(connect_datadog);
    app.use(router);
    

収集データ

メトリクス

node.express.router.response_code.100
(rate)
The rate of requests that generate responses with a 100 status code.
Shown as response
node.express.router.response_code.101
(rate)
The rate of requests that generate responses with a 101 status code.
Shown as response
node.express.router.response_code.102
(rate)
The rate of requests that generate responses with a 102 status code.
Shown as response
node.express.router.response_code.200
(rate)
The rate of requests that generate responses with a 200 status code.
Shown as response
node.express.router.response_code.201
(rate)
The rate of requests that generate responses with a 201 status code.
Shown as response
node.express.router.response_code.202
(rate)
The rate of requests that generate responses with a 202 status code.
Shown as response
node.express.router.response_code.203
(rate)
The rate of requests that generate responses with a 203 status code.
Shown as response
node.express.router.response_code.204
(rate)
The rate of requests that generate responses with a 204 status code.
Shown as response
node.express.router.response_code.205
(rate)
The rate of requests that generate responses with a 205 status code.
Shown as response
node.express.router.response_code.206
(rate)
The rate of requests that generate responses with a 206 status code.
Shown as response
node.express.router.response_code.207
(rate)
The rate of requests that generate responses with a 207 status code.
Shown as response
node.express.router.response_code.208
(rate)
The rate of requests that generate responses with a 208 status code.
Shown as response
node.express.router.response_code.226
(rate)
The rate of requests that generate responses with a 226 status code.
Shown as response
node.express.router.response_code.300
(rate)
The rate of requests that generate responses with a 300 status code.
Shown as response
node.express.router.response_code.301
(rate)
The rate of requests that generate responses with a 301 status code.
Shown as response
node.express.router.response_code.302
(rate)
The rate of requests that generate responses with a 302 status code.
Shown as response
node.express.router.response_code.303
(rate)
The rate of requests that generate responses with a 303 status code.
Shown as response
node.express.router.response_code.304
(rate)
The rate of requests that generate responses with a 304 status code.
Shown as response
node.express.router.response_code.305
(rate)
The rate of requests that generate responses with a 305 status code.
Shown as response
node.express.router.response_code.306
(rate)
The rate of requests that generate responses with a 306 status code.
Shown as response
node.express.router.response_code.307
(rate)
The rate of requests that generate responses with a 307 status code.
Shown as response
node.express.router.response_code.308
(rate)
The rate of requests that generate responses with a 308 status code.
Shown as response
node.express.router.response_code.400
(rate)
The rate of requests that generate responses with a 400 status code.
Shown as response
node.express.router.response_code.401
(rate)
The rate of requests that generate responses with a 401 status code.
Shown as response
node.express.router.response_code.402
(rate)
The rate of requests that generate responses with a 402 status code.
Shown as response
node.express.router.response_code.403
(rate)
The rate of requests that generate responses with a 403 status code.
Shown as response
node.express.router.response_code.404
(rate)
The rate of requests that generate responses with a 404 status code.
Shown as response
node.express.router.response_code.405
(rate)
The rate of requests that generate responses with a 405 status code.
Shown as response
node.express.router.response_code.406
(rate)
The rate of requests that generate responses with a 406 status code.
Shown as response
node.express.router.response_code.407
(rate)
The rate of requests that generate responses with a 407 status code.
Shown as response
node.express.router.response_code.408
(rate)
The rate of requests that generate responses with a 408 status code.
Shown as response
node.express.router.response_code.409
(rate)
The rate of requests that generate responses with a 409 status code.
Shown as response
node.express.router.response_code.410
(rate)
The rate of requests that generate responses with a 410 status code.
Shown as response
node.express.router.response_code.411
(rate)
The rate of requests that generate responses with a 411 status code.
Shown as response
node.express.router.response_code.412
(rate)
The rate of requests that generate responses with a 412 status code.
Shown as response
node.express.router.response_code.413
(rate)
The rate of requests that generate responses with a 413 status code.
Shown as response
node.express.router.response_code.414
(rate)
The rate of requests that generate responses with a 414 status code.
Shown as response
node.express.router.response_code.415
(rate)
The rate of requests that generate responses with a 415 status code.
Shown as response
node.express.router.response_code.416
(rate)
The rate of requests that generate responses with a 416 status code.
Shown as response
node.express.router.response_code.417
(rate)
The rate of requests that generate responses with a 417 status code.
Shown as response
node.express.router.response_code.421
(rate)
The rate of requests that generate responses with a 421 status code.
Shown as response
node.express.router.response_code.422
(rate)
The rate of requests that generate responses with a 422 status code.
Shown as response
node.express.router.response_code.423
(rate)
The rate of requests that generate responses with a 423 status code.
Shown as response
node.express.router.response_code.424
(rate)
The rate of requests that generate responses with a 424 status code.
Shown as response
node.express.router.response_code.425
(rate)
The rate of requests that generate responses with a 425 status code.
Shown as response
node.express.router.response_code.426
(rate)
The rate of requests that generate responses with a 426 status code.
Shown as response
node.express.router.response_code.428
(rate)
The rate of requests that generate responses with a 428 status code.
Shown as response
node.express.router.response_code.429
(rate)
The rate of requests that generate responses with a 429 status code.
Shown as response
node.express.router.response_code.431
(rate)
The rate of requests that generate responses with a 431 status code.
Shown as response
node.express.router.response_code.451
(rate)
The rate of requests that generate responses with a 451 status code.
Shown as response
node.express.router.response_code.500
(rate)
The rate of requests that generate responses with a 500 status code.
Shown as response
node.express.router.response_code.501
(rate)
The rate of requests that generate responses with a 501 status code.
Shown as response
node.express.router.response_code.502
(rate)
The rate of requests that generate responses with a 502 status code.
Shown as response
node.express.router.response_code.503
(rate)
The rate of requests that generate responses with a 503 status code.
Shown as response
node.express.router.response_code.504
(rate)
The rate of requests that generate responses with a 504 status code.
Shown as response
node.express.router.response_code.505
(rate)
The rate of requests that generate responses with a 505 status code.
Shown as response
node.express.router.response_code.506
(rate)
The rate of requests that generate responses with a 506 status code.
Shown as response
node.express.router.response_code.507
(rate)
The rate of requests that generate responses with a 507 status code.
Shown as response
node.express.router.response_code.508
(rate)
The rate of requests that generate responses with a 508 status code.
Shown as response
node.express.router.response_code.510
(rate)
The rate of requests that generate responses with a 510 status code.
Shown as response
node.express.router.response_code.511
(rate)
The rate of requests that generate responses with a 511 status code.
Shown as response
node.express.router.response_code.all
(rate)
The rate of all requests that receive a response.
Shown as response
node.express.router.response_time.95percentile
(gauge)
The 95th percentile of response time.
Shown as millisecond
node.express.router.response_time.avg
(gauge)
The average response time.
Shown as millisecond
node.express.router.response_time.count
(rate)
The rate of responses received.
Shown as response
node.express.router.response_time.max
(gauge)
The maximum response time.
Shown as millisecond
node.express.router.response_time.median
(gauge)
The median response time.
Shown as millisecond

イベント

Express インテグレーションには、イベントは含まれません。

サービスのチェック

Express インテグレーションには、サービスのチェック機能は含まれません。

トラブルシューティング

ご不明な点は、Datadog のサポートチームまでお問合せください。

PREVIEWING: mervebolat/span-id-preprocessing