Skip to content

Commit e4ef014

Browse files
authored
Merge pull request DataDog#8099 from DataDog/ruth/docs-1130
DOCS-1130 Min Collection Interval
2 parents 42d144e + 9b1c47d commit e4ef014

File tree

2 files changed

+26
-20
lines changed

2 files changed

+26
-20
lines changed

content/en/developers/write_agent_check.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Writing a custom Agent check
2+
title: Writing a Custom Agent Check
33
kind: documentation
44
aliases:
55
- /agent/faq/how-do-i-change-the-frequency-of-an-agent-check/
@@ -67,6 +67,8 @@ For more details about the interface provided by the base class, browse the [API
6767

6868
To change the collection interval of your check, use `min_collection_interval` in the configuration file. The default value is `15` which means the `check` method from your class is invoked with the same interval as the rest of the integrations on the Agent.
6969

70+
**Note**: The `min_collection_interval` parameter is available for both standard and custom integrations.
71+
7072
{{< tabs >}}
7173
{{% tab "Agent v6 & v7" %}}
7274
For Agent 6, `min_collection_interval` must be added at an instance level and is configured individually for each instance.

content/en/getting_started/integrations/_index.md

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,37 +20,37 @@ An integration, at the highest level, is when you assemble a unified system from
2020

2121
Datadog provides three main types of integrations:
2222

23-
- **Agent-based integrations** are installed with the Datadog Agent and use a Python class method called `check` to define the metrics to collect.
24-
- **Authentication (crawler) based integrations** are set up in the [Datadog App][2] where you provide credentials for obtaining metrics with the API. These include popular integrations like [Slack][3],[AWS][4],[Azure][5], and [PagerDuty][6].
25-
- **Library integrations** use the [Datadog API][7] to allow you to monitor applications based on the language they are written in, like [Node.js][8] or [Python][9].
23+
- **Agent-based** integrations are installed with the Datadog Agent and use a Python class method called `check` to define the metrics to collect.
24+
- **Authentication (crawler) based** integrations are set up in [Datadog][2] where you provide credentials for obtaining metrics with the API. These include popular integrations like [Slack][3], [AWS][4], [Azure][5], and [PagerDuty][6].
25+
- **Library** integrations use the [Datadog API][7] to allow you to monitor applications based on the language they are written in, like [Node.js][8] or [Python][9].
2626

2727
You can also build a [custom check][10] to define and send metrics to Datadog from your unique in-house system.
2828

2929
## Setting up an integration
3030

31-
The Datadog Agent package includes integrations officially supported by Datadog, in [integrations core][11]. To use the integrations in integrations core, download the Datadog agent. Community-based integrations are in [integrations extras][12], and to use those, you need to download the [developer toolkit][13]. For more information on installing or managing these integrations, see the [integrations management guide][14].
31+
The Datadog Agent package includes integrations officially supported by Datadog, in [integrations core][11]. To use those integrations, download the Datadog Agent. Community-based integrations are in [integrations extras][12], and to use those, you need to download the [developer toolkit][13]. For more information on installing or managing these integrations, see the [integrations management guide][14].
3232

3333
### API and Application keys
3434

35-
In order to [install the Datadog Agent][15], you need an [API key][16]. If the Agent is already downloaded, make sure to set up the API key in the `datadog.yaml` file. To use most additional Datadog functionality besides submitting metrics and events, you need an [application key][16]. You can manage your accounts API and application keys in the [API Settings page][17] of the UI.
35+
To [install the Datadog Agent][15], you need an [API key][16]. If the Agent is already downloaded, make sure to set up the API key in the `datadog.yaml` file. To use most additional Datadog functionality besides submitting metrics and events, you need an [application key][16]. You can manage your accounts API and application keys in the [API Settings page][17].
3636

3737
### Installation
3838

39-
If you want to connect with a crawler or library based integration, navigate to that provider on the [Integrations page][18] for specific instructions on how to connect. For other supported integrations, install the [Datadog Agent][19]. Most integrations are supported on our containerized agents: [Docker][20], and [Kubernetes][21]. After you've downloaded the Agent, go to the [Integrations page][18] section to find specific configuration instructions for individual integrations.
39+
If you want to connect with a crawler or library based integration, navigate to that provider on the [Integrations page][18] for specific instructions on how to connect. For other supported integrations, install the [Datadog Agent][15]. Most integrations are supported for the containerized Agents: [Docker][19] and [Kubernetes][20]. After you've downloaded the Agent, go to the [Integrations page][18] to find specific configuration instructions for individual integrations.
4040

4141
### Configuring Agent integrations
4242

43-
Configurations are specific to [individual integrations][18]. In the `conf.d/<INTEGRATION_NAME>.d` folder at the root of your Agent's configuration directory, there is a folder named `<INTEGRATION_NAME>.d` for each officially supported Agent integration which contains a sample `conf.yaml.example` that lists all available configuration options for this particular integration.
43+
Most configuration parameters are specific to the [individual integration][18]. Configure Agent integrations by navigating to the `conf.d` folder at the root of your Agent's configuration directory. Each integration has a folder named `<INTEGRATION_NAME>.d`, which contains the file `conf.yaml.example`. This example file lists all available configuration options for the particular integration.
4444

4545
To activate a given integration:
4646

4747
1. Rename the `conf.yaml.example` file (in the corresponding `<INTEGRATION_NAME>.d` folder) to `conf.yaml`.
4848
2. Update the required parameters inside the newly created configuration file with the values corresponding to your environment.
49-
3. [Restart the Datadog Agent][22].
49+
3. [Restart the Datadog Agent][21].
5050

51-
**Note**: All configuration files follow the format documented in the [parameters documentation][23].
51+
**Note**: All configuration files follow the format documented in the [parameters documentation][22].
5252

53-
For example, this is the minimum `conf.yaml` configuration file needed to collect metrics and logs from the [apache integration][24]:
53+
For example, this is the minimum `conf.yaml` configuration file needed to collect metrics and logs from the [apache integration][23]:
5454

5555
```yaml
5656
init_config:
@@ -70,7 +70,7 @@ logs:
7070
sourcecategory: http_web_access
7171
```
7272
73-
To create multiple instances in the same Agent check to monitor two Apache services, create a new instance with a `-` in the `instances:` section:
73+
To create multiple instances in the same Agent check to monitor two Apache services, create a new instance with a `-` in the `instances` section:
7474

7575
```yaml
7676
init_config:
@@ -83,13 +83,17 @@ instances:
8383
service: remote-apache
8484
```
8585

86+
#### Collection interval
87+
88+
The default collection interval for all Datadog standard integrations is 15 seconds. To change the collection interval, use the parameter `min_collection_interval`. For more details, see the [developer documentation][24].
89+
8690
### Tagging
8791

8892
Tagging is a key part of filtering and aggregating the data coming into Datadog across many sources. For more information about tagging, see [Getting started with tags][25].
8993

9094
If you define tags in the `datadog.yaml` file, the tags are applied to all of your integrations data. Once you've defined a tag in `datadog.yaml`, all new integrations inherit it.
9195

92-
For example, setting `service` in your config file is the recommended [agent setup][26] for monitoring separate, independent systems.
96+
For example, setting `service` in your config file is the recommended [Agent setup][26] for monitoring separate, independent systems.
9397

9498
To better unify your environment, it is also recommended to configure the `env` tag in the Agent. To learn more about unified service tagging, refer to the dedicated [unified service tagging][12] documentation.
9599

@@ -165,16 +169,16 @@ If you continue to have problems, reach out to [our awesome Support team][37].
165169
[12]: https://github.com/DataDog/integrations-extras
166170
[13]: /developers/integrations/new_check_howto/#developer-toolkit
167171
[14]: /agent/guide/integration-management/
168-
[15]: https://github.com/DataDog/dd-agent
172+
[15]: https://app.datadoghq.com/account/settings#agent
169173
[16]: /account_management/api-app-keys/
170174
[17]: https://app.datadoghq.com/account/settings#api
171175
[18]: /integrations/
172-
[19]: https://app.datadoghq.com/account/settings#agent
173-
[20]: https://app.datadoghq.com/account/settings#agent/docker
174-
[21]: https://app.datadoghq.com/account/settings#agent/kubernetes
175-
[22]: /agent/guide/agent-commands/#restart-the-agent
176-
[23]: /developers/integrations/new_check_howto/#param-specification
177-
[24]: https://github.com/DataDog/integrations-core/blob/master/apache/datadog_checks/apache/data/conf.yaml.example
176+
[19]: https://app.datadoghq.com/account/settings#agent/docker
177+
[20]: https://app.datadoghq.com/account/settings#agent/kubernetes
178+
[21]: /agent/guide/agent-commands/#restart-the-agent
179+
[22]: /developers/integrations/new_check_howto/#param-specification
180+
[23]: https://github.com/DataDog/integrations-core/blob/master/apache/datadog_checks/apache/data/conf.yaml.example
181+
[24]: /developers/write_agent_check/#collection-interval
178182
[25]: /getting_started/tagging/
179183
[26]: /getting_started/agent/#setup
180184
[27]: /agent/guide/agent-commands/#agent-status-and-information

0 commit comments

Comments
 (0)