Datadog-ExpressJS Integration

ExpressJS graph

Overview

Add the connect-datadog middleware to your application to:

  • Alert on your response times
  • Monitor your response code

Setup

Configuration

The Express integration requires the Datadog Agent.

  1. Install the middleware

    npm install connect-datadog 
    
  2. Modify your code to add the datadog middleware:

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

Data Collected

Metrics

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