Skip to content

Commit

Permalink
Merge branch 'master' into alex/snmp_profile_palo_alto
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreYang committed Jan 4, 2022
2 parents 4599cfb + 45b5361 commit 53e28f1
Show file tree
Hide file tree
Showing 690 changed files with 5,775 additions and 547 deletions.
35 changes: 35 additions & 0 deletions .azure-pipelines/all_comment.yml
@@ -0,0 +1,35 @@
pr:
branches:
include:
- master

trigger: none

variables:
PIP_CACHE_DIR: $(Pipeline.Workspace)/.cache/pip
DDEV_COLOR: 1
DD_TRACE_AGENT_PORT: 8127

resources:
containers:
- ${{ if eq(variables['System.PullRequest.IsFork'], 'False') }}:
- container: dd_agent
image: gcr.io/datadoghq/agent:latest
ports:
- 8127:8126
env:
DD_API_KEY: $(DD_CI_API_KEY)
DD_HOSTNAME: "none"
DD_INSIDE_CI: "true"

jobs:
- template: './templates/test-all-checks.yml'
parameters:
${{ if eq(variables['System.PullRequest.IsFork'], 'False') }}:
ddtrace_flag: '--ddtrace'
pip_cache_config:
key: 'pip | $(Agent.OS) | datadog_checks_base/datadog_checks/base/data/agent_requirements.in'
restoreKeys: |
pip | $(Agent.OS)
path: $(PIP_CACHE_DIR)
ispr: true
10 changes: 0 additions & 10 deletions .azure-pipelines/scripts/sqlserver/windows/40_install_sqlserver.py
Expand Up @@ -3,20 +3,10 @@
from tenacity import wait_exponential, retry, stop_after_attempt


@retry(wait=wait_exponential(min=2, max=60), stop=stop_after_attempt(5))
def install_sqlserver():
"""
Install with TCP/IP enabled, see: https://chocolatey.org/packages/sql-server-2017
"""
print("Install sql-server-2017 ...")
subprocess.run(["choco", "install", "sql-server-2017", "--no-progress", "--params", "'/TCPENABLED:1'"], check=True)


@retry(wait=wait_exponential(min=2, max=60), stop=stop_after_attempt(5))
def install_msoledbsql():
print("Install Microsoft OLE DB Driver for SQL Server ...")
subprocess.run(["choco", "install", "msoledbsql", "--no-progress", "-y"], check=True)


install_sqlserver()
install_msoledbsql()

This file was deleted.

2 changes: 1 addition & 1 deletion .azure-pipelines/templates/test-all.yml
Expand Up @@ -44,5 +44,5 @@ jobs:

# Avoid max step limits
${{ if eq(check.checkName, 'datadog_checks_base') }}:
validate: true
validate: false
validate_changed: all
19 changes: 13 additions & 6 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Expand Up @@ -112,12 +112,19 @@ datadog_checks_base/tests/**/test_db_util.py @DataDog/agent-integrations
datadog_checks_base/tests/**/test_db_sql.py @DataDog/database-monitoring @DataDog/agent-integrations
**/base/utils/db/statement_metrics.py @DataDog/database-monitoring @DataDog/agent-integrations
datadog_checks_base/tests/**/test_db_statements.py @DataDog/database-monitoring @DataDog/agent-integrations
/postgres/ @DataDog/agent-integrations @DataDog/database-monitoring
/postgres/*.md @DataDog/agent-integrations @DataDog/database-monitoring @DataDog/documentation
/postgres/manifest.json @DataDog/agent-integrations @DataDog/database-monitoring @DataDog/documentation
/mysql/ @DataDog/agent-integrations @DataDog/database-monitoring
/mysql/*.md @DataDog/agent-integrations @DataDog/database-monitoring @DataDog/documentation
/mysql/manifest.json @DataDog/agent-integrations @DataDog/database-monitoring @DataDog/documentation
/postgres/ @DataDog/database-monitoring @DataDog/agent-integrations
/postgres/*.md @DataDog/database-monitoring @DataDog/agent-integrations @DataDog/documentation
/postgres/manifest.json @DataDog/database-monitoring @DataDog/agent-integrations @DataDog/documentation
/mysql/ @DataDog/database-monitoring @DataDog/agent-integrations
/mysql/*.md @DataDog/database-monitoring @DataDog/agent-integrations @DataDog/documentation
/mysql/manifest.json @DataDog/database-monitoring @DataDog/agent-integrations @DataDog/documentation
/sqlserver/ @DataDog/agent-integrations @DataDog/database-monitoring
/sqlserver/*.md @DataDog/agent-integrations @DataDog/database-monitoring @DataDog/documentation
/sqlserver/manifest.json @DataDog/agent-integrations @DataDog/database-monitoring @DataDog/documentation
/oracle/ @DataDog/agent-integrations @DataDog/database-monitoring
/oracle/*.md @DataDog/agent-integrations @DataDog/database-monitoring @DataDog/documentation
/oracle/manifest.json @DataDog/agent-integrations @DataDog/database-monitoring @DataDog/documentation


# Checks base
/datadog_checks_base/ @DataDog/agent-core @DataDog/agent-integrations
Expand Down
2 changes: 1 addition & 1 deletion .in-toto/tag.47c5a022.link
@@ -1 +1 @@
{"signatures":[{"keyid":"47c5a02273f1cf8104ee8d1a7a67dc43b24c1542","other_headers":"04000108001d16210447c5a02273f1cf8104ee8d1a7a67dc43b24c1542050261b13556","signature":"7c1440958b73999bf9b670d0112ed5df6cfb7ef6d187e7b75a5a3cc60531beb89760333db868bb7fc045cd7ddae6b1d1694b98af2c736666e574023f8fd48b0f2531b4c87bf9f125d4ab8b70fd5a3110bb40892ae98bc4662bc3752bc927031fe625277815b1853f14584fc1d76a19e2039adf819ff567f95f27f639b595986be3b3808e4b537921285e635e2f554da969db667ebd58a5281990412f23b90c16f7e7ecafce97c7ac7e4ecc1b039b2a5e810c462dfa8c4d85df9c9132d6f9661ae3c26623d3e78f73ac68bdd84bde6419760612c2335603f8683f48bc101160d4382b1baf5daebce243bd19550f5fa2eeb1e2fec5e9741159a30157301384b694bc38dfb4cfdb25542f09878816a51925974022d354e3d6b48d53bb39f3b0c921694a81d50b2746498a64b0a3af914cc03c1fb4fb9d3643587a1e69ffbfc8588c82b822350299f1468bfbc345426f273c1fabda8622024c7236d6bd39651c69808e01a38e631246501f91c004e267494fe99168d043257f4834d905856dd72acfc06cff0d396c0f7cd78f1c1a65f842e233a4a151f744505da3fdc73b6674a4dc54b322fe00521c23e9d50005c65728fc95da1ca21059ae31e4e7dc43c0cb43434dffa451e65e294623234b90668e2b3265e9a54a4c9cd07647be0f339fd16ce57b064d8dc1804e7b1d01520f64673439b2232e18a88a622a1b38b80fd2c2ac73"}],"signed":{"_type":"link","byproducts":{},"command":[],"environment":{},"materials":{},"name":"tag","products":{"nginx/datadog_checks/__init__.py":{"sha256":"fe73dc8f45d35205d366455edc6e8c3a8b29870d773b6f103d5261e25f757b25"},"nginx/datadog_checks/nginx/__about__.py":{"sha256":"e949a910cfac57346749d2dfc1e048693edb257220309219d952d765047ae607"},"nginx/datadog_checks/nginx/__init__.py":{"sha256":"4755dfaa111721c5828655cc8a03a6427c18aae3e28bd9c2c84133ca5444488b"},"nginx/datadog_checks/nginx/config_models/__init__.py":{"sha256":"7a5c3cc09fab7c1e75de218a0c73f295ceb685fa95ab3f47c44eda82ca646a1e"},"nginx/datadog_checks/nginx/config_models/defaults.py":{"sha256":"90fa0b0d6c678ec2b411304f40909846debd5183c27662733d1ded329e5a013e"},"nginx/datadog_checks/nginx/config_models/instance.py":{"sha256":"435d80b56f045815feb3b0fab7e037eb0c3d3593a74c817b3a7287fa8ccc4135"},"nginx/datadog_checks/nginx/config_models/shared.py":{"sha256":"6bfb76378ea7d6180db3e4f0aa04344f3588647f8edf20519ce1b06f67408beb"},"nginx/datadog_checks/nginx/config_models/validators.py":{"sha256":"b2e1a32eb8591a9d541a935aa5c56f20fa7ebbc3de68cf24df3a650198f2712a"},"nginx/datadog_checks/nginx/data/conf.yaml.example":{"sha256":"87d06111506a8afaf667386b4ceeccfe8051b2fb8178ccd32ae300fc89302ed2"},"nginx/datadog_checks/nginx/metrics.py":{"sha256":"ee8faf45e78f184f5d2be4769a46228cbd8f3e7a1fbd06097cfa39bc0880185a"},"nginx/datadog_checks/nginx/nginx.py":{"sha256":"2e5e6a0eac4c4c2f77d0c2d44725006c1b17b6cb65779026c98ff89d4ddc7973"},"nginx/requirements.in":{"sha256":"75a11da44c802486bc6f65640aa48a730f0f684c5c07a42ba3cd1735eb3fb070"},"nginx/setup.py":{"sha256":"a8c5e9dbb975f2e3589b2b07e3f057a4613bd0ce40742195ff0d7f1422ff37a8"}}}}
{"signatures":[{"keyid":"47c5a02273f1cf8104ee8d1a7a67dc43b24c1542","other_headers":"04000108001d16210447c5a02273f1cf8104ee8d1a7a67dc43b24c1542050261cc8544","signature":"62203c587018ab22085dd1f1b706047ff2fe62d15f59b9363faf8a889d03ca490489da4b7accfbc658f158ff1b8e48fb4a444e854a07234f71f78ee506e5389a213dd008ecd6ce0d2747a83c32559484cc6ee7284b6ce1f42360dc02ec02c31577914e9c5f78963ee8453ae6e19e849970394d86cae8433e9769cce439fc25f3780654b40b9178f278b5a63f8849727c60483bc4d8d23f615ce9b7776e508274019b5f50ecb485c11e2ac9f935c3cc7e0ca5790b4647c181ca2b1d170838da9cb381c9ef771c4b3050592eb6301a5dfbfb4273b9f2f7b6e736a3e901546a5385737e1e25fbf1716d08393687971525c479ec2bbfc9103f531a1babc515675a038b71a99bcc6794484a9b35049fe2c6213f5707f8ee90d242c7b0e25b1d0cdb7afbe95972f214d0d3816b7582f64d00a9988f33ca84340405676d3c63faef1c63d6d5d7dd3e4d764ad3099e1531982effa995f15b33d8133da45b506b438c1023f49924ad60acf22f9d0229d9862164c0a9025fe0b823de58fdc3abe65ab16bde99b301531167ad3fb770dded7c244a69170eb94bf8e9316d80dbe289e9729efebec2d95e14ff591d859b96678cf5b0cecfc246b3dbb7a5403b6fedd0eb83e2ced8c01920ee8b8234bffa9155d678ec7aad3b4a465b0c705f376f4d52c17fd913c66656a6faffd0ecf0e20429c497e3733825c3fdebd48772145b8b5f7187bad5"}],"signed":{"_type":"link","byproducts":{},"command":[],"environment":{},"materials":{},"name":"tag","products":{"kafka_consumer/datadog_checks/__init__.py":{"sha256":"9a3c64b8b00c94da4b4f34618d803d3255808caf21b8afa9195c84b61da66b6a"},"kafka_consumer/datadog_checks/kafka_consumer/__about__.py":{"sha256":"a2620c6e91a61ffed8353788becf659872072476af1e31f183a6efe0c0afdb03"},"kafka_consumer/datadog_checks/kafka_consumer/__init__.py":{"sha256":"5d5a2f991c64a95c96c8713f3179f9d0944682b6bed037b8c34d9f85463ca57c"},"kafka_consumer/datadog_checks/kafka_consumer/config_models/__init__.py":{"sha256":"7a5c3cc09fab7c1e75de218a0c73f295ceb685fa95ab3f47c44eda82ca646a1e"},"kafka_consumer/datadog_checks/kafka_consumer/config_models/defaults.py":{"sha256":"ada202909d5ec3a318ca70371e483e5cbb3764e0955f591b3e5c1a1548fcd268"},"kafka_consumer/datadog_checks/kafka_consumer/config_models/instance.py":{"sha256":"6dc18abd3bd0493a5e702447d2112259e19e7ce3f30790a91eb0963d295f214d"},"kafka_consumer/datadog_checks/kafka_consumer/config_models/shared.py":{"sha256":"5ae08f90e642a351f69e9db4f79b8415da80dbfc080651f61c46a37374e7ca66"},"kafka_consumer/datadog_checks/kafka_consumer/config_models/validators.py":{"sha256":"0424fe17778b76e1b589b9564d0d543d1b71dba1edd6e5d71a7c528dddf68e0b"},"kafka_consumer/datadog_checks/kafka_consumer/constants.py":{"sha256":"bfaa8f0053b9c7fd290c7df00980ee78c65cad30f10f1f2eb009b65f7388f288"},"kafka_consumer/datadog_checks/kafka_consumer/data/conf.yaml.example":{"sha256":"e1a0d4370cc0b1095419a994252f139ba95a5e291ca945b3ca7d0bdbca32b8d3"},"kafka_consumer/datadog_checks/kafka_consumer/kafka_consumer.py":{"sha256":"696c26f841827e60b6410078b1f5c1f1456106074aa15ab48e76fc344c54ad56"},"kafka_consumer/datadog_checks/kafka_consumer/legacy_0_10_2.py":{"sha256":"ac65995b33e35a831645e5df19907e4524ed37b736c5a9cdde17f7b9cae3c862"},"kafka_consumer/datadog_checks/kafka_consumer/new_kafka_consumer.py":{"sha256":"f991ecb098b905dbb6330a536029999a7d22b74ecf3de961022d4635a4256240"},"kafka_consumer/requirements.in":{"sha256":"66b17623811ee3da5af1d844cebeb21af4c3fcc0c0560906f5bf52c19785e502"},"kafka_consumer/setup.py":{"sha256":"0257cda192662d45a4e20e1b54879446058ec95d1edfe00035cc228c392d21f3"}}}}
4 changes: 2 additions & 2 deletions LICENSE-3rdparty.csv
Expand Up @@ -26,8 +26,8 @@ cx-Oracle,PyPI,BSD-3-Clause,Anthony Tuininga
ddtrace,PyPI,BSD-3-Clause,"Datadog, Inc."
dnspython,PyPI,ISC,Bob Halley
enum34,PyPI,BSD-3-Clause,Ethan Furman
flup,PyPI,BSD-3-Clause,Allan Saddi
flup-py3,PyPI,BSD-3-Clause,Allan Saddi
flup,Vendor,BSD-3-Clause,Allan Saddi
flup-py3,Vendor,BSD-3-Clause,Allan Saddi
foundationdb,PyPI,Apache-2.0,FoundationDB
futures,PyPI,PSF,Brian Quinlan
gearman,PyPI,Apache-2.0,Matthew Tai
Expand Down
@@ -1,6 +1,12 @@
# (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)

# This file is autogenerated.
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands:
# ddev -x validate config -s <INTEGRATION_NAME>
# ddev -x validate models -s <INTEGRATION_NAME>

from .instance import InstanceConfig
from .shared import SharedConfig

Expand Down
@@ -1,6 +1,12 @@
# (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)

# This file is autogenerated.
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands:
# ddev -x validate config -s <INTEGRATION_NAME>
# ddev -x validate models -s <INTEGRATION_NAME>

from datadog_checks.base.utils.models.fields import get_default_field_value


Expand Down
@@ -1,6 +1,12 @@
# (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)

# This file is autogenerated.
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands:
# ddev -x validate config -s <INTEGRATION_NAME>
# ddev -x validate models -s <INTEGRATION_NAME>

from __future__ import annotations

from typing import Literal, Mapping, Optional, Sequence, Union
Expand Down
@@ -1,6 +1,12 @@
# (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)

# This file is autogenerated.
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands:
# ddev -x validate config -s <INTEGRATION_NAME>
# ddev -x validate models -s <INTEGRATION_NAME>

from __future__ import annotations

from typing import Optional
Expand Down
6 changes: 6 additions & 0 deletions activemq/datadog_checks/activemq/config_models/__init__.py
@@ -1,6 +1,12 @@
# (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)

# This file is autogenerated.
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands:
# ddev -x validate config -s <INTEGRATION_NAME>
# ddev -x validate models -s <INTEGRATION_NAME>

from .instance import InstanceConfig
from .shared import SharedConfig

Expand Down
6 changes: 6 additions & 0 deletions activemq/datadog_checks/activemq/config_models/defaults.py
@@ -1,6 +1,12 @@
# (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)

# This file is autogenerated.
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands:
# ddev -x validate config -s <INTEGRATION_NAME>
# ddev -x validate models -s <INTEGRATION_NAME>

from datadog_checks.base.utils.models.fields import get_default_field_value


Expand Down
6 changes: 6 additions & 0 deletions activemq/datadog_checks/activemq/config_models/instance.py
@@ -1,6 +1,12 @@
# (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)

# This file is autogenerated.
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands:
# ddev -x validate config -s <INTEGRATION_NAME>
# ddev -x validate models -s <INTEGRATION_NAME>

from __future__ import annotations

from typing import Optional, Sequence
Expand Down
6 changes: 6 additions & 0 deletions activemq/datadog_checks/activemq/config_models/shared.py
@@ -1,6 +1,12 @@
# (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)

# This file is autogenerated.
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands:
# ddev -x validate config -s <INTEGRATION_NAME>
# ddev -x validate models -s <INTEGRATION_NAME>

from __future__ import annotations

from typing import Any, Mapping, Optional, Sequence
Expand Down
2 changes: 1 addition & 1 deletion activemq/setup.py
Expand Up @@ -27,7 +27,7 @@ def get_dependencies():
return f.readlines()


CHECKS_BASE_REQ = 'datadog-checks-base>=15.7.0'
CHECKS_BASE_REQ = 'datadog-checks-base>=23.6.0'


setup(
Expand Down
@@ -1,6 +1,12 @@
# (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)

# This file is autogenerated.
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands:
# ddev -x validate config -s <INTEGRATION_NAME>
# ddev -x validate models -s <INTEGRATION_NAME>

from .instance import InstanceConfig
from .shared import SharedConfig

Expand Down
@@ -1,6 +1,12 @@
# (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)

# This file is autogenerated.
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands:
# ddev -x validate config -s <INTEGRATION_NAME>
# ddev -x validate models -s <INTEGRATION_NAME>

from datadog_checks.base.utils.models.fields import get_default_field_value


Expand Down
@@ -1,6 +1,12 @@
# (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)

# This file is autogenerated.
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands:
# ddev -x validate config -s <INTEGRATION_NAME>
# ddev -x validate models -s <INTEGRATION_NAME>

from __future__ import annotations

from typing import Any, Mapping, Optional, Sequence
Expand Down
@@ -1,6 +1,12 @@
# (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)

# This file is autogenerated.
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands:
# ddev -x validate config -s <INTEGRATION_NAME>
# ddev -x validate models -s <INTEGRATION_NAME>

from __future__ import annotations

from typing import Optional, Sequence
Expand Down
6 changes: 6 additions & 0 deletions aerospike/datadog_checks/aerospike/config_models/__init__.py
@@ -1,6 +1,12 @@
# (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)

# This file is autogenerated.
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands:
# ddev -x validate config -s <INTEGRATION_NAME>
# ddev -x validate models -s <INTEGRATION_NAME>

from .instance import InstanceConfig
from .shared import SharedConfig

Expand Down
6 changes: 6 additions & 0 deletions aerospike/datadog_checks/aerospike/config_models/defaults.py
@@ -1,6 +1,12 @@
# (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)

# This file is autogenerated.
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands:
# ddev -x validate config -s <INTEGRATION_NAME>
# ddev -x validate models -s <INTEGRATION_NAME>

from datadog_checks.base.utils.models.fields import get_default_field_value


Expand Down
6 changes: 6 additions & 0 deletions aerospike/datadog_checks/aerospike/config_models/instance.py
@@ -1,6 +1,12 @@
# (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)

# This file is autogenerated.
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands:
# ddev -x validate config -s <INTEGRATION_NAME>
# ddev -x validate models -s <INTEGRATION_NAME>

from __future__ import annotations

from typing import Any, Mapping, Optional, Sequence
Expand Down
6 changes: 6 additions & 0 deletions aerospike/datadog_checks/aerospike/config_models/shared.py
@@ -1,6 +1,12 @@
# (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)

# This file is autogenerated.
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands:
# ddev -x validate config -s <INTEGRATION_NAME>
# ddev -x validate models -s <INTEGRATION_NAME>

from __future__ import annotations

from typing import Optional, Sequence
Expand Down
6 changes: 6 additions & 0 deletions airflow/datadog_checks/airflow/config_models/__init__.py
@@ -1,6 +1,12 @@
# (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)

# This file is autogenerated.
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands:
# ddev -x validate config -s <INTEGRATION_NAME>
# ddev -x validate models -s <INTEGRATION_NAME>

from .instance import InstanceConfig
from .shared import SharedConfig

Expand Down

0 comments on commit 53e28f1

Please sign in to comment.