Dataset Viewer
Auto-converted to Parquet
instance_id
stringlengths
13
37
system
stringclasses
1 value
conversations
listlengths
2
4
file_path
stringclasses
929 values
DataDog__integrations-core-1013
You are Qwen, created by Alibaba Cloud. You are a helpful assistant.
[ { "from": "user", "value": "Please look through the following GitHub problem description and Repository structure and provide a list of files that one would need to edit to fix the problem.\n\n### GitHub Problem Description ###\n[nginx] NGINX Plus extended status API depreciated; Integration needs to use Plus API instead\nNGINX R13 was just released and it replaces the Extended Status API with the NGINX Plus API.\r\n\r\n[See Announcement](https://www.nginx.com/blog/nginx-plus-r13-released/)\r\n\r\nA future version of NGINX Plus will drop support for the Extended Status API. They are promising at least 6 months before they do so.\r\n\r\nThe Datadog integration for NGINX Plus depends on the Extended Status API (http status module).\r\n\r\nhttps://github.com/DataDog/integrations-core/tree/master/nginx\r\n\r\n### Extended Status API Deprecated\r\nThe previous on-the-fly reconfiguration and extended status APIs are now deprecated. The deprecated APIs will continue to be shipped with NGINX Plus for a minimum of 6 months, alongside the new NGINX Plus API. After this period, the old APIs will be removed in a subsequent release of NGINX Plus.\r\n\r\n### NGINX Plus API\r\nNGINX Plus R13 includes a new API that is unified under one single endpoint. Previous versions of NGINX Plus included separate upstream_conf and extended status APIs. The new API combines the functionality of both, and also includes a new Key-Value Store module which brings a variety of use cases for on-the-fly reconfiguration (discussed in the next section).\n\n\n###\n\n### Repository Structure ###\nkafka/\nhdfs_datanode/\n setup.py\n datadog_checks/\n __init__.py\n hdfs_datanode/\n hdfs_datanode.py\n __init__.py\npostgres/\n setup.py\n datadog_checks/\n __init__.py\n postgres/\n postgres.py\n __init__.py\nzk/\n setup.py\n datadog_checks/\n __init__.py\n zk/\n zk.py\n __init__.py\nhttp_check/\n setup.py\n datadog_checks/\n __init__.py\n http_check/\n http_check.py\n __init__.py\ndns_check/\n setup.py\n datadog_checks/\n __init__.py\n dns_check/\n dns_check.py\n __init__.py\nssh_check/\n setup.py\n datadog_checks/\n __init__.py\n ssh_check/\n __init__.py\n ssh_check.py\noracle/\n setup.py\n datadog_checks/\n __init__.py\n oracle/\n oracle.py\n __init__.py\ngearmand/\n setup.py\n datadog_checks/\n __init__.py\n gearmand/\n __init__.py\n gearmand.py\nkubernetes_state/\n setup.py\n datadog_checks/\n __init__.py\n kubernetes_state/\n __init__.py\n kubernetes_state.py\nkyototycoon/\n setup.py\n datadog_checks/\n __init__.py\n kyototycoon/\n kyototycoon.py\n __init__.py\nprocess/\n setup.py\n datadog_checks/\n __init__.py\n process/\n __init__.py\n process.py\nmarathon/\n setup.py\n datadog_checks/\n __init__.py\n marathon/\n marathon.py\n __init__.py\npostfix/\n setup.py\n datadog_checks/\n __init__.py\n postfix/\n postfix.py\n __init__.py\napache/\n setup.py\n datadog_checks/\n __init__.py\n apache/\n apache.py\n __init__.py\nspark/\n setup.py\n datadog_checks/\n __init__.py\n spark/\n __init__.py\n spark.py\nhdfs_namenode/\n setup.py\n datadog_checks/\n __init__.py\n hdfs_namenode/\n __init__.py\n hdfs_namenode.py\nmesos/\n setup.py\n datadog_checks/\n __init__.py\n mesos/\n mesos.py\n __init__.py\nmcache/\n setup.py\n datadog_checks/\n __init__.py\n mcache/\n mcache.py\n __init__.py\nriak/\n setup.py\n datadog_checks/\n __init__.py\n riak/\n __init__.py\n riak.py\nconsul/\n setup.py\n datadog_checks/\n __init__.py\n consul/\n consul.py\n __init__.py\nfluentd/\n setup.py\n datadog_checks/\n __init__.py\n fluentd/\n fluentd.py\n __init__.py\nmongo/\n setup.py\n datadog_checks/\n __init__.py\n mongo/\n mongo.py\n __init__.py\nkafka_consumer/\n setup.py\n datadog_checks/\n __init__.py\n kafka_consumer/\n kafka_consumer.py\n __init__.py\nsystem_core/\n setup.py\n datadog_checks/\n __init__.py\n system_core/\n system_core.py\n __init__.py\nyarn/\n setup.py\n datadog_checks/\n __init__.py\n yarn/\n yarn.py\n __init__.py\nwin32_event_log/\n setup.py\n datadog_checks/\n __init__.py\n win32_event_log/\n __init__.py\n win32_event_log.py\nrabbitmq/\n setup.py\n datadog_checks/\n __init__.py\n rabbitmq/\n rabbitmq.py\n __init__.py\niis/\n setup.py\n datadog_checks/\n __init__.py\n iis/\n __init__.py\n iis.py\nmapreduce/\n setup.py\n datadog_checks/\n __init__.py\n mapreduce/\n __init__.py\n mapreduce.py\nhdfs/\n setup.py\n datadog_checks/\n __init__.py\n hdfs/\n hdfs.py\n __init__.py\ntomcat/\njenkins/\n setup.py\n datadog_checks/\n __init__.py\n jenkins/\n jenkins.py\n __init__.py\ntwemproxy/\n setup.py\n datadog_checks/\n __init__.py\n twemproxy/\n twemproxy.py\n __init__.py\nceph/\n setup.py\n datadog_checks/\n __init__.py\n ceph/\n __init__.py\n ceph.py\ncacti/\n setup.py\n datadog_checks/\n __init__.py\n cacti/\n cacti.py\n __init__.py\nwmi_check/\n setup.py\n datadog_checks/\n __init__.py\n wmi_check/\n wmi_check.py\n __init__.py\ndirectory/\n setup.py\n datadog_checks/\n __init__.py\n directory/\n __init__.py\n directory.py\npowerdns_recursor/\n setup.py\n datadog_checks/\n __init__.py\n powerdns_recursor/\n powerdns_recursor.py\n __init__.py\ntcp_check/\n setup.py\n datadog_checks/\n __init__.py\n tcp_check/\n __init__.py\n tcp_check.py\nkong/\n setup.py\n datadog_checks/\n __init__.py\n kong/\n kong.py\n __init__.py\nsquid/\n setup.py\n datadog_checks/\n __init__.py\n squid/\n squid.py\n __init__.py\nmesos_master/\n setup.py\n datadog_checks/\n __init__.py\n mesos_master/\n mesos_master.py\n __init__.py\nsystem_swap/\n setup.py\n datadog_checks/\n __init__.py\n system_swap/\n system_swap.py\n __init__.py\ncouchbase/\n setup.py\n datadog_checks/\n __init__.py\n couchbase/\n couchbase.py\n __init__.py\ndotnetclr/\n setup.py\n datadog_checks/\n __init__.py\n dotnetclr/\n dotnetclr.py\n __init__.py\netcd/\n setup.py\n datadog_checks/\n __init__.py\n etcd/\n etcd.py\n __init__.py\nredisdb/\n setup.py\n datadog_checks/\n __init__.py\n redisdb/\n redisdb.py\n __init__.py\nriakcs/\n setup.py\n datadog_checks/\n __init__.py\n riakcs/\n riakcs.py\n __init__.py\nbtrfs/\n setup.py\n datadog_checks/\n __init__.py\n btrfs/\n btrfs.py\n __init__.py\nkube_dns/\n setup.py\n datadog_checks/\n __init__.py\n kube_dns/\n kube_dns.py\n __init__.py\naspdotnet/\n setup.py\n datadog_checks/\n __init__.py\n aspdotnet/\n aspdotnet.py\n __init__.py\ncassandra/\ncouch/\n setup.py\n datadog_checks/\n __init__.py\n couch/\n __init__.py\n couch.py\nmysql/\n setup.py\n datadog_checks/\n __init__.py\n mysql/\n mysql.py\n __init__.py\nagent_metrics/\n setup.py\n datadog_checks/\n __init__.py\n agent_metrics/\n agent_metrics.py\n __init__.py\npgbouncer/\n setup.py\n datadog_checks/\n __init__.py\n pgbouncer/\n __init__.py\n pgbouncer.py\nnetwork/\n setup.py\n datadog_checks/\n __init__.py\n network/\n network.py\n __init__.py\nteamcity/\n setup.py\n datadog_checks/\n __init__.py\n teamcity/\n teamcity.py\n __init__.py\ndisk/\n setup.py\n datadog_checks/\n __init__.py\n disk/\n disk.py\n __init__.py\nsupervisord/\n setup.py\n datadog_checks/\n __init__.py\n supervisord/\n __init__.py\n supervisord.py\ncassandra_nodetool/\n setup.py\n datadog_checks/\n __init__.py\n cassandra_nodetool/\n __init__.py\n cassandra_nodetool.py\ndatadog-checks-base/\n setup.py\n datadog_checks/\n __init__.py\nnfsstat/\n setup.py\n datadog_checks/\n __init__.py\n nfsstat/\n nfsstat.py\n __init__.py\nexchange_server/\n setup.py\n datadog_checks/\n __init__.py\n exchange_server/\n exchange_server.py\n __init__.py\nlinux_proc_extras/\n setup.py\n datadog_checks/\n __init__.py\n linux_proc_extras/\n linux_proc_extras.py\n __init__.py\nsolr/\ngunicorn/\n setup.py\n datadog_checks/\n __init__.py\n gunicorn/\n gunicorn.py\n __init__.py\nvarnish/\n setup.py\n datadog_checks/\n __init__.py\n varnish/\n varnish.py\n __init__.py\nlighttpd/\n setup.py\n datadog_checks/\n __init__.py\n lighttpd/\n __init__.py\n lighttpd.py\ntokumx/\n setup.py\n datadog_checks/\n __init__.py\n tokumx/\n tokumx.py\n __init__.py\nhaproxy/\n setup.py\n datadog_checks/\n __init__.py\n haproxy/\n haproxy.py\n __init__.py\nwindows_service/\n setup.py\n datadog_checks/\n __init__.py\n windows_service/\n windows_service.py\n __init__.py\ndocker_daemon/\n setup.py\n datadog_checks/\n __init__.py\n docker_daemon/\n docker_daemon.py\n __init__.py\nstatsd/\n setup.py\n datadog_checks/\n __init__.py\n statsd/\n __init__.py\n statsd.py\nsnmp/\n setup.py\n datadog_checks/\n __init__.py\n snmp/\n snmp.py\n __init__.py\nnginx/\n setup.py\n datadog_checks/\n __init__.py\n nginx/\n __init__.py\n nginx.py\nactivemq_xml/\n setup.py\n datadog_checks/\n __init__.py\n activemq_xml/\n __init__.py\n activemq_xml.py\nkubernetes/\n setup.py\n datadog_checks/\n __init__.py\n kubernetes/\n __init__.py\n kubernetes.py\ngitlab_runner/\n setup.py\n datadog_checks/\n __init__.py\n gitlab_runner/\n gitlab_runner.py\n __init__.py\nsqlserver/\n setup.py\n datadog_checks/\n __init__.py\n sqlserver/\n sqlserver.py\n __init__.py\ngitlab/\n setup.py\n datadog_checks/\n __init__.py\n gitlab/\n gitlab.py\n __init__.py\nntp/\n setup.py\n datadog_checks/\n __init__.py\n ntp/\n __init__.py\n ntp.py\npdh_check/\n setup.py\n datadog_checks/\n __init__.py\n pdh_check/\n __init__.py\n pdh_check.py\nphp_fpm/\n setup.py\n datadog_checks/\n __init__.py\n php_fpm/\n php_fpm.py\n __init__.py\ngo_expvar/\n setup.py\n datadog_checks/\n __init__.py\n go_expvar/\n go_expvar.py\n __init__.py\nelastic/\n setup.py\n datadog_checks/\n __init__.py\n elastic/\n elastic.py\n __init__.py\nopenstack/\n setup.py\n datadog_checks/\n __init__.py\n openstack/\n openstack.py\n __init__.py\nvsphere/\n setup.py\n datadog_checks/\n __init__.py\n vsphere/\n __init__.py\n vsphere.py\nmesos_slave/\n setup.py\n datadog_checks/\n __init__.py\n mesos_slave/\n mesos_slave.py\n __init__.py\nnagios/\n setup.py\n datadog_checks/\n __init__.py\n nagios/\n __init__.py\n nagios.py\n\n###\n\n\n\nPlease only provide the full path and return at most 5 files.\nThe returned files should be separated by new lines ordered by most to least important and wrapped with ```\nFor example:\n```\nfile1.py\nfile2.py\n```" }, { "from": "assistant", "value": "<think>\nBased on the problem description, the issue is that NGINX Plus has deprecated the Extended Status API that the Datadog integration for NGINX Plus depends on. The integration needs to be updated to use the new NGINX Plus API instead.\n\nThe problem statement specifically mentions:\n1. The integration for NGINX Plus is located at: https://github.com/DataDog/integrations-core/tree/master/nginx\n2. The Extended Status API is being deprecated in favor of the new NGINX Plus API\n\nLooking at the repository structure provided, I can see the nginx directory is part of the repository, which contains the NGINX integration code. Based on standard Python project organization, the main implementation would be in the nginx/datadog_checks/nginx/nginx.py file.\n\nThe files I need to focus on are:\n\n1. nginx/datadog_checks/nginx/nginx.py - This is likely the main file implementing the NGINX check, including the code that interacts with the Extended Status API. This file would need to be updated to use the new NGINX Plus API.\n\n2. nginx/setup.py - This might need updates if the integration's dependencies change due to the API change.\n\n3. nginx/datadog_checks/nginx/__init__.py - This might need updates if there are changes to what's exported from the module.\n\nWithout seeing the actual code, it's hard to know if there are other files related to tests or configuration that might also need updates. But based on the repository structure, these are the primary files that would need to be modified to transition from the Extended Status API to the new NGINX Plus API.\n\nI believe the nginx.py file is the most critical one to modify since it would contain the actual implementation for interacting with the NGINX Plus API. The setup.py and __init__.py files might need smaller adjustments or might not need changes at all, depending on how the integration is implemented.\n\nSo in order of importance, the files that would need to be edited are:\n1. nginx/datadog_checks/nginx/nginx.py\n2. nginx/setup.py\n3. nginx/datadog_checks/nginx/__init__.py\n\nThere might also be test files that need to be updated, but they aren't included in the repository structure provided.\n</think>\nLooking at the problem description, I need to identify files that would need to be modified to update the NGINX Plus integration from using the deprecated Extended Status API to the new NGINX Plus API.\n\nFrom the repository structure, I can see that the nginx integration is located in its own directory. The main implementation would be in the Python module files within that directory.\n\nHere are the files that would need to be edited:\n\n```\nnginx/datadog_checks/nginx/nginx.py\nnginx/setup.py\nnginx/datadog_checks/nginx/__init__.py\n```\n\nThe nginx.py file is the most important as it would contain the actual implementation code that interacts with the NGINX API. This file would need to be modified to use the new NGINX Plus API endpoint instead of the deprecated Extended Status API.\n\nThe setup.py file might need updates if there are dependency changes required for the new API implementation. The __init__.py file might need minor adjustments depending on what's exported from the module." } ]
null
DataDog__integrations-core-10414
You are Qwen, created by Alibaba Cloud. You are a helpful assistant.
[ { "from": "user", "value": "Please look through the following GitHub problem description and Repository structure and provide a list of files that one would need to edit to fix the problem.\n\n### GitHub Problem Description ###\nprocess monitor throws warnings on postgresql: Warning: Process 123 disappeared while scanning\nprocess monitor throws warnings on postgresql: Warning: Process 123 disappeared while scanning\n\n process\n -------\n - instance #0 [OK]\n - instance DataDog/dd-agent#1 [WARNING]\n Warning: Process 16039 disappeared while scanning\n Warning: Process 16177 disappeared while scanning\n Warning: Process 16178 disappeared while scanning\n Warning: Process 16193 disappeared while scanning\n Warning: Process 16194 disappeared while scanning\n Warning: Process 16198 disappeared while scanning\n\n```\n Warning: Process 15830 disappeared while scanning\n Warning: Process 15844 disappeared while scanning\n - instance DataDog/dd-agent#2 [OK]\n - instance DataDog/dd-agent#3 [OK]\n - instance DataDog/dd-agent#4 [OK]\n - instance DataDog/dd-agent#5 [OK]\n - instance DataDog/dd-agent#6 [OK]\n - instance DataDog/dd-agent#7 [OK]\n - instance DataDog/dd-agent#8 [OK]\n - instance DataDog/dd-agent#9 [OK]\n - Collected 43 metrics, 0 events & 11 service checks\n```\n\nIs is perfectly normal for postgresql to start and stop processes, and I see no reason why datadog would have to complain about that.\n\n\n\n###\n\n### Repository Structure ###\nibm_i/\n setup.py\n datadog_checks/\n __init__.py\n ibm_i/\n queries.py\n __about__.py\n check.py\n __init__.py\n query_script.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nkafka/\n setup.py\n datadog_checks/\n __init__.py\n kafka/\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ntwistlock/\n setup.py\n datadog_checks/\n __init__.py\n twistlock/\n __about__.py\n utils.py\n __init__.py\n config.py\n twistlock.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nhdfs_datanode/\n setup.py\n datadog_checks/\n __init__.py\n hdfs_datanode/\n hdfs_datanode.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nistio/\n setup.py\n datadog_checks/\n __init__.py\n istio/\n constants.py\n __about__.py\n check.py\n __init__.py\n metrics.py\n istio.py\n legacy_1_4.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\npostgres/\n setup.py\n datadog_checks/\n __init__.py\n postgres/\n metrics_cache.py\n __about__.py\n util.py\n postgres.py\n __init__.py\n version_utils.py\n config.py\n relationsmanager.py\n statement_samples.py\n statements.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nzk/\n setup.py\n datadog_checks/\n __init__.py\n zk/\n zk.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nhttp_check/\n setup.py\n datadog_checks/\n __init__.py\n http_check/\n http_check.py\n __about__.py\n adapters.py\n utils.py\n __init__.py\n config.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ndns_check/\n setup.py\n datadog_checks/\n __init__.py\n dns_check/\n dns_check.py\n __about__.py\n __init__.py\nssh_check/\n setup.py\n datadog_checks/\n __init__.py\n ssh_check/\n __about__.py\n __init__.py\n ssh_check.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\neks_fargate/\n setup.py\n conftest.py\n datadog_checks/\n __init__.py\n eks_fargate/\n __about__.py\n __init__.py\n eks_fargate.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\noracle/\n setup.py\n datadog_checks/\n __init__.py\n oracle/\n queries.py\n oracle.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ngearmand/\n setup.py\n datadog_checks/\n __init__.py\n gearmand/\n __about__.py\n __init__.py\n gearmand.py\nkubernetes_state/\n setup.py\n datadog_checks/\n __init__.py\n kubernetes_state/\n __about__.py\n __init__.py\n kubernetes_state.py\nkyototycoon/\n setup.py\n datadog_checks/\n __init__.py\n kyototycoon/\n kyototycoon.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nprocess/\n setup.py\n datadog_checks/\n __init__.py\n process/\n lock.py\n __about__.py\n __init__.py\n process.py\n cache.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\njournald/\n setup.py\n datadog_checks/\n __init__.py\n journald/\n __about__.py\n __init__.py\nmarathon/\n setup.py\n datadog_checks/\n __init__.py\n marathon/\n marathon.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nopenmetrics/\n setup.py\n datadog_checks/\n __init__.py\n openmetrics/\n openmetrics.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\npostfix/\n setup.py\n datadog_checks/\n __init__.py\n postfix/\n postfix.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\napache/\n setup.py\n datadog_checks/\n __init__.py\n apache/\n __about__.py\n apache.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\njboss_wildfly/\n setup.py\n datadog_checks/\n __init__.py\n jboss_wildfly/\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\namazon_msk/\n setup.py\n datadog_checks/\n __init__.py\n amazon_msk/\n __about__.py\n amazon_msk.py\n check.py\n utils.py\n __init__.py\n metrics.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nspark/\n setup.py\n datadog_checks/\n __init__.py\n spark/\n __about__.py\n __init__.py\n spark.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\npresto/\n setup.py\n datadog_checks/\n __init__.py\n presto/\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nhdfs_namenode/\n setup.py\n datadog_checks/\n __init__.py\n hdfs_namenode/\n __about__.py\n __init__.py\n hdfs_namenode.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nmcache/\n setup.py\n datadog_checks/\n __init__.py\n mcache/\n mcache.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nriak/\n setup.py\n datadog_checks/\n __init__.py\n riak/\n __about__.py\n __init__.py\n keys.py\n riak.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nconsul/\n setup.py\n datadog_checks/\n __init__.py\n consul/\n consul.py\n __about__.py\n __init__.py\n metrics.py\n common.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nibm_was/\n setup.py\n datadog_checks/\n __init__.py\n ibm_was/\n __about__.py\n __init__.py\n metrics.py\n validation.py\n ibm_was.py\nairflow/\n setup.py\n datadog_checks/\n __init__.py\n airflow/\n __about__.py\n airflow.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nfluentd/\n setup.py\n datadog_checks/\n __init__.py\n fluentd/\n fluentd.py\n __about__.py\n __init__.py\nopenshift/\n gen_clusterquota_metadata.py\nmongo/\n setup.py\n datadog_checks/\n __init__.py\n mongo/\n api.py\n mongo.py\n __about__.py\n utils.py\n __init__.py\n metrics.py\n common.py\n config.py\n config_models/\n validators.py\n instance.py\n deprecations.py\n __init__.py\n shared.py\n defaults.py\n collectors/\n jumbo_stats.py\n conn_pool_stats.py\n replica.py\n top.py\n coll_stats.py\n session_stats.py\n __init__.py\n custom_queries.py\n server_status.py\n db_stat.py\n index_stats.py\n base.py\n replication_info.py\n fsynclock.py\nkafka_consumer/\n setup.py\n datadog_checks/\n __init__.py\n kafka_consumer/\n constants.py\n new_kafka_consumer.py\n kafka_consumer.py\n __about__.py\n legacy_0_10_2.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nmapr/\n setup.py\n datadog_checks/\n __init__.py\n mapr/\n mapr.py\n __about__.py\n utils.py\n __init__.py\n common.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nsystem_core/\n setup.py\n datadog_checks/\n __init__.py\n system_core/\n system_core.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nyarn/\n setup.py\n datadog_checks/\n __init__.py\n yarn/\n __about__.py\n yarn.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nwin32_event_log/\n setup.py\n datadog_checks/\n __init__.py\n win32_event_log/\n constants.py\n filters.py\n __about__.py\n check.py\n utils.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\n legacy/\n __init__.py\n win32_event_log.py\ncilium/\n setup.py\n datadog_checks/\n __init__.py\n cilium/\n __about__.py\n __init__.py\n metrics.py\n cilium.py\nrabbitmq/\n setup.py\n datadog_checks/\n __init__.py\n rabbitmq/\n rabbitmq.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nkube_proxy/\n setup.py\n datadog_checks/\n __init__.py\n kube_proxy/\n __about__.py\n kube_proxy.py\n __init__.py\nopenldap/\n setup.py\n datadog_checks/\n __init__.py\n openldap/\n __about__.py\n openldap.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nsidekiq/\n setup.py\n datadog_checks/\n __init__.py\n sidekiq/\n __about__.py\n __init__.py\nkube_controller_manager/\n setup.py\n datadog_checks/\n __init__.py\n kube_controller_manager/\n __about__.py\n __init__.py\n kube_controller_manager.py\necs_fargate/\n setup.py\n datadog_checks/\n __init__.py\n ecs_fargate/\n __about__.py\n __init__.py\n ecs_fargate.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\niis/\n setup.py\n datadog_checks/\n __init__.py\n iis/\n __about__.py\n __init__.py\n iis.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nmarklogic/\n setup.py\n datadog_checks/\n __init__.py\n marklogic/\n constants.py\n api.py\n __about__.py\n check.py\n utils.py\n __init__.py\n config.py\n parsers/\n storage.py\n health.py\n __init__.py\n resources.py\n status.py\n common.py\n request.py\nvertica/\n setup.py\n datadog_checks/\n __init__.py\n vertica/\n vertica.py\n __about__.py\n views.py\n utils.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ntls/\n setup.py\n datadog_checks/\n __init__.py\n tls/\n __about__.py\n utils.py\n __init__.py\n tls.py\n tls_local.py\n tls_remote.py\n const.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nmapreduce/\n setup.py\n datadog_checks/\n __init__.py\n mapreduce/\n __about__.py\n __init__.py\n metrics.py\n mapreduce.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ntomcat/\n setup.py\n datadog_checks/\n __init__.py\n tomcat/\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ntwemproxy/\n setup.py\n datadog_checks/\n __init__.py\n twemproxy/\n __about__.py\n twemproxy.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nceph/\n setup.py\n datadog_checks/\n __init__.py\n ceph/\n __about__.py\n __init__.py\n ceph.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nopenstack_controller/\n setup.py\n datadog_checks/\n __init__.py\n openstack_controller/\n api.py\n __about__.py\n exceptions.py\n retry.py\n __init__.py\n openstack_controller.py\n settings.py\ncacti/\n setup.py\n datadog_checks/\n __init__.py\n cacti/\n cacti.py\n __about__.py\n __init__.py\nglusterfs/\n setup.py\n datadog_checks/\n __init__.py\n glusterfs/\n __about__.py\n check.py\n __init__.py\n metrics.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nwmi_check/\n setup.py\n datadog_checks/\n __init__.py\n wmi_check/\n wmi_check.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nharbor/\n setup.py\n datadog_checks/\n __init__.py\n harbor/\n harbor.py\n api.py\n __about__.py\n __init__.py\n common.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ncoredns/\n setup.py\n datadog_checks/\n __init__.py\n coredns/\n __about__.py\n __init__.py\n coredns.py\npan_firewall/\n setup.py\n datadog_checks/\n __init__.py\n pan_firewall/\n __about__.py\n __init__.py\ndirectory/\n setup.py\n datadog_checks/\n __init__.py\n directory/\n traverse.py\n __about__.py\n __init__.py\n config.py\n directory.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\npowerdns_recursor/\n setup.py\n datadog_checks/\n __init__.py\n powerdns_recursor/\n powerdns_recursor.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ndatadog_cluster_agent/\n setup.py\n datadog_checks/\n __init__.py\n datadog_cluster_agent/\n __about__.py\n check.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ntcp_check/\n setup.py\n datadog_checks/\n __init__.py\n tcp_check/\n __about__.py\n __init__.py\n tcp_check.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nazure_iot_edge/\n setup.py\n datadog_checks/\n __init__.py\n azure_iot_edge/\n __about__.py\n types.py\n check.py\n __init__.py\n metrics.py\n config.py\nkong/\n setup.py\n datadog_checks/\n __init__.py\n kong/\n __about__.py\n kong.py\n check.py\n __init__.py\n metrics.py\nsquid/\n setup.py\n datadog_checks/\n __init__.py\n squid/\n __about__.py\n squid.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nmesos_master/\n setup.py\n datadog_checks/\n __init__.py\n mesos_master/\n mesos_master.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nibm_mq/\n setup.py\n datadog_checks/\n __init__.py\n ibm_mq/\n errors.py\n __about__.py\n utils.py\n __init__.py\n metrics.py\n ibm_mq.py\n config.py\n connection.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\n stats/\n __init__.py\n base_stats.py\n queue_stats.py\n channel_stats.py\n collectors/\n stats_collector.py\n channel_metric_collector.py\n __init__.py\n queue_metric_collector.py\n metadata_collector.py\nsinglestore/\n setup.py\n datadog_checks/\n __init__.py\n singlestore/\n queries.py\n __about__.py\n check.py\n values_cleaner.py\n __init__.py\n config.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nsystem_swap/\n setup.py\n datadog_checks/\n __init__.py\n system_swap/\n system_swap.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ncouchbase/\n setup.py\n datadog_checks/\n __init__.py\n couchbase/\n couchbase_consts.py\n __about__.py\n couchbase.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nconfluent_platform/\n setup.py\n datadog_checks/\n __init__.py\n confluent_platform/\n __about__.py\n __init__.py\nactive_directory/\n setup.py\n datadog_checks/\n __init__.py\n active_directory/\n __about__.py\n active_directory.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nproxysql/\n setup.py\n datadog_checks/\n __init__.py\n proxysql/\n queries.py\n __about__.py\n ssl_utils.py\n __init__.py\n proxysql.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nignite/\n setup.py\n datadog_checks/\n __init__.py\n ignite/\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nkubelet/\n setup.py\n conftest.py\n datadog_checks/\n __init__.py\n kubelet/\n kubelet.py\n prometheus.py\n cadvisor.py\n summary.py\n __about__.py\n __init__.py\n common.py\nsap_hana/\n setup.py\n datadog_checks/\n __init__.py\n sap_hana/\n queries.py\n __about__.py\n exceptions.py\n utils.py\n __init__.py\n connection.py\n sap_hana.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nflink/\n setup.py\n datadog_checks/\n __init__.py\n flink/\n __about__.py\n __init__.py\nrethinkdb/\n setup.py\n datadog_checks/\n __init__.py\n rethinkdb/\n queries.py\n __about__.py\n types.py\n check.py\n version.py\n utils.py\n __init__.py\n queries_impl.py\n config.py\nsonarqube/\n setup.py\n datadog_checks/\n __init__.py\n sonarqube/\n constants.py\n __about__.py\n check.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ndotnetclr/\n setup.py\n datadog_checks/\n __init__.py\n dotnetclr/\n dotnetclr.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\netcd/\n setup.py\n datadog_checks/\n __init__.py\n etcd/\n __about__.py\n etcd.py\n __init__.py\n metrics.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nvoltdb/\n setup.py\n datadog_checks/\n __init__.py\n voltdb/\n queries.py\n client.py\n __about__.py\n types.py\n check.py\n __init__.py\n config.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nredisdb/\n setup.py\n datadog_checks/\n __init__.py\n redisdb/\n __about__.py\n redisdb.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nexternal_dns/\n setup.py\n datadog_checks/\n __init__.py\n external_dns/\n __about__.py\n external_dns.py\n __init__.py\n metrics.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nriakcs/\n setup.py\n datadog_checks/\n __init__.py\n riakcs/\n riakcs.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nscylla/\n setup.py\n datadog_checks/\n __init__.py\n scylla/\n __about__.py\n scylla.py\n __init__.py\n metrics.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\naerospike/\n setup.py\n datadog_checks/\n __init__.py\n aerospike/\n aerospike.py\n __about__.py\n __init__.py\nbtrfs/\n setup.py\n datadog_checks/\n __init__.py\n btrfs/\n btrfs.py\n __about__.py\n __init__.py\navi_vantage/\n setup.py\n datadog_checks/\n __init__.py\n avi_vantage/\n __about__.py\n check.py\n __init__.py\n metrics.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nhazelcast/\n setup.py\n datadog_checks/\n __init__.py\n hazelcast/\n __about__.py\n check.py\n utils.py\n __init__.py\nibm_db2/\n setup.py\n datadog_checks/\n __init__.py\n ibm_db2/\n queries.py\n __about__.py\n utils.py\n __init__.py\n ibm_db2.py\nkube_dns/\n setup.py\n datadog_checks/\n __init__.py\n kube_dns/\n kube_dns.py\n __about__.py\n __init__.py\naspdotnet/\n setup.py\n datadog_checks/\n __init__.py\n aspdotnet/\n __about__.py\n aspdotnet.py\n __init__.py\ncassandra/\n setup.py\n datadog_checks/\n __init__.py\n cassandra/\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ncouch/\n setup.py\n datadog_checks/\n __init__.py\n couch/\n errors.py\n __about__.py\n __init__.py\n couch.py\nmysql/\n setup.py\n datadog_checks/\n __init__.py\n mysql/\n mysql.py\n queries.py\n innodb_metrics.py\n __about__.py\n __init__.py\n version_utils.py\n config.py\n const.py\n statement_samples.py\n collection_utils.py\n statements.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nenvoy/\n setup.py\n datadog_checks/\n __init__.py\n envoy/\n errors.py\n envoy.py\n __about__.py\n utils.py\n __init__.py\n metrics.py\n parser.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\npgbouncer/\n setup.py\n datadog_checks/\n __init__.py\n pgbouncer/\n __about__.py\n __init__.py\n metrics.py\n pgbouncer.py\ntenable/\n setup.py\n datadog_checks/\n tenable/\n __about__.py\n __init__.py\nnetwork/\n setup.py\n datadog_checks/\n __init__.py\n network/\n __about__.py\n network.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nlinkerd/\n setup.py\n datadog_checks/\n __init__.py\n linkerd/\n linkerd.py\n __about__.py\n check.py\n __init__.py\n metrics.py\ndatadog_checks_downloader/\n setup.py\n datadog_checks/\n __init__.py\n downloader/\n download.py\n cli.py\n __about__.py\n exceptions.py\n __init__.py\n __main__.py\n parameters.py\nhyperv/\n setup.py\n datadog_checks/\n __init__.py\n hyperv/\n __about__.py\n __init__.py\n hyperv.py\n metrics.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nhive/\n setup.py\n datadog_checks/\n __init__.py\n hive/\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nteamcity/\n setup.py\n datadog_checks/\n __init__.py\n teamcity/\n __about__.py\n teamcity.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nambari/\n setup.py\n datadog_checks/\n __init__.py\n ambari/\n ambari.py\n __about__.py\n __init__.py\n common.py\ndisk/\n setup.py\n datadog_checks/\n __init__.py\n disk/\n __about__.py\n disk.py\n __init__.py\nsupervisord/\n setup.py\n datadog_checks/\n __init__.py\n supervisord/\n __about__.py\n __init__.py\n supervisord.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ncassandra_nodetool/\n setup.py\n datadog_checks/\n __init__.py\n cassandra_nodetool/\n __about__.py\n __init__.py\n cassandra_nodetool.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ncitrix_hypervisor/\n setup.py\n datadog_checks/\n __init__.py\n citrix_hypervisor/\n __about__.py\n check.py\n __init__.py\n metrics.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nactivemq/\n setup.py\n datadog_checks/\n __init__.py\n activemq/\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nnfsstat/\n setup.py\n datadog_checks/\n __init__.py\n nfsstat/\n nfsstat.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nexchange_server/\n setup.py\n datadog_checks/\n __init__.py\n exchange_server/\n __about__.py\n exchange_server.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nlinux_proc_extras/\n setup.py\n datadog_checks/\n __init__.py\n linux_proc_extras/\n linux_proc_extras.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nkube_scheduler/\n setup.py\n datadog_checks/\n __init__.py\n kube_scheduler/\n kube_scheduler.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nsolr/\n setup.py\n datadog_checks/\n __init__.py\n solr/\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ngunicorn/\n setup.py\n datadog_checks/\n __init__.py\n gunicorn/\n gunicorn.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ndatadog_checks_dev/\n setup.py\n datadog_checks/\n __init__.py\n dev/\n _env.py\n errors.py\n docker.py\n kube_port_forward.py\n subprocess.py\n http.py\n terraform.py\n compat.py\n __about__.py\n fs.py\n structures.py\n kind.py\n utils.py\n __init__.py\n __main__.py\n env.py\n ci.py\n ssh_tunnel.py\n jmx.py\n warn.py\n conditions.py\n spec.py\n plugin/\n pytest.py\n tox.py\n __init__.py\n tooling/\n constants.py\n catalog_const.py\n clean.py\n create.py\n datastructures.py\n dependencies.py\n release.py\n cli.py\n annotations.py\n utils.py\n __init__.py\n __main__.py\n signing.py\n git.py\n config.py\n manifest_utils.py\n trello.py\n github.py\n configuration/\n constants.py\n core.py\n utils.py\n __init__.py\n template.py\n spec.py\n consumers/\n example.py\n model.py\n __init__.py\n e2e/\n run.py\n core.py\n docker.py\n platform.py\n format.py\n local.py\n __init__.py\n config.py\n agent.py\n manifest_validator/\n constants.py\n __init__.py\n v2/\n validator.py\n __init__.py\n common/\n validator.py\n __init__.py\n v1/\n validator.py\n __init__.py\n schema.py\n templates/\n integration/\n check/\n {check_name}/\n setup.py\n datadog_checks/\n __init__.py\n {check_name}/\n __about__.py\n check.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\n jmx/\n {check_name}/\n setup.py\n datadog_checks/\n __init__.py\n {check_name}/\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\n logs/\n {check_name}/\n setup.py\n datadog_checks/\n __init__.py\n {check_name}/\n __about__.py\n __init__.py\n config_validator/\n config_block.py\n validator.py\n utils.py\n __init__.py\n validator_errors.py\n commands/\n run.py\n clean.py\n create.py\n __init__.py\n dep.py\n config.py\n console.py\n meta/\n prometheus.py\n changes.py\n create_commits.py\n __init__.py\n catalog.py\n jmx.py\n dashboard.py\n manifest.py\n scripts/\n metrics2md.py\n remove_labels.py\n github_user.py\n __init__.py\n upgrade_python.py\n windows/\n pdh.py\n __init__.py\n snmp/\n validate_snmp_profiles.py\n constants.py\n translate_profile.py\n validate_mib_filenames.py\n generate_profile.py\n __init__.py\n validators/\n validator.py\n utils.py\n __init__.py\n release/\n tag.py\n upload.py\n build.py\n make.py\n changelog.py\n __init__.py\n trello/\n rc_build_cards_updater.py\n __init__.py\n status.py\n update_rc_links.py\n fixed_cards_mover.py\n stats/\n __init__.py\n common.py\n stats.py\n show/\n changes.py\n ready.py\n __init__.py\n ci/\n __init__.py\n setup.py\n env/\n shell.py\n stop.py\n check.py\n __init__.py\n ls.py\n edit.py\n prune.py\n start.py\n reload.py\n validate/\n recommended_monitors.py\n jmx_metrics.py\n agent_reqs.py\n models.py\n eula.py\n http.py\n imports.py\n typos.py\n saved_views.py\n licenses.py\n __init__.py\n ci.py\n codeowners.py\n dep.py\n config.py\n all_validations.py\n dashboards.py\n manifest.py\n service_checks.py\n agent_signature.py\n package.py\n metadata.py\n readmes.py\n agent/\n requirements.py\n integrations_changelog.py\n changelog.py\n integrations.py\n __init__.py\n common.py\n docs/\n build.py\n serve.py\n utils.py\n __init__.py\n deploy.py\nvarnish/\n setup.py\n datadog_checks/\n __init__.py\n varnish/\n __about__.py\n varnish.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nlighttpd/\n setup.py\n datadog_checks/\n __init__.py\n lighttpd/\n __about__.py\n __init__.py\n lighttpd.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ntokumx/\n setup.py\n datadog_checks/\n __init__.py\n tokumx/\n __about__.py\n tokumx.py\n __init__.py\n vendor/\n __init__.py\n pymongo/\n ssl_context.py\n collation.py\n operations.py\n server_selectors.py\n results.py\n errors.py\n son_manipulator.py\n monitor.py\n periodic_executor.py\n bulk.py\n read_concern.py\n ssl_support.py\n write_concern.py\n max_staleness_selectors.py\n network.py\n monotonic.py\n thread_util.py\n auth.py\n read_preferences.py\n __init__.py\n ssl_match_hostname.py\n ismaster.py\n response.py\n settings.py\n mongo_replica_set_client.py\n helpers.py\n collection.py\n server_type.py\n common.py\n pool.py\n monitoring.py\n server.py\n command_cursor.py\n server_description.py\n database.py\n client_options.py\n cursor_manager.py\n topology.py\n topology_description.py\n cursor.py\n message.py\n uri_parser.py\n mongo_client.py\n bson/\n codec_options.py\n min_key.py\n timestamp.py\n errors.py\n max_key.py\n int64.py\n raw_bson.py\n tz_util.py\n binary.py\n __init__.py\n objectid.py\n regex.py\n py3compat.py\n code.py\n dbref.py\n son.py\n decimal128.py\n json_util.py\n gridfs/\n errors.py\n __init__.py\n grid_file.py\ndatadog_checks_base/\n setup.py\n datadog_checks/\n errors.py\n log.py\n __init__.py\n config.py\n utils/\n headers.py\n containers.py\n timeout.py\n subprocess_output.py\n platform.py\n __init__.py\n tailfile.py\n proxy.py\n tracing.py\n common.py\n limiter.py\n prometheus/\n metrics_pb2.py\n __init__.py\n functions.py\n checks/\n network_checks.py\n network.py\n __init__.py\n winwmi_check.py\n base.py\n prometheus_check/\n __init__.py\n win/\n __init__.py\n winpdh.py\n winpdh_stub.py\n winpdh_base.py\n wmi/\n counter_type.py\n __init__.py\n sampler.py\n openmetrics/\n base_check.py\n __init__.py\n mixins.py\n libs/\n timer.py\n thread_pool.py\n __init__.py\n vmware/\n all_metrics.py\n __init__.py\n basic_metrics.py\n wmi/\n __init__.py\n sampler.py\n prometheus/\n base_check.py\n prometheus_base.py\n __init__.py\n mixins.py\n stubs/\n _util.py\n aggregator.py\n __init__.py\n datadog_agent.py\n base/\n constants.py\n errors.py\n __about__.py\n types.py\n log.py\n __init__.py\n ddyaml.py\n config.py\n utils/\n constants.py\n headers.py\n containers.py\n aws.py\n time.py\n timeout.py\n subprocess_output.py\n date.py\n http.py\n platform.py\n serialization.py\n network.py\n tagging.py\n __init__.py\n tailfile.py\n tls.py\n tracing.py\n secrets.py\n common.py\n limiter.py\n functions.py\n models/\n types.py\n fields.py\n __init__.py\n validation/\n core.py\n utils.py\n __init__.py\n helpers.py\n metadata/\n constants.py\n core.py\n version.py\n utils.py\n __init__.py\n agent/\n debug.py\n utils.py\n __init__.py\n common.py\n packages.py\n memory.py\n db/\n core.py\n query.py\n statement_metrics.py\n types.py\n utils.py\n __init__.py\n transform.py\n sql.py\n prometheus/\n metrics_pb2.py\n __init__.py\n functions.py\n checks/\n network.py\n __init__.py\n base.py\n kube_leader/\n base_check.py\n record.py\n __init__.py\n mixins.py\n win/\n __init__.py\n winpdh.py\n winpdh_stub.py\n winpdh_base.py\n wmi/\n types.py\n counter_type.py\n __init__.py\n sampler.py\n openmetrics/\n base_check.py\n __init__.py\n mixins.py\n v2/\n scraper.py\n utils.py\n __init__.py\n transform.py\n base.py\n labels.py\n transformers/\n counter.py\n service_check.py\n rate.py\n temporal_percent.py\n counter_gauge.py\n summary.py\n __init__.py\n histogram.py\n gauge.py\n metadata.py\n time_elapsed.py\n kubelet_base/\n __init__.py\n base.py\n libs/\n timer.py\n prometheus.py\n thread_pool.py\n __init__.py\n vmware/\n all_metrics.py\n __init__.py\n basic_metrics.py\n prometheus/\n base_check.py\n prometheus_base.py\n __init__.py\n mixins.py\n stubs/\n _util.py\n aggregator.py\n similar.py\n log.py\n tagging.py\n __init__.py\n datadog_agent.py\n common.py\nhaproxy/\n setup.py\n datadog_checks/\n __init__.py\n haproxy/\n __about__.py\n check.py\n __init__.py\n metrics.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\n legacy/\n haproxy.py\n __init__.py\n version_utils.py\n const.py\nwindows_service/\n setup.py\n datadog_checks/\n __init__.py\n windows_service/\n windows_service.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ncrio/\n setup.py\n datadog_checks/\n __init__.py\n crio/\n __about__.py\n __init__.py\n crio.py\nnginx_ingress_controller/\n setup.py\n datadog_checks/\n __init__.py\n nginx_ingress_controller/\n __about__.py\n __init__.py\n nginx_ingress_controller.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nstatsd/\n setup.py\n datadog_checks/\n __init__.py\n statsd/\n __about__.py\n __init__.py\n statsd.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ndatadog_checks_dependency_provider/\n setup.py\n datadog_checks/\n __init__.py\n datadog_checks_dependency_provider/\n __about__.py\n __init__.py\ncockroachdb/\n setup.py\n datadog_checks/\n __init__.py\n cockroachdb/\n __about__.py\n cockroachdb.py\n __init__.py\n metrics.py\nhudi/\n setup.py\n datadog_checks/\n __init__.py\n hudi/\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ndruid/\n setup.py\n datadog_checks/\n __init__.py\n druid/\n __about__.py\n __init__.py\n druid.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ndatadog_checks_tests_helper/\n setup.py\n datadog_test_libs/\n __about__.py\n __init__.py\n win/\n __init__.py\n pdh_mocks.py\n utils/\n __init__.py\n mock_dns.py\ncisco_aci/\n setup.py\n datadog_checks/\n __init__.py\n cisco_aci/\n tenant.py\n cisco.py\n fabric.py\n api.py\n tags.py\n capacity.py\n aci_metrics.py\n __about__.py\n exceptions.py\n __init__.py\n helpers.py\nsnmp/\n setup.py\n datadog_checks/\n __init__.py\n snmp/\n models.py\n compat.py\n pysnmp_inspect.py\n __about__.py\n exceptions.py\n snmp.py\n types.py\n utils.py\n __init__.py\n metrics.py\n commands.py\n discovery.py\n pysnmp_types.py\n config.py\n resolver.py\n mibs.py\n parsing/\n parsed_metrics.py\n metric_tags.py\n __init__.py\n metrics.py\n metrics_types.py\nnginx/\n setup.py\n datadog_checks/\n __init__.py\n nginx/\n __about__.py\n __init__.py\n metrics.py\n nginx.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nactivemq_xml/\n setup.py\n datadog_checks/\n __init__.py\n activemq_xml/\n __about__.py\n __init__.py\n activemq_xml.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ngitlab_runner/\n setup.py\n datadog_checks/\n __init__.py\n gitlab_runner/\n gitlab_runner.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nhivemq/\n setup.py\n datadog_checks/\n __init__.py\n hivemq/\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nkube_metrics_server/\n setup.py\n datadog_checks/\n __init__.py\n kube_metrics_server/\n kube_metrics_server.py\n __about__.py\n __init__.py\nsqlserver/\n setup.py\n datadog_checks/\n __init__.py\n sqlserver/\n sqlserver.py\n __about__.py\n utils.py\n __init__.py\n metrics.py\n const.py\n connection.py\n statements.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ndocs/\n developer/\ngitlab/\n setup.py\n datadog_checks/\n __init__.py\n gitlab/\n __about__.py\n gitlab.py\n __init__.py\n metrics.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\npdh_check/\n setup.py\n datadog_checks/\n __init__.py\n pdh_check/\n __about__.py\n __init__.py\n pdh_check.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nprometheus/\n setup.py\n datadog_checks/\n __init__.py\n prometheus/\n prometheus.py\n __about__.py\n __init__.py\nphp_fpm/\n setup.py\n datadog_checks/\n __init__.py\n php_fpm/\n php_fpm.py\n __about__.py\n __init__.py\nkube_apiserver_metrics/\n setup.py\n datadog_checks/\n __init__.py\n kube_apiserver_metrics/\n __about__.py\n kube_apiserver_metrics.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ngo_expvar/\n setup.py\n datadog_checks/\n __init__.py\n go_expvar/\n __about__.py\n go_expvar.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ncloud_foundry_api/\n setup.py\n datadog_checks/\n __init__.py\n cloud_foundry_api/\n constants.py\n __about__.py\n cloud_foundry_api.py\n utils.py\n __init__.py\nelastic/\n setup.py\n datadog_checks/\n __init__.py\n elastic/\n elastic.py\n __about__.py\n utils.py\n __init__.py\n metrics.py\n config.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nclickhouse/\n setup.py\n datadog_checks/\n __init__.py\n clickhouse/\n queries.py\n __about__.py\n utils.py\n __init__.py\n clickhouse.py\nopenstack/\n setup.py\n datadog_checks/\n __init__.py\n openstack/\n openstack.py\n __about__.py\n __init__.py\nvsphere/\n setup.py\n datadog_checks/\n __init__.py\n vsphere/\n api_rest.py\n constants.py\n api.py\n event.py\n __about__.py\n types.py\n utils.py\n __init__.py\n metrics.py\n resource_filters.py\n vsphere.py\n config.py\n cache.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\n legacy/\n vsphere_legacy.py\n objects_queue.py\n errors.py\n cache_config.py\n __init__.py\n common.py\n metadata_cache.py\n mor_cache.py\nmesos_slave/\n setup.py\n datadog_checks/\n __init__.py\n mesos_slave/\n mesos_slave.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nvault/\n setup.py\n datadog_checks/\n __init__.py\n vault/\n errors.py\n __about__.py\n vault.py\n __init__.py\n metrics.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nnagios/\n setup.py\n datadog_checks/\n __init__.py\n nagios/\n __about__.py\n __init__.py\n nagios.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nsnowflake/\n setup.py\n datadog_checks/\n __init__.py\n snowflake/\n queries.py\n __about__.py\n check.py\n __init__.py\n config.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\n\n###\n\n\n\nPlease only provide the full path and return at most 5 files.\nThe returned files should be separated by new lines ordered by most to least important and wrapped with ```\nFor example:\n```\nfile1.py\nfile2.py\n```" }, { "from": "assistant", "value": "<think>\nThe issue is about the \"process monitor\" throwing warnings when processes disappear while scanning, specifically with PostgreSQL. The warning messages are of the form \"Warning: Process XYZ disappeared while scanning\". The description mentions that it's normal for PostgreSQL to start and stop processes, and the user thinks DataDog shouldn't be complaining about this behavior.\n\nGiven the repository structure, I need to identify the most relevant files that would need to be modified to fix this issue. Let's analyze:\n\n1. Since this is a process monitoring issue, we should look at the `process/` directory.\n2. The warning messages come from a process monitor, so we're likely looking for code that scans for processes and reports when they disappear.\n\nLooking at the `process/` directory, we have:\n- `setup.py`\n- `datadog_checks/__init__.py`\n- `datadog_checks/process/lock.py`\n- `datadog_checks/process/__about__.py`\n- `datadog_checks/process/__init__.py`\n- `datadog_checks/process/process.py` - This is likely the main implementation file\n- `datadog_checks/process/cache.py` - This might be relevant for caching process information\n- `datadog_checks/process/config_models/` - This directory contains configuration-related files\n\nThe most promising file is `datadog_checks/process/process.py`, which is likely the main implementation of the process check. This would be where the actual process scanning and warning generation occurs.\n\nAlso, the issue could be related to how process warnings are configured. The configuration models in `datadog_checks/process/config_models/` might be relevant. Specifically:\n- `datadog_checks/process/config_models/instance.py` - This likely defines the instance configuration options\n- `datadog_checks/process/config_models/validators.py` - This may contain validation logic for configuration options\n\nAdditionally, the warning message is specifically about PostgreSQL processes. While this could be a general issue in the process monitoring, it might be worth checking if there's any PostgreSQL-specific handling in:\n- `postgres/` directory\n- `datadog_checks/postgres/` - This is where PostgreSQL-specific checks would be\n\nHowever, the issue seems to be more about how the process monitor handles processes that disappear during scanning, rather than being specific to PostgreSQL's implementation. The mention of PostgreSQL is more about the context (that it's normal for PostgreSQL to have disappearing processes).\n\nBased on my analysis, the most important files to look at would be:\n\n1. `datadog_checks/process/process.py` - The main implementation file where process monitoring is likely happening\n2. `datadog_checks/process/cache.py` - Might be relevant for how process information is cached\n3. `datadog_checks/process/config_models/instance.py` - For configuration options that might control this behavior\n4. `datadog_checks/process/config_models/validators.py` - For validation of configuration options\n5. `datadog_checks/process/config_models/defaults.py` - For default configuration values\n\nThe fix likely involves either:\n1. Adding an option to suppress warnings about disappeared processes\n2. Modifying the warning logic to be less aggressive about reporting disappeared processes\n3. Implementing special handling for known cases like PostgreSQL\n</think>\nBased on the GitHub problem description, the issue is with the process monitor throwing warnings when PostgreSQL processes disappear during scanning, which is normal behavior for PostgreSQL. The most relevant files that would need to be edited to fix this issue are:\n\n```\ndatadog_checks/process/process.py\ndatadog_checks/process/config_models/instance.py\ndatadog_checks/process/config_models/defaults.py\ndatadog_checks/process/config_models/validators.py\ndatadog_checks/process/cache.py\n```" } ]
null
DataDog__integrations-core-1019
You are Qwen, created by Alibaba Cloud. You are a helpful assistant.
[ { "from": "user", "value": "Please look through the following GitHub problem description and Repository structure and provide a list of files that one would need to edit to fix the problem.\n\n### GitHub Problem Description ###\nSupport for \"headers\" configuration in haproxy.yaml?\nHi all, I'm interested in passing a custom header to my HAProxy integration in `haproxy.yaml`, like this:\r\n\r\n```\r\ninstances:\r\n - name: haproxy\r\n url: http://localhost:3000\r\n headers:\r\n service-route: haproxy-stats\r\n```\r\n\r\nHowever, that [doesn't appear to be supported](https://github.com/DataDog/integrations-core/blob/master/haproxy/check.py#L160). Any chance something like this could be added, or ideas for a workaround?\n\n\n###\n\n### Repository Structure ###\nkafka/\nhdfs_datanode/\n setup.py\n datadog_checks/\n __init__.py\n hdfs_datanode/\n hdfs_datanode.py\n __init__.py\npostgres/\n setup.py\n datadog_checks/\n __init__.py\n postgres/\n postgres.py\n __init__.py\nzk/\n setup.py\n datadog_checks/\n __init__.py\n zk/\n zk.py\n __init__.py\nhttp_check/\n setup.py\n datadog_checks/\n __init__.py\n http_check/\n http_check.py\n __init__.py\ndns_check/\n setup.py\n datadog_checks/\n __init__.py\n dns_check/\n dns_check.py\n __init__.py\nssh_check/\n setup.py\n datadog_checks/\n __init__.py\n ssh_check/\n __init__.py\n ssh_check.py\noracle/\n setup.py\n datadog_checks/\n __init__.py\n oracle/\n oracle.py\n __init__.py\ngearmand/\n setup.py\n datadog_checks/\n __init__.py\n gearmand/\n __init__.py\n gearmand.py\nkubernetes_state/\n setup.py\n datadog_checks/\n __init__.py\n kubernetes_state/\n __init__.py\n kubernetes_state.py\nkyototycoon/\n setup.py\n datadog_checks/\n __init__.py\n kyototycoon/\n kyototycoon.py\n __init__.py\nprocess/\n setup.py\n datadog_checks/\n __init__.py\n process/\n __init__.py\n process.py\nmarathon/\n setup.py\n datadog_checks/\n __init__.py\n marathon/\n marathon.py\n __init__.py\npostfix/\n setup.py\n datadog_checks/\n __init__.py\n postfix/\n postfix.py\n __init__.py\napache/\n setup.py\n datadog_checks/\n __init__.py\n apache/\n apache.py\n __init__.py\nspark/\n setup.py\n datadog_checks/\n __init__.py\n spark/\n __init__.py\n spark.py\nhdfs_namenode/\n setup.py\n datadog_checks/\n __init__.py\n hdfs_namenode/\n __init__.py\n hdfs_namenode.py\nmesos/\n setup.py\n datadog_checks/\n __init__.py\n mesos/\n mesos.py\n __init__.py\nmcache/\n setup.py\n datadog_checks/\n __init__.py\n mcache/\n mcache.py\n __init__.py\nriak/\n setup.py\n datadog_checks/\n __init__.py\n riak/\n __init__.py\n riak.py\nconsul/\n setup.py\n datadog_checks/\n __init__.py\n consul/\n consul.py\n __init__.py\nfluentd/\n setup.py\n datadog_checks/\n __init__.py\n fluentd/\n fluentd.py\n __init__.py\nmongo/\n setup.py\n datadog_checks/\n __init__.py\n mongo/\n mongo.py\n __init__.py\nkafka_consumer/\n setup.py\n datadog_checks/\n __init__.py\n kafka_consumer/\n kafka_consumer.py\n __init__.py\nsystem_core/\n setup.py\n datadog_checks/\n __init__.py\n system_core/\n system_core.py\n __init__.py\nyarn/\n setup.py\n datadog_checks/\n __init__.py\n yarn/\n yarn.py\n __init__.py\nwin32_event_log/\n setup.py\n datadog_checks/\n __init__.py\n win32_event_log/\n __init__.py\n win32_event_log.py\nrabbitmq/\n setup.py\n datadog_checks/\n __init__.py\n rabbitmq/\n rabbitmq.py\n __init__.py\niis/\n setup.py\n datadog_checks/\n __init__.py\n iis/\n __init__.py\n iis.py\nmapreduce/\n setup.py\n datadog_checks/\n __init__.py\n mapreduce/\n __init__.py\n mapreduce.py\nhdfs/\n setup.py\n datadog_checks/\n __init__.py\n hdfs/\n hdfs.py\n __init__.py\ntomcat/\njenkins/\n setup.py\n datadog_checks/\n __init__.py\n jenkins/\n jenkins.py\n __init__.py\ntwemproxy/\n setup.py\n datadog_checks/\n __init__.py\n twemproxy/\n twemproxy.py\n __init__.py\nceph/\n setup.py\n datadog_checks/\n __init__.py\n ceph/\n __init__.py\n ceph.py\ncacti/\n setup.py\n datadog_checks/\n __init__.py\n cacti/\n cacti.py\n __init__.py\nwmi_check/\n setup.py\n datadog_checks/\n __init__.py\n wmi_check/\n wmi_check.py\n __init__.py\ndirectory/\n setup.py\n datadog_checks/\n __init__.py\n directory/\n __init__.py\n directory.py\npowerdns_recursor/\n setup.py\n datadog_checks/\n __init__.py\n powerdns_recursor/\n powerdns_recursor.py\n __init__.py\ntcp_check/\n setup.py\n datadog_checks/\n __init__.py\n tcp_check/\n __init__.py\n tcp_check.py\nkong/\n setup.py\n datadog_checks/\n __init__.py\n kong/\n kong.py\n __init__.py\nsquid/\n setup.py\n datadog_checks/\n __init__.py\n squid/\n squid.py\n __init__.py\nmesos_master/\n setup.py\n datadog_checks/\n __init__.py\n mesos_master/\n mesos_master.py\n __init__.py\nsystem_swap/\n setup.py\n datadog_checks/\n __init__.py\n system_swap/\n system_swap.py\n __init__.py\ncouchbase/\n setup.py\n datadog_checks/\n __init__.py\n couchbase/\n couchbase.py\n __init__.py\ndotnetclr/\n setup.py\n datadog_checks/\n __init__.py\n dotnetclr/\n dotnetclr.py\n __init__.py\netcd/\n setup.py\n datadog_checks/\n __init__.py\n etcd/\n etcd.py\n __init__.py\nredisdb/\n setup.py\n datadog_checks/\n __init__.py\n redisdb/\n redisdb.py\n __init__.py\nriakcs/\n setup.py\n datadog_checks/\n __init__.py\n riakcs/\n riakcs.py\n __init__.py\nbtrfs/\n setup.py\n datadog_checks/\n __init__.py\n btrfs/\n btrfs.py\n __init__.py\nkube_dns/\n setup.py\n datadog_checks/\n __init__.py\n kube_dns/\n kube_dns.py\n __init__.py\naspdotnet/\n setup.py\n datadog_checks/\n __init__.py\n aspdotnet/\n aspdotnet.py\n __init__.py\ncassandra/\ncouch/\n setup.py\n datadog_checks/\n __init__.py\n couch/\n __init__.py\n couch.py\nmysql/\n setup.py\n datadog_checks/\n __init__.py\n mysql/\n mysql.py\n __init__.py\nagent_metrics/\n setup.py\n datadog_checks/\n __init__.py\n agent_metrics/\n agent_metrics.py\n __init__.py\npgbouncer/\n setup.py\n datadog_checks/\n __init__.py\n pgbouncer/\n __init__.py\n pgbouncer.py\nnetwork/\n setup.py\n datadog_checks/\n __init__.py\n network/\n network.py\n __init__.py\nteamcity/\n setup.py\n datadog_checks/\n __init__.py\n teamcity/\n teamcity.py\n __init__.py\ndisk/\n setup.py\n datadog_checks/\n __init__.py\n disk/\n disk.py\n __init__.py\nsupervisord/\n setup.py\n datadog_checks/\n __init__.py\n supervisord/\n __init__.py\n supervisord.py\ncassandra_nodetool/\n setup.py\n datadog_checks/\n __init__.py\n cassandra_nodetool/\n __init__.py\n cassandra_nodetool.py\ndatadog-checks-base/\n setup.py\n datadog_checks/\n __init__.py\nnfsstat/\n setup.py\n datadog_checks/\n __init__.py\n nfsstat/\n nfsstat.py\n __init__.py\nexchange_server/\n setup.py\n datadog_checks/\n __init__.py\n exchange_server/\n exchange_server.py\n __init__.py\nlinux_proc_extras/\n setup.py\n datadog_checks/\n __init__.py\n linux_proc_extras/\n linux_proc_extras.py\n __init__.py\nsolr/\ngunicorn/\n setup.py\n datadog_checks/\n __init__.py\n gunicorn/\n gunicorn.py\n __init__.py\nvarnish/\n setup.py\n datadog_checks/\n __init__.py\n varnish/\n varnish.py\n __init__.py\nlighttpd/\n setup.py\n datadog_checks/\n __init__.py\n lighttpd/\n __init__.py\n lighttpd.py\ntokumx/\n setup.py\n datadog_checks/\n __init__.py\n tokumx/\n tokumx.py\n __init__.py\nhaproxy/\n setup.py\n datadog_checks/\n __init__.py\n haproxy/\n haproxy.py\n __init__.py\nwindows_service/\n setup.py\n datadog_checks/\n __init__.py\n windows_service/\n windows_service.py\n __init__.py\ndocker_daemon/\n setup.py\n datadog_checks/\n __init__.py\n docker_daemon/\n docker_daemon.py\n __init__.py\nstatsd/\n setup.py\n datadog_checks/\n __init__.py\n statsd/\n __init__.py\n statsd.py\nsnmp/\n setup.py\n datadog_checks/\n __init__.py\n snmp/\n snmp.py\n __init__.py\nnginx/\n setup.py\n datadog_checks/\n __init__.py\n nginx/\n __init__.py\n nginx.py\nactivemq_xml/\n setup.py\n datadog_checks/\n __init__.py\n activemq_xml/\n __init__.py\n activemq_xml.py\nkubernetes/\n setup.py\n datadog_checks/\n __init__.py\n kubernetes/\n __init__.py\n kubernetes.py\ngitlab_runner/\n setup.py\n datadog_checks/\n __init__.py\n gitlab_runner/\n gitlab_runner.py\n __init__.py\nsqlserver/\n setup.py\n datadog_checks/\n __init__.py\n sqlserver/\n sqlserver.py\n __init__.py\ngitlab/\n setup.py\n datadog_checks/\n __init__.py\n gitlab/\n gitlab.py\n __init__.py\nntp/\n setup.py\n datadog_checks/\n __init__.py\n ntp/\n __init__.py\n ntp.py\npdh_check/\n setup.py\n datadog_checks/\n __init__.py\n pdh_check/\n __init__.py\n pdh_check.py\nphp_fpm/\n setup.py\n datadog_checks/\n __init__.py\n php_fpm/\n php_fpm.py\n __init__.py\ngo_expvar/\n setup.py\n datadog_checks/\n __init__.py\n go_expvar/\n go_expvar.py\n __init__.py\nelastic/\n setup.py\n datadog_checks/\n __init__.py\n elastic/\n elastic.py\n __init__.py\nopenstack/\n setup.py\n datadog_checks/\n __init__.py\n openstack/\n openstack.py\n __init__.py\nvsphere/\n setup.py\n datadog_checks/\n __init__.py\n vsphere/\n __init__.py\n vsphere.py\nmesos_slave/\n setup.py\n datadog_checks/\n __init__.py\n mesos_slave/\n mesos_slave.py\n __init__.py\nnagios/\n setup.py\n datadog_checks/\n __init__.py\n nagios/\n __init__.py\n nagios.py\n\n###\n\n\n\nPlease only provide the full path and return at most 5 files.\nThe returned files should be separated by new lines ordered by most to least important and wrapped with ```\nFor example:\n```\nfile1.py\nfile2.py\n```" }, { "from": "assistant", "value": "<think>\nThe GitHub problem description is about adding \"headers\" configuration support in the HAProxy integration for Datadog. According to the issue, the user wants to be able to add custom headers to HAProxy requests in the configuration file (`haproxy.yaml`), but this functionality doesn't seem to be supported based on the link they provided to `check.py` in the HAProxy integration.\n\nLooking at the repository structure, I need to identify which files would need to be modified to add this feature.\n\nFirst, I need to find the HAProxy integration files in the repository:\n- I can see there's a `haproxy/` directory which will contain the relevant code\n- Under `haproxy/`, there's a structure similar to other integrations with:\n - `setup.py`\n - `datadog_checks/__init__.py`\n - `datadog_checks/haproxy/haproxy.py`\n - `datadog_checks/haproxy/__init__.py`\n\nBased on the user's problem description and the linked file (`check.py`), it seems that we need to modify the file that handles the HTTP requests to the HAProxy stats endpoint. \n\nThe user's link points to `haproxy/check.py`, but in the repository structure provided, I don't see a `check.py` file directly in the HAProxy directory. Instead, the main implementation is likely in `datadog_checks/haproxy/haproxy.py`.\n\nFor a complete solution, I should also consider:\n1. The configuration file schema/example that defines the available options for the integration\n2. Documentation files that should be updated to reflect the new feature\n3. Tests that would need to be updated to cover the new functionality\n\nHowever, the repository structure provided doesn't show configuration files, documentation, or test files explicitly.\n\nSince the user mentioned looking at `check.py` but we see `haproxy.py` in the structure, it's possible that either:\n1. The file was renamed from `check.py` to `haproxy.py`\n2. `check.py` is a function or class within `haproxy.py`\n3. The repository structure provided is not complete or is from a different version\n\nWithout seeing the exact content of the files, I'll have to make some assumptions based on the typical patterns of Datadog integrations.\n\nThe most important files to modify would be:\n\n1. `haproxy/datadog_checks/haproxy/haproxy.py` - This likely contains the main implementation of the check, including the HTTP request logic that would need to be updated to support custom headers.\n\n2. The configuration file (not shown in the structure) that defines the schema for the HAProxy check. This would typically be a file like `haproxy/assets/configuration/spec.yaml` or something similar.\n\n3. Any documentation files that describe the configuration options for the integration.\n\n4. Test files that would need to be updated to test the new functionality.\n\n5. Possibly the `setup.py` file if the change requires any dependency updates.\n\nSince we don't see all these files in the structure provided, I'll focus on the most likely files that need to be modified from what I can see.\n</think>\nBased on the GitHub problem description, the user wants to add support for custom headers in the HAProxy integration configuration. The link they provided points to `check.py`, but in the repository structure it appears the main implementation file is `haproxy.py`.\n\nLooking at the repository structure and understanding the issue, here are the files that would most likely need to be edited to implement this feature:\n\n```\nhaproxy/datadog_checks/haproxy/haproxy.py\nhaproxy/setup.py\n```\n\nThe main file that needs modification is `haproxy/datadog_checks/haproxy/haproxy.py` which would contain the HTTP request logic that needs to be updated to support custom headers from the configuration. The `setup.py` file might need updates if there are any dependency changes required for this feature.\n\nNote: The repository structure doesn't show configuration examples or test files, which would also typically need updates for a complete implementation." } ]
null
DataDog__integrations-core-10093
You are Qwen, created by Alibaba Cloud. You are a helpful assistant.
[ { "from": "user", "value": "Please look through the following GitHub problem description and Repository structure and provide a list of files that one would need to edit to fix the problem.\n\n### GitHub Problem Description ###\nElasticsearch check fails when used with Opensearch\n**Note:** If you have a feature request, you should [contact support](https://docs.datadoghq.com/help/) so the request can be properly tracked.\r\n\r\n**Output of the [info page](https://docs.datadoghq.com/agent/guide/agent-commands/#agent-status-and-information)**\r\n\r\n```text\r\n elastic (1.24.0)\r\n ----------------\r\n Instance ID: elastic:e6126c6cf9b8eebe [ERROR]\r\n Configuration Source: file:/etc/datadog-agent/conf.d/elastic.yaml\r\n Total Runs: 121\r\n Metric Samples: Last Run: 0, Total: 0\r\n Events: Last Run: 0, Total: 0\r\n Service Checks: Last Run: 1, Total: 121\r\n Average Execution Time : 13ms\r\n Last Execution Date : 2021-09-10 06:00:16 UTC (1631253616000)\r\n Last Successful Execution Date : Never\r\n metadata:\r\n version.major: 1\r\n version.minor: 0\r\n version.patch: 0\r\n version.raw: 1.0.0\r\n version.scheme: semver\r\n Error: 400 Client Error: Bad Request for url: http://localhost:9200/_nodes/_local/stats?all=true\r\n Traceback (most recent call last):\r\n File \"/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/base/checks/base.py\", line 897, in run\r\n self.check(instance)\r\n File \"/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/elastic/elastic.py\", line 79, in check\r\n stats_data = self._get_data(stats_url)\r\n File \"/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/elastic/elastic.py\", line 232, in _get_data\r\n resp.raise_for_status()\r\n File \"/opt/datadog-agent/embedded/lib/python3.8/site-packages/requests/models.py\", line 940, in raise_for_status\r\n raise HTTPError(http_error_msg, response=self)\r\n requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://localhost:9200/_nodes/_local/stats?all=true\r\n\r\n```\r\n\r\n**Additional environment details (Operating System, Cloud provider, etc):**\r\nFedora 33 running agent inside systemd-nspawn container. Container is running Opensearch 1.0.0 and datadog agent has been configured to monitor it.\r\n\r\n**Steps to reproduce the issue:**\r\n1. Install and run Opensearch\r\n2. Configure datadog agent Elasticsearch integration to monitor it\r\n3. Observe that the Elasticsearch check is failing\r\n\r\n**Describe the results you received:**\r\n\r\nThe Elasticsearch check fails in the following way:\r\n```text\r\n2021-09-09 12:48:49 UTC | CORE | INFO | (pkg/collector/runner/runner.go:261 in work) | check:elastic | Running check\r\n2021-09-09 12:48:49 UTC | CORE | DEBUG | (pkg/collector/python/check.go:81 in runCheck) | Running python check elastic elastic:878a21a7a9cbcd49\r\n2021-09-09 12:48:49 UTC | CORE | DEBUG | (pkg/collector/python/datadog_agent.go:126 in LogMessage) | - | (connectionpool.py:226) | Starting new HTTP connection (1): localhost:9200\r\n2021-09-09 12:48:49 UTC | CORE | DEBUG | (pkg/collector/python/datadog_agent.go:126 in LogMessage) | - | (connectionpool.py:433) | http://localhost:9200 \"GET / HTTP/1.1\" 200 349\r\n2021-09-09 12:48:49 UTC | CORE | DEBUG | (pkg/collector/python/datadog_agent.go:126 in LogMessage) | elastic:878a21a7a9cbcd49 | (elastic.py:247) | request to url http://localhost:9200 returned: <Response [200]>\r\n2021-09-09 12:48:49 UTC | CORE | DEBUG | (pkg/collector/python/datadog_agent.go:126 in LogMessage) | elastic:878a21a7a9cbcd49 | (elastic.py:147) | Elasticsearch version is [1, 0, 0]\r\n2021-09-09 12:48:49 UTC | CORE | DEBUG | (pkg/collector/python/datadog_agent.go:126 in LogMessage) | - | (connectionpool.py:226) | Starting new HTTP connection (1): localhost:9200\r\n2021-09-09 12:48:49 UTC | CORE | DEBUG | (pkg/collector/python/datadog_agent.go:126 in LogMessage) | - | (connectionpool.py:433) | http://localhost:9200 \"GET /_nodes/_local/stats?all=true HTTP/1.1\" 400 155\r\n2021-09-09 12:48:49 UTC | CORE | ERROR | (pkg/collector/runner/runner.go:292 in work) | Error running check elastic: [{\"message\": \"400 Client Error: Bad Request for url: http://localhost:9200/_nodes/_local/stats?all=true\", \"traceback\": \"Traceback (most recent call last):\\n File \\\"/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/base/checks/base.py\\\", line 897, in run\\n self.check(instance)\\n File \\\"/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/elastic/elastic.py\\\", line 79, in check\\n stats_data = self._get_data(stats_url)\\n File \\\"/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/elastic/elastic.py\\\", line 232, in _get_data\\n resp.raise_for_status()\\n File \\\"/opt/datadog-agent/embedded/lib/python3.8/site-packages/requests/models.py\\\", line 940, in raise_for_status\\n raise HTTPError(http_error_msg, response=self)\\nrequests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://localhost:9200/_nodes/_local/stats?all=true\\n\"}]\r\n2021-09-09 12:48:49 UTC | CORE | INFO | (pkg/collector/runner/runner.go:327 in work) | check:elastic | Done running check\r\n```\r\n\r\n**Describe the results you expected:**\r\n\r\nOpensearch 1.0.0 is fully compatible with Elasticsearch 7.10.2 and datadog agent should be able to monitor it in the same way as the Elasticsearch.\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n\r\nThe issue seems to be that since Opensearch is reporting its version as `1.0.0` the Elasticsearch check interprets it as Elasticsearch `1.0.0` and for this reason adds `?all=true` to the URL when calling `/_nodes/_local/stats` API to collect the node stats. https://github.com/DataDog/integrations-core/blob/40d9ceb14c57c109e8f6371b1a4c677fa33e1669/elastic/datadog_checks/elastic/elastic.py#L215\r\n\r\nThe `?all=true` parameter has been depricated since Elasticsearch version `5.0.0` and results in HTTP 400 error when used with newer versions of Elasticsearch. All is working well when Elasticsearch check is monitoring Opensearch if `?all=true` has been left out when making requests to `/_nodes/_local/stats`.\r\n\r\nThe version information returned from Opensearch contains field called `distribution` which has value `opensearch` that could be used to detect that the check is actually running against an Opensearch server. Example here:\r\n```text\r\n{'name': 'os-355e47a7-1', 'cluster_name': 'fc7a706a-9c51-40a1-9e1b-953d1546caa0', 'cluster_uuid': 'HrCNW5uhSZKtHxlJQz444g', 'version': {'distribution': 'opensearch', 'number': '1.0.0', 'build_type': 'unknown', 'build_hash': 'unknown', 'build_date': '2021-08-13T12:38:05.881264Z', 'build_snapshot': False, 'lucene_version': '8.8.2', 'minimum_wire_compatibility_version': '6.8.0', 'minimum_index_compatibility_version': '6.0.0-beta1'}, 'tagline': 'The OpenSearch Project: https://opensearch.org/'}\r\n```\n\n\n###\n\n### Repository Structure ###\nkafka/\n setup.py\n datadog_checks/\n __init__.py\n kafka/\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ntwistlock/\n setup.py\n datadog_checks/\n __init__.py\n twistlock/\n __about__.py\n utils.py\n __init__.py\n config.py\n twistlock.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nhdfs_datanode/\n setup.py\n datadog_checks/\n __init__.py\n hdfs_datanode/\n hdfs_datanode.py\n __about__.py\n __init__.py\nistio/\n setup.py\n datadog_checks/\n __init__.py\n istio/\n constants.py\n __about__.py\n check.py\n __init__.py\n metrics.py\n istio.py\n legacy_1_4.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\npostgres/\n setup.py\n datadog_checks/\n __init__.py\n postgres/\n metrics_cache.py\n __about__.py\n util.py\n postgres.py\n __init__.py\n version_utils.py\n config.py\n relationsmanager.py\n statement_samples.py\n statements.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nzk/\n setup.py\n datadog_checks/\n __init__.py\n zk/\n zk.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nhttp_check/\n setup.py\n datadog_checks/\n __init__.py\n http_check/\n http_check.py\n __about__.py\n adapters.py\n utils.py\n __init__.py\n config.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ndns_check/\n setup.py\n datadog_checks/\n __init__.py\n dns_check/\n dns_check.py\n __about__.py\n __init__.py\nssh_check/\n setup.py\n datadog_checks/\n __init__.py\n ssh_check/\n __about__.py\n __init__.py\n ssh_check.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\neks_fargate/\n setup.py\n conftest.py\n datadog_checks/\n __init__.py\n eks_fargate/\n __about__.py\n __init__.py\n eks_fargate.py\noracle/\n setup.py\n datadog_checks/\n __init__.py\n oracle/\n queries.py\n oracle.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ngearmand/\n setup.py\n datadog_checks/\n __init__.py\n gearmand/\n __about__.py\n __init__.py\n gearmand.py\nkubernetes_state/\n setup.py\n datadog_checks/\n __init__.py\n kubernetes_state/\n __about__.py\n __init__.py\n kubernetes_state.py\nkyototycoon/\n setup.py\n datadog_checks/\n __init__.py\n kyototycoon/\n kyototycoon.py\n __about__.py\n __init__.py\nprocess/\n setup.py\n datadog_checks/\n __init__.py\n process/\n lock.py\n __about__.py\n __init__.py\n process.py\n cache.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\njournald/\n setup.py\n datadog_checks/\n __init__.py\n journald/\n __about__.py\n __init__.py\nmarathon/\n setup.py\n datadog_checks/\n __init__.py\n marathon/\n marathon.py\n __about__.py\n __init__.py\nopenmetrics/\n setup.py\n datadog_checks/\n __init__.py\n openmetrics/\n openmetrics.py\n __about__.py\n __init__.py\npostfix/\n setup.py\n datadog_checks/\n __init__.py\n postfix/\n postfix.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\napache/\n setup.py\n datadog_checks/\n __init__.py\n apache/\n __about__.py\n apache.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\njboss_wildfly/\n setup.py\n datadog_checks/\n __init__.py\n jboss_wildfly/\n __about__.py\n __init__.py\namazon_msk/\n setup.py\n datadog_checks/\n __init__.py\n amazon_msk/\n __about__.py\n amazon_msk.py\n check.py\n __init__.py\n metrics.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nspark/\n setup.py\n datadog_checks/\n __init__.py\n spark/\n __about__.py\n __init__.py\n spark.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\npresto/\n setup.py\n datadog_checks/\n __init__.py\n presto/\n __about__.py\n __init__.py\nhdfs_namenode/\n setup.py\n datadog_checks/\n __init__.py\n hdfs_namenode/\n __about__.py\n __init__.py\n hdfs_namenode.py\nmcache/\n setup.py\n datadog_checks/\n __init__.py\n mcache/\n mcache.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nriak/\n setup.py\n datadog_checks/\n __init__.py\n riak/\n __about__.py\n __init__.py\n keys.py\n riak.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nconsul/\n setup.py\n datadog_checks/\n __init__.py\n consul/\n consul.py\n __about__.py\n __init__.py\n metrics.py\n common.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nibm_was/\n setup.py\n datadog_checks/\n __init__.py\n ibm_was/\n __about__.py\n __init__.py\n metrics.py\n validation.py\n ibm_was.py\nairflow/\n setup.py\n datadog_checks/\n __init__.py\n airflow/\n __about__.py\n airflow.py\n __init__.py\nfluentd/\n setup.py\n datadog_checks/\n __init__.py\n fluentd/\n fluentd.py\n __about__.py\n __init__.py\nopenshift/\n gen_clusterquota_metadata.py\nmongo/\n setup.py\n datadog_checks/\n __init__.py\n mongo/\n api.py\n mongo.py\n __about__.py\n utils.py\n __init__.py\n metrics.py\n common.py\n config.py\n config_models/\n validators.py\n instance.py\n deprecations.py\n __init__.py\n shared.py\n defaults.py\n collectors/\n jumbo_stats.py\n conn_pool_stats.py\n replica.py\n top.py\n coll_stats.py\n session_stats.py\n __init__.py\n custom_queries.py\n server_status.py\n db_stat.py\n index_stats.py\n base.py\n replication_info.py\n fsynclock.py\nkafka_consumer/\n setup.py\n datadog_checks/\n __init__.py\n kafka_consumer/\n constants.py\n new_kafka_consumer.py\n kafka_consumer.py\n __about__.py\n legacy_0_10_2.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nmapr/\n setup.py\n datadog_checks/\n __init__.py\n mapr/\n mapr.py\n __about__.py\n utils.py\n __init__.py\n common.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nsystem_core/\n setup.py\n datadog_checks/\n __init__.py\n system_core/\n system_core.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nyarn/\n setup.py\n datadog_checks/\n __init__.py\n yarn/\n __about__.py\n yarn.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nwin32_event_log/\n setup.py\n datadog_checks/\n __init__.py\n win32_event_log/\n constants.py\n filters.py\n __about__.py\n check.py\n utils.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\n legacy/\n __init__.py\n win32_event_log.py\ncilium/\n setup.py\n datadog_checks/\n __init__.py\n cilium/\n __about__.py\n __init__.py\n metrics.py\n cilium.py\nrabbitmq/\n setup.py\n datadog_checks/\n __init__.py\n rabbitmq/\n rabbitmq.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nkube_proxy/\n setup.py\n datadog_checks/\n __init__.py\n kube_proxy/\n __about__.py\n kube_proxy.py\n __init__.py\nopenldap/\n setup.py\n datadog_checks/\n __init__.py\n openldap/\n __about__.py\n openldap.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nsidekiq/\n setup.py\n datadog_checks/\n __init__.py\n sidekiq/\n __about__.py\n __init__.py\nkube_controller_manager/\n setup.py\n datadog_checks/\n __init__.py\n kube_controller_manager/\n __about__.py\n __init__.py\n kube_controller_manager.py\necs_fargate/\n setup.py\n datadog_checks/\n __init__.py\n ecs_fargate/\n __about__.py\n __init__.py\n ecs_fargate.py\niis/\n setup.py\n datadog_checks/\n __init__.py\n iis/\n __about__.py\n __init__.py\n iis.py\nmarklogic/\n setup.py\n datadog_checks/\n __init__.py\n marklogic/\n constants.py\n api.py\n __about__.py\n check.py\n utils.py\n __init__.py\n config.py\n parsers/\n storage.py\n health.py\n __init__.py\n resources.py\n status.py\n common.py\n request.py\nvertica/\n setup.py\n datadog_checks/\n __init__.py\n vertica/\n vertica.py\n __about__.py\n views.py\n utils.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ntls/\n setup.py\n datadog_checks/\n __init__.py\n tls/\n __about__.py\n utils.py\n __init__.py\n tls.py\n tls_local.py\n tls_remote.py\n const.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nmapreduce/\n setup.py\n datadog_checks/\n __init__.py\n mapreduce/\n __about__.py\n __init__.py\n metrics.py\n mapreduce.py\ntomcat/\n setup.py\n datadog_checks/\n __init__.py\n tomcat/\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ntwemproxy/\n setup.py\n datadog_checks/\n __init__.py\n twemproxy/\n __about__.py\n twemproxy.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nceph/\n setup.py\n datadog_checks/\n __init__.py\n ceph/\n __about__.py\n __init__.py\n ceph.py\nopenstack_controller/\n setup.py\n datadog_checks/\n __init__.py\n openstack_controller/\n api.py\n __about__.py\n exceptions.py\n retry.py\n __init__.py\n openstack_controller.py\n settings.py\ncacti/\n setup.py\n datadog_checks/\n __init__.py\n cacti/\n cacti.py\n __about__.py\n __init__.py\nglusterfs/\n setup.py\n datadog_checks/\n __init__.py\n glusterfs/\n __about__.py\n check.py\n __init__.py\n metrics.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nwmi_check/\n setup.py\n datadog_checks/\n __init__.py\n wmi_check/\n wmi_check.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nharbor/\n setup.py\n datadog_checks/\n __init__.py\n harbor/\n harbor.py\n api.py\n __about__.py\n __init__.py\n common.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ncoredns/\n setup.py\n datadog_checks/\n __init__.py\n coredns/\n __about__.py\n __init__.py\n coredns.py\npan_firewall/\n setup.py\n datadog_checks/\n pan_firewall/\n __about__.py\n __init__.py\ndirectory/\n setup.py\n datadog_checks/\n __init__.py\n directory/\n traverse.py\n __about__.py\n __init__.py\n config.py\n directory.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\npowerdns_recursor/\n setup.py\n datadog_checks/\n __init__.py\n powerdns_recursor/\n powerdns_recursor.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ndatadog_cluster_agent/\n setup.py\n datadog_checks/\n __init__.py\n datadog_cluster_agent/\n __about__.py\n check.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ntcp_check/\n setup.py\n datadog_checks/\n __init__.py\n tcp_check/\n __about__.py\n __init__.py\n tcp_check.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nazure_iot_edge/\n setup.py\n datadog_checks/\n __init__.py\n azure_iot_edge/\n __about__.py\n types.py\n check.py\n __init__.py\n metrics.py\n config.py\nkong/\n setup.py\n datadog_checks/\n __init__.py\n kong/\n __about__.py\n kong.py\n check.py\n __init__.py\n metrics.py\nsquid/\n setup.py\n datadog_checks/\n __init__.py\n squid/\n __about__.py\n squid.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nmesos_master/\n setup.py\n datadog_checks/\n __init__.py\n mesos_master/\n mesos_master.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nibm_mq/\n setup.py\n datadog_checks/\n __init__.py\n ibm_mq/\n errors.py\n __about__.py\n utils.py\n __init__.py\n metrics.py\n ibm_mq.py\n config.py\n connection.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\n stats/\n __init__.py\n base_stats.py\n queue_stats.py\n channel_stats.py\n collectors/\n stats_collector.py\n channel_metric_collector.py\n __init__.py\n queue_metric_collector.py\n metadata_collector.py\nsystem_swap/\n setup.py\n datadog_checks/\n __init__.py\n system_swap/\n system_swap.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ncouchbase/\n setup.py\n datadog_checks/\n __init__.py\n couchbase/\n couchbase_consts.py\n __about__.py\n couchbase.py\n __init__.py\nconfluent_platform/\n setup.py\n datadog_checks/\n __init__.py\n confluent_platform/\n __about__.py\n __init__.py\nactive_directory/\n setup.py\n datadog_checks/\n __init__.py\n active_directory/\n __about__.py\n active_directory.py\n __init__.py\nproxysql/\n setup.py\n datadog_checks/\n __init__.py\n proxysql/\n queries.py\n __about__.py\n ssl_utils.py\n __init__.py\n proxysql.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nignite/\n setup.py\n datadog_checks/\n __init__.py\n ignite/\n __about__.py\n __init__.py\nkubelet/\n setup.py\n conftest.py\n datadog_checks/\n __init__.py\n kubelet/\n kubelet.py\n prometheus.py\n cadvisor.py\n summary.py\n __about__.py\n __init__.py\n common.py\nsap_hana/\n setup.py\n datadog_checks/\n __init__.py\n sap_hana/\n queries.py\n __about__.py\n exceptions.py\n utils.py\n __init__.py\n connection.py\n sap_hana.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nflink/\n setup.py\n datadog_checks/\n __init__.py\n flink/\n __about__.py\n __init__.py\nrethinkdb/\n setup.py\n datadog_checks/\n __init__.py\n rethinkdb/\n queries.py\n __about__.py\n types.py\n check.py\n version.py\n utils.py\n __init__.py\n queries_impl.py\n config.py\nsonarqube/\n setup.py\n datadog_checks/\n __init__.py\n sonarqube/\n constants.py\n __about__.py\n check.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ndotnetclr/\n setup.py\n datadog_checks/\n __init__.py\n dotnetclr/\n dotnetclr.py\n __about__.py\n __init__.py\netcd/\n setup.py\n datadog_checks/\n __init__.py\n etcd/\n __about__.py\n etcd.py\n __init__.py\n metrics.py\nvoltdb/\n setup.py\n datadog_checks/\n __init__.py\n voltdb/\n queries.py\n client.py\n __about__.py\n types.py\n check.py\n __init__.py\n config.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nredisdb/\n setup.py\n datadog_checks/\n __init__.py\n redisdb/\n __about__.py\n redisdb.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nexternal_dns/\n setup.py\n datadog_checks/\n __init__.py\n external_dns/\n __about__.py\n external_dns.py\n __init__.py\n metrics.py\nriakcs/\n setup.py\n datadog_checks/\n __init__.py\n riakcs/\n riakcs.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nscylla/\n setup.py\n datadog_checks/\n __init__.py\n scylla/\n __about__.py\n scylla.py\n __init__.py\n metrics.py\naerospike/\n setup.py\n datadog_checks/\n __init__.py\n aerospike/\n aerospike.py\n __about__.py\n __init__.py\nbtrfs/\n setup.py\n datadog_checks/\n __init__.py\n btrfs/\n btrfs.py\n __about__.py\n __init__.py\navi_vantage/\n setup.py\n datadog_checks/\n __init__.py\n avi_vantage/\n __about__.py\n check.py\n __init__.py\n metrics.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nhazelcast/\n setup.py\n datadog_checks/\n __init__.py\n hazelcast/\n __about__.py\n check.py\n utils.py\n __init__.py\nibm_db2/\n setup.py\n datadog_checks/\n __init__.py\n ibm_db2/\n queries.py\n __about__.py\n utils.py\n __init__.py\n ibm_db2.py\nkube_dns/\n setup.py\n datadog_checks/\n __init__.py\n kube_dns/\n kube_dns.py\n __about__.py\n __init__.py\naspdotnet/\n setup.py\n datadog_checks/\n __init__.py\n aspdotnet/\n __about__.py\n aspdotnet.py\n __init__.py\ncassandra/\n setup.py\n datadog_checks/\n __init__.py\n cassandra/\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ncouch/\n setup.py\n datadog_checks/\n __init__.py\n couch/\n errors.py\n __about__.py\n __init__.py\n couch.py\nmysql/\n setup.py\n datadog_checks/\n __init__.py\n mysql/\n mysql.py\n queries.py\n innodb_metrics.py\n __about__.py\n __init__.py\n version_utils.py\n config.py\n const.py\n statement_samples.py\n collection_utils.py\n statements.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nenvoy/\n setup.py\n datadog_checks/\n __init__.py\n envoy/\n errors.py\n envoy.py\n __about__.py\n utils.py\n __init__.py\n metrics.py\n parser.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\npgbouncer/\n setup.py\n datadog_checks/\n __init__.py\n pgbouncer/\n __about__.py\n __init__.py\n metrics.py\n pgbouncer.py\ntenable/\n setup.py\n datadog_checks/\n tenable/\n __about__.py\n __init__.py\nnetwork/\n setup.py\n datadog_checks/\n __init__.py\n network/\n __about__.py\n network.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nlinkerd/\n setup.py\n datadog_checks/\n __init__.py\n linkerd/\n linkerd.py\n __about__.py\n check.py\n __init__.py\n metrics.py\ndatadog_checks_downloader/\n setup.py\n datadog_checks/\n __init__.py\n downloader/\n download.py\n cli.py\n __about__.py\n exceptions.py\n __init__.py\n __main__.py\n parameters.py\nhyperv/\n setup.py\n datadog_checks/\n __init__.py\n hyperv/\n __about__.py\n __init__.py\n hyperv.py\n metrics.py\nhive/\n setup.py\n datadog_checks/\n __init__.py\n hive/\n __about__.py\n __init__.py\nteamcity/\n setup.py\n datadog_checks/\n __init__.py\n teamcity/\n __about__.py\n teamcity.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nambari/\n setup.py\n datadog_checks/\n __init__.py\n ambari/\n ambari.py\n __about__.py\n __init__.py\n common.py\ndisk/\n setup.py\n datadog_checks/\n __init__.py\n disk/\n __about__.py\n disk.py\n __init__.py\nsupervisord/\n setup.py\n datadog_checks/\n __init__.py\n supervisord/\n __about__.py\n __init__.py\n supervisord.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ncassandra_nodetool/\n setup.py\n datadog_checks/\n __init__.py\n cassandra_nodetool/\n __about__.py\n __init__.py\n cassandra_nodetool.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nactivemq/\n setup.py\n datadog_checks/\n __init__.py\n activemq/\n __about__.py\n __init__.py\nnfsstat/\n setup.py\n datadog_checks/\n __init__.py\n nfsstat/\n nfsstat.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nexchange_server/\n setup.py\n datadog_checks/\n __init__.py\n exchange_server/\n __about__.py\n exchange_server.py\n __init__.py\nlinux_proc_extras/\n setup.py\n datadog_checks/\n __init__.py\n linux_proc_extras/\n linux_proc_extras.py\n __about__.py\n __init__.py\nkube_scheduler/\n setup.py\n datadog_checks/\n __init__.py\n kube_scheduler/\n kube_scheduler.py\n __about__.py\n __init__.py\nsolr/\n setup.py\n datadog_checks/\n __init__.py\n solr/\n __about__.py\n __init__.py\ngunicorn/\n setup.py\n datadog_checks/\n __init__.py\n gunicorn/\n gunicorn.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ndatadog_checks_dev/\n setup.py\n datadog_checks/\n __init__.py\n dev/\n _env.py\n errors.py\n docker.py\n kube_port_forward.py\n subprocess.py\n http.py\n terraform.py\n compat.py\n __about__.py\n fs.py\n structures.py\n kind.py\n utils.py\n __init__.py\n __main__.py\n env.py\n ci.py\n ssh_tunnel.py\n jmx.py\n warn.py\n conditions.py\n spec.py\n plugin/\n pytest.py\n tox.py\n __init__.py\n tooling/\n constants.py\n catalog_const.py\n clean.py\n create.py\n datastructures.py\n dependencies.py\n release.py\n cli.py\n annotations.py\n utils.py\n __init__.py\n __main__.py\n signing.py\n git.py\n config.py\n trello.py\n github.py\n configuration/\n constants.py\n core.py\n utils.py\n __init__.py\n template.py\n spec.py\n consumers/\n example.py\n model.py\n __init__.py\n e2e/\n run.py\n core.py\n docker.py\n platform.py\n format.py\n local.py\n __init__.py\n config.py\n agent.py\n manifest_validator/\n constants.py\n __init__.py\n v2/\n validator.py\n __init__.py\n common/\n validator.py\n __init__.py\n v1/\n validator.py\n __init__.py\n schema.py\n templates/\n integration/\n check/\n {check_name}/\n setup.py\n datadog_checks/\n __init__.py\n {check_name}/\n __about__.py\n check.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\n jmx/\n {check_name}/\n setup.py\n datadog_checks/\n __init__.py\n {check_name}/\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\n logs/\n {check_name}/\n setup.py\n datadog_checks/\n __init__.py\n {check_name}/\n __about__.py\n __init__.py\n config_validator/\n config_block.py\n validator.py\n utils.py\n __init__.py\n validator_errors.py\n commands/\n run.py\n clean.py\n create.py\n __init__.py\n dep.py\n config.py\n console.py\n meta/\n prometheus.py\n changes.py\n create_commits.py\n __init__.py\n catalog.py\n jmx.py\n dashboard.py\n scripts/\n metrics2md.py\n remove_labels.py\n github_user.py\n __init__.py\n upgrade_python.py\n snmp/\n validate_snmp_profiles.py\n constants.py\n translate_profile.py\n validate_mib_filenames.py\n generate_profile.py\n __init__.py\n validators/\n validator.py\n utils.py\n __init__.py\n release/\n tag.py\n upload.py\n build.py\n make.py\n changelog.py\n __init__.py\n trello/\n rc_build_cards_updater.py\n __init__.py\n status.py\n update_rc_links.py\n fixed_cards_mover.py\n stats/\n __init__.py\n common.py\n stats.py\n show/\n changes.py\n ready.py\n __init__.py\n ci/\n __init__.py\n setup.py\n env/\n shell.py\n stop.py\n check.py\n __init__.py\n ls.py\n edit.py\n prune.py\n start.py\n reload.py\n validate/\n recommended_monitors.py\n jmx_metrics.py\n agent_reqs.py\n models.py\n eula.py\n http.py\n imports.py\n typos.py\n saved_views.py\n licenses.py\n __init__.py\n ci.py\n codeowners.py\n dep.py\n config.py\n all_validations.py\n dashboards.py\n manifest.py\n service_checks.py\n agent_signature.py\n package.py\n metadata.py\n readmes.py\n agent/\n requirements.py\n integrations_changelog.py\n changelog.py\n integrations.py\n __init__.py\n common.py\n docs/\n build.py\n serve.py\n utils.py\n __init__.py\n deploy.py\nvarnish/\n setup.py\n datadog_checks/\n __init__.py\n varnish/\n __about__.py\n varnish.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nlighttpd/\n setup.py\n datadog_checks/\n __init__.py\n lighttpd/\n __about__.py\n __init__.py\n lighttpd.py\ntokumx/\n setup.py\n datadog_checks/\n __init__.py\n tokumx/\n __about__.py\n tokumx.py\n __init__.py\n vendor/\n __init__.py\n pymongo/\n ssl_context.py\n collation.py\n operations.py\n server_selectors.py\n results.py\n errors.py\n son_manipulator.py\n monitor.py\n periodic_executor.py\n bulk.py\n read_concern.py\n ssl_support.py\n write_concern.py\n max_staleness_selectors.py\n network.py\n monotonic.py\n thread_util.py\n auth.py\n read_preferences.py\n __init__.py\n ssl_match_hostname.py\n ismaster.py\n response.py\n settings.py\n mongo_replica_set_client.py\n helpers.py\n collection.py\n server_type.py\n common.py\n pool.py\n monitoring.py\n server.py\n command_cursor.py\n server_description.py\n database.py\n client_options.py\n cursor_manager.py\n topology.py\n topology_description.py\n cursor.py\n message.py\n uri_parser.py\n mongo_client.py\n bson/\n codec_options.py\n min_key.py\n timestamp.py\n errors.py\n max_key.py\n int64.py\n raw_bson.py\n tz_util.py\n binary.py\n __init__.py\n objectid.py\n regex.py\n py3compat.py\n code.py\n dbref.py\n son.py\n decimal128.py\n json_util.py\n gridfs/\n errors.py\n __init__.py\n grid_file.py\ndatadog_checks_base/\n setup.py\n datadog_checks/\n errors.py\n log.py\n __init__.py\n config.py\n utils/\n headers.py\n containers.py\n timeout.py\n subprocess_output.py\n platform.py\n __init__.py\n tailfile.py\n proxy.py\n tracing.py\n common.py\n limiter.py\n prometheus/\n metrics_pb2.py\n __init__.py\n functions.py\n checks/\n network_checks.py\n network.py\n __init__.py\n winwmi_check.py\n base.py\n prometheus_check/\n __init__.py\n win/\n __init__.py\n winpdh.py\n winpdh_stub.py\n winpdh_base.py\n wmi/\n counter_type.py\n __init__.py\n sampler.py\n openmetrics/\n base_check.py\n __init__.py\n mixins.py\n libs/\n timer.py\n thread_pool.py\n __init__.py\n vmware/\n all_metrics.py\n __init__.py\n basic_metrics.py\n wmi/\n __init__.py\n sampler.py\n prometheus/\n base_check.py\n prometheus_base.py\n __init__.py\n mixins.py\n stubs/\n _util.py\n aggregator.py\n __init__.py\n datadog_agent.py\n base/\n constants.py\n errors.py\n __about__.py\n types.py\n log.py\n __init__.py\n ddyaml.py\n config.py\n utils/\n constants.py\n headers.py\n containers.py\n aws.py\n time.py\n timeout.py\n subprocess_output.py\n date.py\n http.py\n platform.py\n serialization.py\n network.py\n tagging.py\n __init__.py\n tailfile.py\n tls.py\n tracing.py\n secrets.py\n common.py\n limiter.py\n functions.py\n models/\n types.py\n fields.py\n __init__.py\n validation/\n core.py\n utils.py\n __init__.py\n helpers.py\n metadata/\n constants.py\n core.py\n version.py\n utils.py\n __init__.py\n agent/\n debug.py\n utils.py\n __init__.py\n common.py\n packages.py\n memory.py\n db/\n core.py\n query.py\n statement_metrics.py\n types.py\n utils.py\n __init__.py\n transform.py\n sql.py\n prometheus/\n metrics_pb2.py\n __init__.py\n functions.py\n checks/\n network.py\n __init__.py\n base.py\n kube_leader/\n base_check.py\n record.py\n __init__.py\n mixins.py\n win/\n __init__.py\n winpdh.py\n winpdh_stub.py\n winpdh_base.py\n wmi/\n types.py\n counter_type.py\n __init__.py\n sampler.py\n openmetrics/\n base_check.py\n __init__.py\n mixins.py\n v2/\n scraper.py\n utils.py\n __init__.py\n transform.py\n base.py\n labels.py\n transformers/\n counter.py\n service_check.py\n rate.py\n temporal_percent.py\n counter_gauge.py\n summary.py\n __init__.py\n histogram.py\n gauge.py\n metadata.py\n time_elapsed.py\n kubelet_base/\n __init__.py\n base.py\n libs/\n timer.py\n prometheus.py\n thread_pool.py\n __init__.py\n vmware/\n all_metrics.py\n __init__.py\n basic_metrics.py\n prometheus/\n base_check.py\n prometheus_base.py\n __init__.py\n mixins.py\n stubs/\n _util.py\n aggregator.py\n similar.py\n log.py\n tagging.py\n __init__.py\n datadog_agent.py\n common.py\nhaproxy/\n setup.py\n datadog_checks/\n __init__.py\n haproxy/\n __about__.py\n check.py\n __init__.py\n metrics.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\n legacy/\n haproxy.py\n __init__.py\n version_utils.py\n const.py\nwindows_service/\n setup.py\n datadog_checks/\n __init__.py\n windows_service/\n windows_service.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ncrio/\n setup.py\n datadog_checks/\n __init__.py\n crio/\n __about__.py\n __init__.py\n crio.py\nnginx_ingress_controller/\n setup.py\n datadog_checks/\n __init__.py\n nginx_ingress_controller/\n __about__.py\n __init__.py\n nginx_ingress_controller.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nstatsd/\n setup.py\n datadog_checks/\n __init__.py\n statsd/\n __about__.py\n __init__.py\n statsd.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ndatadog_checks_dependency_provider/\n setup.py\n datadog_checks/\n __init__.py\n datadog_checks_dependency_provider/\n __about__.py\n __init__.py\ncockroachdb/\n setup.py\n datadog_checks/\n __init__.py\n cockroachdb/\n __about__.py\n cockroachdb.py\n __init__.py\n metrics.py\ndruid/\n setup.py\n datadog_checks/\n __init__.py\n druid/\n __about__.py\n __init__.py\n druid.py\ndatadog_checks_tests_helper/\n setup.py\n datadog_test_libs/\n __about__.py\n __init__.py\n win/\n __init__.py\n pdh_mocks.py\n utils/\n __init__.py\n mock_dns.py\ncisco_aci/\n setup.py\n datadog_checks/\n __init__.py\n cisco_aci/\n tenant.py\n cisco.py\n fabric.py\n api.py\n tags.py\n capacity.py\n aci_metrics.py\n __about__.py\n exceptions.py\n __init__.py\n helpers.py\nsnmp/\n setup.py\n datadog_checks/\n __init__.py\n snmp/\n models.py\n compat.py\n pysnmp_inspect.py\n __about__.py\n exceptions.py\n snmp.py\n types.py\n utils.py\n __init__.py\n metrics.py\n commands.py\n discovery.py\n pysnmp_types.py\n config.py\n resolver.py\n mibs.py\n parsing/\n parsed_metrics.py\n metric_tags.py\n __init__.py\n metrics.py\n metrics_types.py\nnginx/\n setup.py\n datadog_checks/\n __init__.py\n nginx/\n __about__.py\n __init__.py\n metrics.py\n nginx.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nactivemq_xml/\n setup.py\n datadog_checks/\n __init__.py\n activemq_xml/\n __about__.py\n __init__.py\n activemq_xml.py\ngitlab_runner/\n setup.py\n datadog_checks/\n __init__.py\n gitlab_runner/\n gitlab_runner.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nhivemq/\n setup.py\n datadog_checks/\n __init__.py\n hivemq/\n __about__.py\n __init__.py\nkube_metrics_server/\n setup.py\n datadog_checks/\n __init__.py\n kube_metrics_server/\n kube_metrics_server.py\n __about__.py\n __init__.py\nsqlserver/\n setup.py\n datadog_checks/\n __init__.py\n sqlserver/\n sqlserver.py\n __about__.py\n utils.py\n __init__.py\n metrics.py\n const.py\n connection.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ndocs/\n developer/\ngitlab/\n setup.py\n datadog_checks/\n __init__.py\n gitlab/\n __about__.py\n gitlab.py\n __init__.py\n metrics.py\npdh_check/\n setup.py\n datadog_checks/\n __init__.py\n pdh_check/\n __about__.py\n __init__.py\n pdh_check.py\nprometheus/\n setup.py\n datadog_checks/\n __init__.py\n prometheus/\n prometheus.py\n __about__.py\n __init__.py\nphp_fpm/\n setup.py\n datadog_checks/\n __init__.py\n php_fpm/\n php_fpm.py\n __about__.py\n __init__.py\nkube_apiserver_metrics/\n setup.py\n datadog_checks/\n __init__.py\n kube_apiserver_metrics/\n __about__.py\n kube_apiserver_metrics.py\n __init__.py\ngo_expvar/\n setup.py\n datadog_checks/\n __init__.py\n go_expvar/\n __about__.py\n go_expvar.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\ncloud_foundry_api/\n setup.py\n datadog_checks/\n __init__.py\n cloud_foundry_api/\n constants.py\n __about__.py\n cloud_foundry_api.py\n utils.py\n __init__.py\nelastic/\n setup.py\n datadog_checks/\n __init__.py\n elastic/\n elastic.py\n __about__.py\n utils.py\n __init__.py\n metrics.py\n config.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nclickhouse/\n setup.py\n datadog_checks/\n __init__.py\n clickhouse/\n queries.py\n __about__.py\n utils.py\n __init__.py\n clickhouse.py\nopenstack/\n setup.py\n datadog_checks/\n __init__.py\n openstack/\n openstack.py\n __about__.py\n __init__.py\nvsphere/\n setup.py\n datadog_checks/\n __init__.py\n vsphere/\n api_rest.py\n constants.py\n api.py\n event.py\n __about__.py\n types.py\n utils.py\n __init__.py\n metrics.py\n resource_filters.py\n vsphere.py\n config.py\n cache.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\n legacy/\n vsphere_legacy.py\n objects_queue.py\n errors.py\n cache_config.py\n __init__.py\n common.py\n metadata_cache.py\n mor_cache.py\nmesos_slave/\n setup.py\n datadog_checks/\n __init__.py\n mesos_slave/\n mesos_slave.py\n __about__.py\n __init__.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nvault/\n setup.py\n datadog_checks/\n __init__.py\n vault/\n errors.py\n __about__.py\n vault.py\n __init__.py\n metrics.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nnagios/\n setup.py\n datadog_checks/\n __init__.py\n nagios/\n __about__.py\n __init__.py\n nagios.py\n config_models/\n validators.py\n instance.py\n __init__.py\n shared.py\n defaults.py\nsnowflake/\n setup.py\n datadog_checks/\n __init__.py\n snowflake/\n queries.py\n __about__.py\n check.py\n __init__.py\n config.py\n\n###\n\n\n\nPlease only provide the full path and return at most 5 files.\nThe returned files should be separated by new lines ordered by most to least important and wrapped with ```\nFor example:\n```\nfile1.py\nfile2.py\n```" }, { "from": "assistant", "value": "<think>\nBased on the GitHub problem description, we have an issue with the Elasticsearch check failing when used with Opensearch. The problem is that Opensearch reports its version as `1.0.0`, but it's fully compatible with Elasticsearch 7.10.2. The Elasticsearch check in the Datadog agent is adding `?all=true` to the `/_nodes/_local/stats` API endpoint URL which causes a 400 error with newer versions of Elasticsearch.\n\nAccording to the error message, the issue occurs in the `elastic.py` file, specifically in the `_get_data` function which is called from the `check` function. The error is occurring because Opensearch is reporting its version as `1.0.0`, and the Elasticsearch check is adding `?all=true` parameter which has been deprecated since Elasticsearch 5.0.0.\n\nLooking at the repository structure, I need to find the elastic integration files. I can see the directory structure includes an `elastic/` directory with several files inside, including `elastic.py`.\n\nThe most likely file to edit would be:\n1. `elastic/datadog_checks/elastic/elastic.py` - This is the main check file where the issue is happening according to the error traceback.\n\nThe problem specifically mentions that the issue occurs in lines around where `?all=true` is added to the URL, which is in this file.\n\nLooking at the traceback, it specifically mentions:\n```\nFile \"/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/elastic/elastic.py\", line 79, in check\n stats_data = self._get_data(stats_url)\nFile \"/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/elastic/elastic.py\", line 232, in _get_data\n resp.raise_for_status()\n```\n\nSo the issue is definitely in the `elastic.py` file, particularly around line 79 (the `check` method) and line 232 (the `_get_data` method).\n\nThe GitHub issue also points to a specific line:\n```\nhttps://github.com/DataDog/integrations-core/blob/40d9ceb14c57c109e8f6371b1a4c677fa33e1669/elastic/datadog_checks/elastic/elastic.py#L215\n```\n\nThis further confirms that the issue is in the `elastic.py` file, around line 215.\n\nAdditionally, the issue mentions that Opensearch returns version information that contains a field called `distribution` with the value `opensearch`. This could be used to detect if the check is running against an Opensearch server instead of an Elasticsearch server.\n\nWe might also need to look at configuration files or utility functions related to version detection, but the main issue is clearly in the `elastic.py` file.\n\nGiven the information provided, the file that needs to be edited to fix the problem is:\n`elastic/datadog_checks/elastic/elastic.py`\n\nThere might be other related files that could be helpful to understand the context, such as:\n`elastic/datadog_checks/elastic/config.py` - This might contain configuration settings related to the Elasticsearch check.\n`elastic/datadog_checks/elastic/utils.py` - This might contain utility functions used in the check.\n`elastic/datadog_checks/elastic/__init__.py` - This might provide some initialization logic.\n`elastic/datadog_checks/elastic/metrics.py` - This might define the metrics collected from Elasticsearch/Opensearch.\n\nBut the main file that needs to be modified to fix this specific issue is definitely `elastic/datadog_checks/elastic/elastic.py`.\n</think>\nBased on the problem description, I need to identify the files that need editing to fix the Elasticsearch check failing when used with Opensearch.\n\nThe key issue is that the check adds `?all=true` parameter to the URL when calling the `/_nodes/_local/stats` API endpoint. This parameter has been deprecated since Elasticsearch 5.0.0 and causes a 400 error with Opensearch. The solution would involve detecting when the check is running against Opensearch (which contains a `distribution` field with value `opensearch` in the version information) and handling the API calls differently.\n\n```\nelastic/datadog_checks/elastic/elastic.py\nelastic/datadog_checks/elastic/utils.py\nelastic/datadog_checks/elastic/config.py\nelastic/datadog_checks/elastic/metrics.py\nelastic/datadog_checks/elastic/__init__.py\n```\n\nThe primary file to modify is `elastic.py`, as it contains the code that makes the API requests and handles version checking logic." } ]
null
DataDog__integrations-core-1403
You are Qwen, created by Alibaba Cloud. You are a helpful assistant.
[{"from":"user","value":"Please look through the following GitHub problem description and Repository(...TRUNCATED)
null
DataDog__integrations-core-14459
You are Qwen, created by Alibaba Cloud. You are a helpful assistant.
[{"from":"user","value":"Please look through the following GitHub problem description and Repository(...TRUNCATED)
null
DataDog__integrations-core-14649
You are Qwen, created by Alibaba Cloud. You are a helpful assistant.
[{"from":"user","value":"Please look through the following GitHub problem description and Repository(...TRUNCATED)
null
DataDog__integrations-core-1559
You are Qwen, created by Alibaba Cloud. You are a helpful assistant.
[{"from":"user","value":"Please look through the following GitHub problem description and Repository(...TRUNCATED)
null
DataDog__integrations-core-1583
You are Qwen, created by Alibaba Cloud. You are a helpful assistant.
[{"from":"user","value":"Please look through the following GitHub problem description and Repository(...TRUNCATED)
null
DataDog__integrations-core-1570
You are Qwen, created by Alibaba Cloud. You are a helpful assistant.
[{"from":"user","value":"Please look through the following GitHub problem description and Repository(...TRUNCATED)
null
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
0