User Tools

Site Tools


devops:monitoring:datadog:dogstatsd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
devops:monitoring:datadog:dogstatsd [2025/02/14 14:16] – [Usage] 85.219.17.206devops:monitoring:datadog:dogstatsd [2025/02/14 14:18] (current) – [DogStatsD Features] 85.219.17.206
Line 41: Line 41:
  
 Example usage in Node.js: Example usage in Node.js:
 +<code:node.js>
  
 const dogstatsd = require('dogstatsd-client'); const dogstatsd = require('dogstatsd-client');
Line 55: Line 56:
 // Send a timer metric // Send a timer metric
 statsd.timing('my_app.response.time', 123); statsd.timing('my_app.response.time', 123);
 +</code>
 ==== DogStatsD Features ==== ==== DogStatsD Features ====
  
-    Types of Metrics: +Types of Metrics: 
-        Counters: Count occurrences of an event (e.g., my_app.requests.count). +         *  Counters: Count occurrences of an event (e.g., my_app.requests.count). 
-        Gauges: Measure a value at a specific point in time (e.g., my_app.memory.usage). +          Gauges: Measure a value at a specific point in time (e.g., my_app.memory.usage). 
-        Timers: Measure the time it takes to perform an operation (e.g., my_app.response.time). +          Timers: Measure the time it takes to perform an operation (e.g., my_app.response.time). 
-        Histograms: Collect distribution statistics (e.g., request duration or response sizes).+          Histograms: Collect distribution statistics (e.g., request duration or response sizes).
  
-    Tags: DogStatsD supports adding custom tags to metrics for more detailed filtering and grouping in Datadog. For example, you can track metrics by region or host:+Tags: DogStatsD supports adding custom tags to metrics for more detailed filtering and grouping in Datadog. For example, you can track metrics by region or host:
  
-statsd.increment('my_app.requests.count', tags=["env:production", "region:us-west"])+    statsd.increment('my_app.requests.count', tags=["env:production", "region:us-west"])
  
-    Multi-dimensional Aggregation: DogStatsD supports the aggregation of metrics by multiple dimensions (e.g., by host, service, or other attributes) to provide more granular insights.+Multi-dimensional Aggregation: DogStatsD supports the aggregation of metrics by multiple dimensions (e.g., by host, service, or other attributes) to provide more granular insights.
  
-    Real-time Metrics: DogStatsD reports metrics in real time, which can be visualized in Datadog dashboards, monitors, and alerts.+Real-time Metrics: DogStatsD reports metrics in real time, which can be visualized in Datadog dashboards, monitors, and alerts.
  
 ==== DogStatsD with Datadog Agent ==== ==== DogStatsD with Datadog Agent ====
devops/monitoring/datadog/dogstatsd.1739542583.txt.gz · Last modified: 2025/02/14 14:16 by 85.219.17.206