In Datadog, monitors are used to keep track of the health and performance of your systems, infrastructure, and applications. A monitor evaluates data from your metrics, logs, or traces to trigger alerts when certain conditions are met. There are several types of monitors, each with specific use cases and configurations.
Metric monitors are used to track the value of metrics over time. These monitors allow you to define thresholds for certain metrics and receive alerts if the metric exceeds or falls below the threshold.
- Types of Metric Monitors:
- Example use cases:
- Configuration:
To create a metric monitor, select the metric you wish to track, define the threshold, and specify the evaluation conditions (e.g., above, below, or within a certain range).
Log monitors are used to monitor logs for specific patterns or conditions. These monitors trigger alerts when certain log events occur, such as error messages or specific keywords.
- Types of Log Monitors:
- Example use cases:
- Configuration:
When creating a log monitor, you can define the search query (e.g., specific log text or patterns) and set thresholds for the count of logs to trigger an alert.
APM monitors focus on monitoring traces and performance data from your applications. These monitors help you track the performance of your services and quickly identify issues such as slow requests, latency, or errors in your distributed systems.
- Types of APM Monitors:
- Example use cases:
- Configuration:
In APM monitors, you specify the service, endpoint, or resource to monitor, and configure the alert conditions based on the performance metrics such as request latency or error percentage.
Integration monitors are pre-configured monitors based on Datadog's integrations with various third-party services. These monitors track service-specific metrics and can alert you about problems in integrations like databases, cloud services, web servers, and other technologies.
- Example use cases:
- Configuration:
Integration monitors can be configured by installing the relevant Datadog integration for the service you want to monitor. Most integrations provide predefined monitors that you can customize based on your needs.
Synthetics monitors are used to simulate user interactions with your application or website and ensure that key user flows (such as logins or form submissions) are functioning properly. These monitors can alert you if the synthetic tests fail.
- Types of Synthetics Monitors:
- Example use cases:
- Configuration:
You define the tests (either browser or API) you want to run and configure the frequency and alerting conditions (e.g., failure rate or response time).
Network monitors track network-related metrics and events, such as bandwidth usage, packet loss, and network latency, to ensure the health of your network infrastructure.
- Types of Network Monitors:
- Example use cases:
- Configuration:
Configure network monitors by selecting the relevant network metric (e.g., `system.net.bytes_recv`) and defining the threshold conditions for the alert.
Custom monitors are created by defining your own queries and conditions based on any data available in Datadog, such as custom metrics or logs that are not covered by built-in monitors.
- Example use cases:
- Configuration:
You can define custom monitors using Datadog’s query language, selecting the appropriate data sources and alert conditions.
Datadog provides a wide variety of monitor types to meet the monitoring needs of your systems, infrastructure, and applications. Whether you're monitoring metrics, logs, APM data, or synthetic tests, Datadog's monitors can help you keep track of system health and trigger timely alerts when things go wrong. By selecting the appropriate monitor type, you can ensure the smooth operation of your entire infrastructure.