def instance(): return { "url": "ldap://{}:3890".format(get_docker_hostname()), "username": "******", "password": "******", "custom_queries": [{ "name": "stats", "search_base": "cn=statistics,cn=monitor", "search_filter": "(!(cn=Statistics))", }], "tags": ["test:integration"] }
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from datadog_checks.dev import get_here from datadog_checks.dev.docker import get_docker_hostname HERE = get_here() HOST = get_docker_hostname() # Namenode URI NAMENODE_URI = 'http://{}:50070/'.format(HOST) NAMENODE_JMX_URI = NAMENODE_URI + 'jmx' # Namesystem state URL NAME_SYSTEM_STATE_URL = NAMENODE_JMX_URI + '?qry=Hadoop:service=NameNode,name=FSNamesystemState' # Namesystem url NAME_SYSTEM_URL = NAMENODE_JMX_URI + '?qry=Hadoop:service=NameNode,name=FSNamesystem' CUSTOM_TAGS = ["cluster_name:hdfs_dev", "instance:level_tags"] # Authentication Parameters TEST_USERNAME = '******' TEST_PASSWORD = '******' HDFS_NAMENODE_CONFIG = { 'instances': [{ 'hdfs_namenode_jmx_uri': NAMENODE_URI, 'tags': list(CUSTOM_TAGS)
def instance_ssl(instance): instance["url"] = "ldaps://{}:6360".format(get_docker_hostname()) return instance